I'm using Timer2 on the ATMega324PA with an external 32.768kHz crystal on TOSC1/TOSC2. Timer2 is running in CTC mode, and I'd like to create an output pulse on either OC2A or OC2B. I have set the compare output mode to "Set OC2A on compare match". I'd like to clear the OC2A a bit later in my software, without affecting the running timer in any way. I have tried to use FOC2A to do that, by setting the compare output mode to "Clear OC2A on Compare match", writing 1 to FOC2A, and then changing the outputmode back to it's original value ("Set OC2A on compare match") so that the output is set again on the next timer2 match. This doesn't work, however, because OC2A is set once and stays set forever. Any ideas how the OC2A/OC2B output can be cleared?