Microchip® Advanced Software Framework

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

Purpose

This example demonstrates the Bus Matrix (MATRIX) provided on SAM microcontrollers.

Requirements

This example can be used on any SAM boards.

Description

This example shows running speed between two matrix configuration. LED toggle times in one second is measured. The first test is done with Round-Robin arbitration without default master. The second test is done with Round-Robin arbitration with last access master. As expected, the LED toggle times of test1 is lower than that of test2.

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:
    -- MATRIX Example --
    -- xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    Configure system tick to get 1ms tick period.
    -- Test1: configure Round-Robin arbitration without default master. --
    Led toggled xxx times in one second
    -- Test2: configure Round-Robin arbitration with last access master. --
    Led toggled xxx times in one second