Microchip® Advanced Software Framework

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

Purpose

This example demonstrates the Real-Time Timer (RTT) provided on SAM microcontrollers. It enables the user to set an alarm and watch it being triggered when the timer reaches the corresponding value.

Requirements

This package can be used with SAM evaluation kits.

Description

When launched, this program displays a timer count and a menu on the terminal, enabling the user to choose between several options.

Usage

  1. Build the program and download it into the evaluation board.
  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. Start the application.
  4. In the terminal window, the following text should appear:
    -- RTT Example --
    -- xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    Time: 1
    Menu:
    r - Reset timer
    s - Set alarm
    Choice?