Microchip® Advanced Software Framework

SAM EVENTS Unit Test

Overview:

Introduction

This unit test carries out tests for the EVENTS driver.

It consists of test cases for the following functionalities:

  • Test for synchronous event propagation.
  • Test for resynchronized event propagation.
  • Test for asynchronous event propagation.

This unit test carries out test for three modes of event propagation: Synchronous, Resynchronized & Asynchronous.

  • A RTC module with internal 32kHz RC oscillator is configured as an event generator and a Timer Counter (TC3) module is configured as event user.
  • RTC overflow signal is sent as an event to the timer. The timer will start counting on receiving this event.
  • The timer's count register is read to detect successful event action.

The following kits are supported for carrying out the test:

  • SAM D20 Xplained Pro board
  • SAM D21 Xplained Pro board
  • SAM R21 Xplained Pro board
  • SAM L21 Xplained Pro board
  • SAM L22 Xplained Pro board
  • SAM DA1 Xplained Pro board
  • SAM C21 Xplained Pro board
  • SAM HA1G16A Xplained Pro board
  • SAM R30 Xplained Pro board
  • SAM R30 Module Xplained Pro board
  • SAM R34 Xplained Pro board
  • WLR 089 Xplained Pro board

Setup

The following connections has to be made using wires:

  • None

To run the test:

  • Connect the Xplained Pro board to the computer using a micro USB cable.
  • Open the virtual COM port in a terminal application.
    Note
    The USB composite firmware running on the Embedded Debugger (EDBG) will enumerate as debugger, virtual COM port and EDBG data gateway.
  • Build the project, program the target and run the application. The terminal shows the results of the unit test.

Usage

  • The unit test carries out test for three modes of event propagation: Synchronous, Resynchronized & Asynchronous.
  • RTC module with internal 32kHz RC oscillator is configured as event generator and Timer (TC3) module is configured as event user.
  • RTC overflow signal is sent as an event to the timer. The timer will start counting on receiving this event.
  • Timer's count register is read to detect successful event action.

Compilation Info

This software was written for the GNU GCC and IAR for ARM. Other compilers may or may not work.

Contact Information

For further information, visit http://www.microchip.com.