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
ADC Low Power Demo

This demo application demonstrates how to use the ADC drivers in low power modes.

Overview

The ADC Low Power Demo project is a demonstration program that uses the KSDK software. The microcontroller is set to a very low power stop (VLPS) mode, and every 500 ms an interrupt wakes up the ADC module and takes the current temperature of the microcontroller. While the temperature remains within boundaries, both LEDs are off. If the temperature is higher than average, a red LED comes on. If it is lower, a blue LED(orange LED for TWR-KV1) comes on. This demo provides an example to show how ADC works during a VLPS mode and a simple debugging, "golden" project.

Supported Platforms

These Freescale Freedom development platforms and Tower System modules are supported by the Kinetis SDK ADC Low Power demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

The ADC Low Power project is designed to work with the Tower System or in a stand alone setting.

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.

For more detailed instructions, see a Kinetis SDK User's Guide for your board.

Run the demo

  1. Set your target board in a place where the temperature is constant.
  2. Press the reset button on your development board.
  3. "ADC LOW POWER DEMO" message and some instructions should be displayed on the terminal.
  4. Wait until the green or white LED light turns on.
  5. Increment or decrement the temperature to see the changes.