> >Could you explain why this works? > >I would think that 20 Mhz / 4 / 32 = 156 kHz clock for timer0, which > >gives 6.4 ms steps, not 5 or 10. > > I'm not sure how to do the calculation, but when I set tmr0 to 254, it > counts to 255 then makes another interupt. The length of this is 10us > on my scope. I'm guessing a 10mhz crystal would take 20us. I have not > tested it yet.
Well, I went back and measured the time it takes, so I can be a bit more specific now. The lowest interupt time I could get is 20us, but if set tmr0 to 253 instead of 254, it will give 30us (10us difference per step) Matt. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
