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
real time: 0.002 seconds
total timer ticks: 1250
remainder ticks: 1250
All the ISR will do is increment a value
Am I on the right track?