Back to drivers page

# AVR Software Framework: UC3 CPU

Copyright © 2010 Atmel Corporation

## Cycle Counter

The cycle counter is a COUNT register, that increments once every clock. The count register can be used together with the COMPARE register to create a timer with interrupt functionality. The COMPARE register holds a value that the COUNT register is compared against. When the COMPARE and COUNT registers match, a compare interrupt request is generated and COUNT is reset to 0.

See drivers in /cycle_counter and an example.

## MPU

The MPU allows the user to divide the memory space into different protection regions. These regions have a user-defined size and start at a user-defined address. The different regions can have different access privileges attributes. You can also read the Memory Protection Unit section in the AVR32 UC technical reference guide.

See drivers in /mpu and an example.

## Secure State or Flashvault

The Secure State allows execution of secure or secret code alongside 3rd-party code on the same processor. The secret code will execute in the secure state, and therefore be protected from hacking or readout by the 3rd-party code. Recommended reading: the Secure State chapter in the AVR32 UC Technical Reference manual.

See drivers in /secure_state and an example.

## MCU Reset Cause

See drivers avr32_reset_cause.h and an example in /services/basic/cpu/reset_cause_example.