Introduction
This example demonstrates how to use the HMATRIX module. This example show number of cycle save between two configuration. In the present example, function is called NB_TOGGLE time and the number of cycle is measured. The first test is done with Slave Default Master Type configured with default value. The second test is done with Slave Default Master Type configured with Last Default Master.
The number of cycle is save for both tests. As expected the number of cycle is lower for test2.
Main Files
Compilation Information
This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR UC3. Other compilers may or may not work.
Device Information
All AVR UC3 devices with an HMATRIX and a USART module can be used.
Configuration Information
This example has been tested with the following configuration:
with the following setup:
- EVK1100 evaluation kit with an AT32UC3A0512 MCU.
- EVK1101 evaluation kit with an AT32UC3B0256 MCU.
- EVK1104 evaluation kit with an AT32UC3A3256 MCU.
- EVK1105 evaluation kit with an AT32UC3A0512 MCU.
- UC3L_EK evaluation kit with an AT32UC3L064 MCU.
- UC3C_EK evaluation kit with an AT32UC3C0512C MCU.
- STK600+RCUC3D routing card with the following configuration :
- connect STK600.PA4 to STK600.LEDS.LED0
- CPU clock: – 12 MHz : EVK1100, EVK1101, EVK1104, EVK1105, UC3L_EK, STK600+RCUC3D evaluation kit; – 16 MHz : UC3C_EK evaluation kit;
- USART : – USART2 (on EVK1100, EVK1101) connected to a PC serial port ; – RS232 (on STK600) connected to a PC serial port ; – USART2 (on EVK1104, EVK1105, UC3C_EK, UC3L_EK) connected to a PC serial port abstracted with a USB CDC connection to a PC; – STK600.RS232 (on STK600+RCUC3D) connected to a PC serial port ;
- PC terminal settings:
- 57600 bps,
- 8 data bits,
- no parity bit,
- 1 stop bit,
- no flow control.
Contact Information
For further information, visit Atmel AVR32.