This example demonstrates the Real-Time Timer (RTT) provided on AT91 microcontrollers. It enables the user to set an alarm and watch it being triggered when the timer reaches the corresponding value.
This package can be used with any of the AT91 Evaluation Kits except the AT91SAM7L-EK and AT91SAM7L-STK.
When launched, this program displays a timer count and a menu on the DBGU, enabling the user to choose between several options:
The user can set an alarm time by selecting option 2 ('s'), entering the alarm time and pressing the enter key. Once the alarm is set, a message will be displayed when the corresponding time is reached.
-- Basic RTT Project 1.4 --
Time: 0
Menu:
r - Reset timer
s - Set alarm
Choice?
The user can then choose any of the available options to perform the described
action.