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
TPM Example

Overview

The TPM Example project is a demonstration program that uses the KSDK software to generate square pulse PWM to control a LED brightness.

Supported Platforms

These Freescale Freedom development platforms and Tower System modules are supported by the TPM example.

NOTE: The TWR-K65F180M does not have a suitable LED. The PWM signal is connected to the elevator board connector B52.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The TPM Example project does not call for any special hardware configurations. Although not required, the recommendation is to leave the development board's jumper settings and configurations in default state when running this example.

Prepare the example

  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 example.

Run the example

These instructions are displayed/shown on the terminal window:

See the change of LED brightness

After that, LED bright is first increasing and then LED becomes dimmer, continuously.