I'm having a hard time figuring out which counter mode I need in my 16-bit counter in Mega16.
I am not capturing events, generating PWM or anything like that. I just want a predictable delay. Which counter mode is best suited for this:
- Init timer to clk/8, enable interrupts
- Write 0x2300 to the timer register
- Count down to 0x0000
- Receive an interrupt
- Disable interrupts and the timer