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
- Build the program and download it into the evaluation board.
- 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
- Start the application.
- 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?