I am attempting to run a PWM example on a TWR-K65.
In the "FTM - Two Channel PWM" driver example .C file (attached) you will notice:
#define BOARD_FTM_BASEADDR FTM2
#define BOARD_FIRST_FTM_CHANNEL 0U
#define BOARD_SECOND_FTM_CHANNEL 1U
I assume the is defining the Flex Time Module for the example to be FTM 2, and the two channels that will output the PWM will be FTM2 CH0 and FTM2 CH1.
The TWR-K65 schematic (attached) shows no available connections to FTM2 CH0 or CH1. So I changed this line of code to:
#define BOARD_FTM_BASEADDR FTM0
#define BOARD_FIRST_FTM_CHANNEL 4U
#define BOARD_SECOND_FTM_CHANNEL 5U
I thought this would output a PWM signal on FTM0 CH4 and CH5, which according to the TWR-K65 schematic (sheet 8), are hooked up to B39 and B40.
When I run the example I get no pulses on those pins.
Could some one please tell me what I am doing wrong?