Hi Nico,
Here's how I configure a Timer to do something like what you're doing.
[code:1:d0d7172c1f]
Config Timer2 = Timer , Prescale = 1024 , Clear Timer = 1
On Oc2a Timer2_isr 'point to interrupt routine
'load preset, enable, and start timer2
Ocr2a = &HC3 'configure preset of 125
Enable Oc2a 'enable interrupt
Start Timer2 'and start timer
[/code:1:d0d7172c1f]
Hope this helps.
Bob
↧