Log in

View Full Version : timers/interrupts


Anton
17-02-2005, 07:18
do you know how can I set a timer ticking and when an interrupt occurs, read its value?
I tried searching for it, but the only thing I found was setting an interrupt to occur every so much time.

Joel J
17-02-2005, 08:42
Look at the code written by Kevin Watson, http://kevin.org/frc . The gyro code and accelerometer code use timers to maintain a constant sample rate.