Purpose
This file contains all the specific code for the basic-twi-eeprom-project.
Contents
The code can be roughly broken down as follows:
- TWI interrupt handler
- The main function, which implements the program behavior
- Configure TWI
- Sets the first and second page of the EEPROM to all zeroes
- Writes pattern in page 0; Reads back data in page 0 and compare with original pattern (polling).
- Writes pattern in page 1; Reads back data in page 1 and compare with original pattern (interrupts).
Please refer to the list of functions in the
Overview tab of this unit for more detailed information.