This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Trouble porting program using Compare Unit from F240 to F2812

I'm using 3 compare registers with a Continuous Up timer in the Event Manager.  When the T1CNT register matches the CMPR3 register, I want the PWM5 pin to go low and an interrupt to be triggered.  In the ISR, it will then change the CMPR3 register to the next time landmark and it will change the ACTRA register so that the PWM5 pin will go high at the next match.   I am getting the interrupts at the right time.  But the PWM5 pin is always changed immediately when I set the ACTRA register.  It doesn't wait until T1CNT matches the CMPR3 register.  This is not a PWM application!  I only want the pin to go to the value specified in CMP5ACT in ACTRA when the T1CNT register matches the CMPR3 register.  And I want the T1CNT register to be able to wrap around the T1PR value back to zero without any effect on the pin.  It doesn't matter if I set CMP3ACT to 00b (force low) or 01b (active low).  Both values cause the pin to go low immediately.  "Active Low" is undesirable because I get extra toggles when T1CNT wraps around before reaching the new value in CMPR3.  The F240 Event Manager did not have this problem.  The pin and interrupt trigger were simultaneous.  I've played with the CLD and ACTRLD fields in COMCONA, but I haven't found a setting.  Is it possible to do this?