| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GPIO UART User Guide
GPIO UART Demo

This section provides more detailed information on using this demo application. More...

### GPIO UART User Guide

# Getting started

The GPIO UART project is designed to work with the tower system or in a stand alone setting. If you are using your Tower or Freedom board in a stand alone setup, follow the OpenSDA directions. Otherwise, if you are using the Tower system and a serial card, follow the Serial Card instructions.

# OpenSDA

Download the program to target board. Connect a USB cable to PC host and open a serial terminal configured as described in "Terminal Configuration". When successfully connected, press the reset button on your development board. The following banner should be displayed on the terminal:

- Beginning GPIO UART Emulation Demo *
- Input any character to have it echoed to *
- the terminal *

Now you may type characters into the terminal and what you type will be echoed back to the terminal.

# Serial Card

Connect a Serial card to your PC (you may need a serial to USB converter for this) and open a serial terminal configured as described in "Terminal Configuration". When successfully connected, download the program to target board. The following banner should be displayed on the terminal:

- Beginning GPIO UART Emulation Demo *
- Input any character to have it echoed to *
- the terminal *

Now you may type characters into the terminal and what you type will be echoed back to the terminal.

# Terminal Configuration

The GPIO UART project is, by default, configured to the following terminal configuration:

- 19200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control

# Communication Interface settings

If you need to change the default port pins, perform this step:

- Change the kGpioUartDemoTX and kGpioUartDemoRX to the desired pin in the _gpio_pins enumeration table in the gpio_pins.h file.

# Pin configurations:

No extra pins are needed for this project. Only the pins described in Communication Interface Settings are required for this demo application.

# Commands/Directions

Once the application begins, it will simply print a banner to the terminal, followed by two new line characters and a carriage return. Then it will wait for user input into the terminal. When characters are typed into the connected terminal, the application will receive the character, and then echo the received character back to the connected terminal.