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
- J-Link ARM
- P&E Micro Multi-link universal
- Mini/micro USB cable
- USB A to micro AB cable
- Hardware (tower/base board, ...) for specific device
- Personal Computer
Toolchain requirements
- IAR embedded Workbench version 7.30.4
- ARM GCC 4.8.3 2014q3
- Keil MDK 5.13
- Kinetis Design Studio IDE v.2.5.0
- Atollic TrueSTUDIO for ARM win32 v5.2.1
Software requirements
- The project files are in: <SDK_Install>/examples/<board>/demo_apps/pwm_fault_demo/<toolchain>.
- Library dependencies: ksdk_platform_lib
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
- Connect a USB cable between the PC host and the OpenSDA USB port on the board.
- Open a serial terminal with these settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download the program to the target board.
- Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Run the demo
- Terminal prints the message "Welcome to EflexPWM Fault demo!"
- Observe PWM output on J501.9 as C8 pin is changed.