Changing Timer Register in Overflow Interrupt

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

What do you actually want to do?

What I have written. I need 3 different timed interrupts by using just one timer. Especially just the timer 2 since the others will be disabled in sleep.

One interrupt is to start an adc conversion, one is to enable the external hardware and one is to deactivate the external hardware after the sample & hold has occurred to save power. All of that while I have a fixed sample rate.

I am currently testing it with writing to the TCNT2 register in the overflow interrupt and that seems to work.