Thanks! Yes, I meant a 4 Mhz crystal. Forgot to take into account that it is divided by four for the internal clock. This actually helps me out more. I can treat every interrupt as a 15 second interval...4 interrupts would be a minute. :) Thanks for everyone's help. At 10:05 PM 5/23/2004, Jinx wrote: > > Here's my attempt to answer my own questions. > > > > Timer0 can be either 8 or 16 bits. So I think I want 16 bits...and the > > largest prescalar is 256. > > OK...so if I use a 4Mhz clock... > > > > -16 bits counts to 65,535. > >Close. 16-bit count is 65536 -> 16,777,216 with /256 pre-scale, >which is 4.194304s @ 4MHz internal clock (16MHz crystal) > >Or 16.777216s if you meant a 4MHz crystal (1MHz internal clock) > >-- >http://www.piclist.com#nomail Going offline? Don't AutoReply us! >email listserv@mitvma.mit.edu with SET PICList DIGEST in the body James Tu james@2-bit-toys.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body