??? 10/26/05 19:25 Read: times |
#102985 - RCAP2 Responding to: ???'s previous message |
Like Erik said, loading TL2 and TH2 in the ISR is unnecessary when in autoreload mode...but I don't see in your initialization that you loaded the desired value into RCAP2L/H, which is where the timer gets its reload value.
Also, while you set TF2 so you would cause the first interrupt, you aren't resetting TF2 in your ISR (as was stated above by Oleg) so as soon as you leave the ISR, it's called again. You should see P1.6 toggling if you look at it with a scope, but you sure won't see an LED blinking. Dennis |