Thank you for your reply, but none of that seemed to work for me.
However, I WAS addressing the wrong part of GPIO for Port C:
The part:
GPIOC_PIDR |= 0x030000; // PTC0 and PTC1 are NOT inputs
GPIOC_PDDR |= 0x030000; // PTC0 and PTC1 ARE outputs
It should have been:
GPIOA_PIDR |= 0x030000; // PTC0 and PTC1 are NOT inputs
GPIOA_PDDR |= 0x030000; // PTC0 and PTC1 ARE outputs
But strangely, when that was changed, the same thing came out of the output.
This leads me to suspect what I'm getting out of the output has little relation to my code.
I also added this part for complementary output:
FTM2_COMBINE |= ~(0x020); // [COMP0] Make channels complementary
FTM2_COMBINE |= 0x01; // [COMBINE0] Combine channels
It made no difference
There were a few other register bits I corrected for the combine PWM to function:
FTM2_C0SC|= 0x2F; // [MSB] [MSA] [ELSB] [ELSA] CH0
FTM2_C1SC |= 0x2F; // [MSB] [MSA] [ELSB] [ELSA] CH1
Became:
FTM2_C0SC|= 0x08; // [MSB] [MSA] [ELSB] [ELSA] CH0
FTM2_C1SC |= 0x08; // [MSB] [MSA] [ELSB] [ELSA] CH1
but nothing I did gave the expected result.
I managed to try another FRDM-KEAZ12Q80 board, and I had exactly the same result. So, it's likely the board is OK.
I did find an Application Note (AN5303 - Features and Operation Modes of FlexTimer Module on S32K ) and while the code was not compatible, it did explain the FTM more completely than the Reference Manual.
Thanks again for your help,
Tom