Skip to content

The FlexTimer (FTM) module is an enhanced timer module that supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. AN14617 is primarily focused on the features of the FTM module in MCXE24x product series

License

Notifications You must be signed in to change notification settings

nxp-appcodehub/an-mcxe24x-flextimer-example

Repository files navigation

NXP Application Code Hub

AN14617 Features and Operation Modes of FlexTimer Module on MCXE24x

The FlexTimer (FTM) module is an enhanced timer module that supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. AN14617 is primarily focused on the features of the FTM module in MCXE24x product series, and use FRDM-MCXE247 to demonstrate the functionality of FTM module. This is the complementary project for AN14617, which demonstrates how to use the FTM module on MCXE24x. Please use serial tool to select the example provided.

This software includes the following examples:

  • Edge Aligned PWM
  • Center Aligned PWM
  • Phase Shifted PWM
  • Single Edge Capture Mode
  • Dual Edge Capture Mode
  • Quadrature Decoder Mode
  • CPWM and Fault Control Mode
  • Half and Full Cycle Reload Mode
  • FTM0 CPWM SoftSync Mode
  • FTM0 CPWM HardSync Mode
  • CPWM and Global Time Base Mode
  • ADC triggering Mode

Boards: FRDM-MCXE247

Categories: Motor Control

Peripherals: PWM, TIMER

Toolchains: MCUXpresso IDE

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support
  7. Release Notes

1. Software

2. Hardware

  • FRDM-MCXE247 board
  • USB Type-C cable
  • Personal Computer

3. Setup

3.1 Import Project

  • Open MCUXpresso IDE, in the Quick Start Panel, choose Import from Application Code Hub.

  • Enter the demo name in the search bar.

  • Click Copy GitHub link, MCUXpresso IDE will automatically retrieve project attributes, then click Next>.

  • Select main branch and then click Next>, Select the MCUXpresso project, click Finish button to complete import.

  • Click Build to start compiling the project.

3.2 Hardware Setup

  • Use a Type-C USB cable to connect J13 of FRDM-MCXE247 and the USB port of the PC.

  • Select the GUI Flash Tool from the toolbar to program the executable to the board.

3.3 Select examples

  • Open a serial terminal with 115200 baud rate.
  • Follow the prompts and select one option from 1 to C to enter different examples.

3.4 Board connection

  • After selecting an example, there will be a prompt indicating how to connect the board and the oscilloscope, follow the prompts and complete the connection.

4. Results

  • Take example 1. Edge Aligned PWM as an example, the waveform shown as below, the Edge Aligned PWM output normally.

  • For details of other examples, please see the AN content.

5. FAQs

  • No FAQs have been identified for this project.

6. Support

  • For additional information and support, visit NXP's official website.

Project Metadata

Board badge

Category badge

Peripheral badge Peripheral badge

Toolchain badge

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected functionality, enter your questions on the NXP Community Forum

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub June 25th 2025

About

The FlexTimer (FTM) module is an enhanced timer module that supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. AN14617 is primarily focused on the features of the FTM module in MCXE24x product series

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages