This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

ftm_combine_pwm

Overview

The FTM project is a demonstration program of generating a combined PWM signal by the SDK FTM driver. It sets up the FTM hardware block to output PWM signals(24kHZ) on two TPM channels. The example also shows the complementary mode of operation and deadtime insertion, updates deadTimePrescale based on counter clock and tries to insert a dead time of about 650 nsec. This example updates the pwm duty cycle with an interrupt, meanwhile, disables the interrupt to retain the current duty cycle for a few seconds and disables the output on each channel before updating. On boards that have 2 LEDs connected to the FTM pins, the user will see a change in LED brightness. And if the board do not support LEDs to show, the outputs can be observed by oscilloscope.

Supported Boards