SAMV71 Xplained Ultra Software Package 1.5

RTT Example

Purpose

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

You can configure the rtt_module "RTT" by following steps

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.

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 inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf

On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:

Start the application.

  1. In the terminal window, the following text should appear:
         -- RTT Example xxx --
         -- xxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
         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.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines