|
Re: How to use a "Timer"
Do you think you could provide more details on interrupt driven timers? Does it use up one of the six interrupts your robot has? Oh, and the 25 ms timing loop, why is it 25 ms? It seems to me that the calculation is:
2 bytes*8 bits/byte = 16 bits
largest possible 2-byte integer = 2^16 - 1 = 65535
And 800 ns*65535 =52.428 ms
You seem to get half of that...
I'm not doubting the correctness of 25 ms, I just wonder as to why it is 25 ms...
__________________
Last edited by CronosPrime1 : 10-02-2006 at 00:48.
|