Hi Guys,
I'm trying to implement a simple counter to generate an interrupt every 2ms (roughly) so I can monitor pin change speed based on the counter.
I've looked at some of the online calculators and read some of the tutorials on timers, but my head's starting to spin a little I have to say.
Using one of the calculators i've come out with some figures but I'm not sure if these are suitable
Timer1
F_CPU 20000000UL
prescaler CLK/32
real time: 0.002 seconds
total timer ticks: 1250
Frequency: 500Hz
remainder ticks: 1250
overflow:0
All the ISR will do is increment a value
Am I on the right track?
regards