Microchip® Advanced Software Framework

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

Purpose

The application demonstrates how to access AT24MACXX EEPROM component.

Requirements

This package can be used with SAM evaluation kits.

Description

Upon startup, the program configures PIOs for console UART, LEDs and TWIHS connected to AT24MACXX on board. Then it initializes the AT24MACXX component. After initializing it, the example sends test pattern to the AT24MACXX component. When the sending is complete, AT24MACXX API reads the memory and saves the content in the reception buffer. Then the program compares the content received with the test pattern sent before and prints the comparison result. The corresponding LED is turned on.

Compilation Info

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

Contact Information

For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/