Hi I am using TMR0 and trying to get an interrupt approximately once a second. This is so I can refresh my LCD display. Please check my math. 20Mhz and 16 bit timer at a 1:1 presclaer I would do this to get my interrupt interval. (1/20,000,000) * 65535 = .003276 or 3.276mS. Is that right, I would get an interrupt every 3.276mS. I set this up and I'm getting an Interrupt every half second approximately. I'm toggling the state of an LED in My interrupt routine to see the Interrupts. Sorry to start a new thread on this but I could not figure the math in some of the other tmr0 threads. The numbers they were coming up with gave me a headache.
Thanks
Shawn
Bookmarks