Isn't that what I said in BOTH of my earlier reply's. .01 secs times 25 loops equals .250 seconds? What was so confusing when I said it? I agree Roman that Bob's system will work but it also "can" create added headaches for those still learning. There is always two sides to the coin. One should learn both ways. Wendy J Olend wrote: > I was confused Mark's solution, too. I (accidentally) sent my question > directly to David. Here's how he explained it to me: > > "TIMER0 will generate an interrupt when it overflows from FFh to 00h > > have your interrupt routine count these overflows, 25 of them in his > example will get me to .250 since it's .01 per" > > Makes sense to me... > W > > > And how do we get this counter to equal .250 seconds? Have it overflow 3 > times > > and you only have .196608 seconds. Loop it 4 times and you have .262144 > > seconds. You would need count about 3.8147 times. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads