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
XBAR and AOI Demo

This demo application demonstrates the XBAR and AOI demo. More...

Overview

The XBAR and AOI demo project is a demonstration program that uses the KSDK software. In addition to the XBAR and the AOI peripheral drivers, the PIT and the CMP module drivers are used too. A button with a pull-up resistor (PSEL) and output of 6-bit DAC (MSEL) are the CMP inputs. The PIT is configured to the periodic 500 ms interrupt generating. The CMP and the PIT outputs are connected by the XBAR module to the AOI inputs. In AOI, the CMP output is inverted and logical AND is made with the PIT and inverted CMP output. The AOI output is then connected to the XBARA_OUT0 output which is configured to generates the interrupt event on the rising edge. In the interrupt service rutine, the message is printed on a debug console. So, if the button is pressed and the PIT periodic interrupt occurs a message is printed.

Supported Platforms

This Freescale Tower System development platform is supported by the Kinetis SDK XBAR and AOI demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

The XBAR and AOI demo project is designed to work with the Tower System.

Hardware configuration

Be sure that a jumper on J4 HDR is in 1-2 position (GC7 is connected to the button).

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.

Run the demo

  1. Push the SW1 button on Tower board and watch debug console output.
  2. The message is written on debug console every 0.5 second, if SW1 button is pressed.