On atmega2560 (STK600 board), I am using Timer0 which is 8-bit timer. I want to generate an overflow every 4ms...how do I set the timer for 4ms? (the clock speed is 8MHz, I am aware of setting up a timer by diving (clock speed)/(prescaler) and when the counter resets, it generates an overflow interrupt. But not sure about setting for 4ms!
Secondly, once the timer overflows and generates an OVERFlOW interrupt, calculate 1 second..How to do that?
Thanks in advance!