Posted: Thu Aug 31, 2006 3:52 pm Post subject: timer2 Capture calculation
Hello
I want to use the timer2 as a time base for my system. I need an interrupt every 50 milisecond. What will be the capture value if i use a 10 mhz crystal
Dim capture as Integer
Capture = XXXXX
Config Timer2 , = Timer , Gate = Internal , Mode = 0 , Direction = Down
On Timer2 Timer2_int
Load Timer2 , capture ' Interrupt arrive lorsque capture= 0
Enable Interrupts
Enable Timer2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum