Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SAM4L QTouch Example

Purpose

This example demonstrates how to use QTouch library on SAM4L devices.

Requirements

This example can be used on SAM4L series.

Description

The program configures the necessary modules for using QTouch library. After it started, users can turn on and off the on-board LED by touching the QTouch key.

Usage

  1. Build the program and download it into the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or the IAR EWARM User and reference guides, depending on the solutions that users choose.
  2. On the computer, open and configure a terminal application (e.g., HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. In the terminal window, the following text should appear (values depend on the board and chip used):
    -- SAM4L QTouch Example xxx --
    -- xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
  4. the sent text should appear.