Hello everyone,
I have the situation, that I need 3 different interrupts from one timer. So I am using right now the overflow A & B interrupts with the timer running in ctc mode.
Now I see two options:
Option one is using the compare interrupt to change the value of the the compare register so I can reuse the same interrupt twice. The datasheet does not seem to forbid this, so maybe it is an option?
The other option would be to use the overflow interrupt and changing the counter register in the isr. It seems to work while testing. But does anyone know any potential bugs?
Which option do you think is more promising? Any thoughts why it could not work?
Thanks
nuclear