Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
EflexPWM Fault Demo

This demo application demonstrates the EflexPWM fault demo. More...

Overview

This application demonstrates the pulse with modulation function of EflexPWM module. It outputs the PWM to control the intensity of the LED. PWM shut down when a fault signal is detected on the CMP output. One input of CMP is from C8, other input is from internal DAC.

Supported Platforms

This Freescale Tower System development platform is supported by the Kinetis software development kit EflexPWM demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware configuration

For the TWR-KV46F150M Tower System module, connect C8 (J501.13) to ground to see PWM output. When this pin is connected to high level, PWM will shut down. PWM fault will be automatically cleared when the C8 pin is connected to ground again.

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Run the demo

  1. Terminal prints the message "Welcome to EflexPWM Fault demo!"
  2. Observe PWM output on J501.9 as C8 pin is changed.