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
Universal Asynchronous Receiver/Transmitter (UART) Example with other methods

Overview

This UART example application demonstrates the KSDK Peripheral drivers working on different methods. The UART example will show transmit/receive UART's driver with other efficiency methods:

Transfer data between board and PC. The board transfers and receives characters with PC through the UART interface. Type characters from the keyboard and the board receives and then echoes them to the terminal screen. See instructions output to the terminal.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The UART 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

UART blocking

These instructions are displayed/shown on the terminal window:

++++++++++++++++ UART Send/Receive Blocking Example +++++++++++++++++
Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

UART non-blocking

These instructions are displayed/shown on the terminal window:

++++++++++++++++ UART Send/Receive Non Blocking Example +++++++++++++++++
Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

UART DMA blocking

These instructions are displayed/shown on the terminal window:

++++++++++++++++ UART-DMA Send/Receive Blocking Example +++++++++++++++++
Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

UART DMA non-blocking

These instructions are displayed/shown on the terminal window:

++++++++++++++++ UART-DMA Send/Receive Non Blocking Example +++++++++++++++++
Type characters from keyboard, the board receives and then echoes them to the terminal screen.

Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

UART polling

These instructions are displayed/shown on the terminal window:

++++++++++++++++ UART Send/Receive Polling Example +++++++++++++++++
Type the characters on the keyboard and the board receives and then echoes them to terminal screen.

Type the characters on the keyboard and the board receives and then echoes them to terminal screen.