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

Overview

This LPUART example application demonstrates the SDK Peripheral drivers working with different methods. The LPUART example shows transmit/receive LPUART driver with these efficiency methods:

Transfer data between the board and the PC. The board transfers and receives characters through the LPUART interface. Type characters on the keyboard and the board receives and echoes them to the terminal screen. Look for instructions output to the terminal.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

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

FLEXIO_UART_DMA interrupt method

These instructions are displayed/shown on the terminal window:

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

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

LPUART non-blocking

These instructions are displayed/shown on the terminal window:

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

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

LPUART DMA blocking

These instructions are displayed/shown on the terminal window:

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

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

LPUART DMA non-blocking

These instructions are displayed/shown on the terminal window:

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

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

LPUART polling

These instructions are displayed/shown on the terminal window:

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

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