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

Overview

The ADC16 Example project is a demonstration program that uses the KSDK software to measure the internal temperature of the chip. This function uses the user input as a trigger to start the measurement. Use the ADC to read the chip's temperature, press any key in the terminal and print the converted value and temperature to the terminal.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The ADC16 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:

press any key to start measure temperature

Input any character from the keyboard to start calculating the temperature with the calibrated value and formula listed in the Reference Manual. These instructions are displayed/shown on the terminal window:

press any key to start measure temperature
ADC converted value: 14151
Temperature 29
press any key to start measure temperature