The waveform should now be generated without the need for interrupts. The possible disadvantage of this method is that the other TPM channel are stuck with the same very short timer overflow period, which may limit their usefulness.
To use the output compare interrupt method, the T2MOD value should remain at its default value. The "toggle on output compare" setting must be avoided to prevent the possibility of incorrect phasing. Instead, within the ISR code, the setting for T2CH0SC should be either 0x58 (clear output on compare) or 0x5C (set output on compare) depending on the next required output state. You will also need to calculate the next output compare value, which will depend on the edge currently being processed, and this value used to update T2CH0V.
The output compare interrupt method will be disrupted if interrupt processing takes too much time relative to the required waveform period, or if the occurrence of other interrupts prevents update of the next output compare value in a timely manner.
Regards,
Mac