??? 06/26/06 15:24 Read: times |
#119115 - timer0 problem |
I've read the proper section of the tutorial and several books.
ET0 is set. TH0 is #-30. TMOD is 2 (I intend for timer0 to be an 8-bit auto-reload timer). IE is set. In one of my ISRs, I set TR0. This should start a ~30usec interval interrupt going. I use LEDs for debugging, and I can see that I get to the code in the first ISR that turns on TR0. But the LEDs indicate that I never get into the timer0 ISR. I set up my timer0 ISR the same way as the other working ISRs, by orging 0xb and ljmping to my ISR. If my setup is OK, then I guess I just have a bug somewhere. But it's mystifying to me how I can set TR0 in one ISR, exit that ISR, and never get into the ISR for timer0. Thanks for any help. |
Topic | Author | Date |
timer0 problem | 01/01/70 00:00 | |
LEDs and the eye | 01/01/70 00:00 | |
I never turn it off | 01/01/70 00:00 | |
use simulator | 01/01/70 00:00 | |
what's in IE | 01/01/70 00:00 | |
IE | 01/01/70 00:00 | |
with reti, not ret? | 01/01/70 00:00 | |
yes, reti. I know why ret would screw up | 01/01/70 00:00 | |
time to show the formatted and commented | 01/01/70 00:00 | |
I will work on cutting it down | 01/01/70 00:00 | |
easy | 01/01/70 00:00 | |
Timer O ISR | 01/01/70 00:00 | |
addition | 01/01/70 00:00 | |
that's good thinking | 01/01/70 00:00 | |
enough guesses | 01/01/70 00:00 | |
some code | 01/01/70 00:00 | |
comments which you do not have | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
there is no such thing | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
EDT | 01/01/70 00:00 | |
if you want get help... | 01/01/70 00:00 | |
he can't do that | 01/01/70 00:00 | |
???splitting | 01/01/70 00:00 | |
if you look at me, you will know :)![]() | 01/01/70 00:00 |