Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Drivers NVM Example 2 for XMEGA-A1 Xplained Documentation

Introduction

This example shows how to use and tests the NVM EEPROM handling of the NVM driver.

Main Files

Device Info

All AVR XMEGA devices can be used. This example have been tested with the following setup:

  • Xplain
  • XMEGA A1 Xplained

Description of the example

The example tests the EEPROM and reports back the status on the Xplain LEDs:

  • LED0: Erasing of all pages works as expected
  • LED1: Write functions work as expected
  • LED2: Atomic erase and write works as expected
  • LED3: Write without an erase works as expected
  • LED4: Erase of a few bytes in a page works as expected
  • LED7: Test completed

If one of the LEDs does not light up, this indicates a failure on the test.

Dependencies

This example depends on the following modules:

Compilation info

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

Contact Information

For further information, visit Microchip.