This demo application demonstrates the EflexPWM 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.
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_demo/<toolchain>.
- Library dependencies: ksdk_platform_lib
Getting Started
Hardware configuration
No jumper configuration is needed.
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 demo!"
- The LED on board increases/decreases intensity according to PWM pulse width changes.