Hello,
I had a 8051 micro C test last week and it ask us to produce 2 square wave of different freq at the same time. (make it appear at oscilloscope)
I stuck when I need to create both of the wave simultaneously. Actually, I don't even know that we can do something simultaneously using micro C.
Even if I use interrupt (for the second wave), isn't the controller leave the main program and read the interrupt program? So I don't see that I can produce both of them simultaneously.
Any idea??? (Or maybe there is something wrong with my understanding. Hope you guys can help.)
I had a 8051 micro C test last week and it ask us to produce 2 square wave of different freq at the same time. (make it appear at oscilloscope)
I stuck when I need to create both of the wave simultaneously. Actually, I don't even know that we can do something simultaneously using micro C.
Even if I use interrupt (for the second wave), isn't the controller leave the main program and read the interrupt program? So I don't see that I can produce both of them simultaneously.
Any idea??? (Or maybe there is something wrong with my understanding. Hope you guys can help.)