This example demonstrates how to use the following two drivers:
EEPROM memory is simulated using the internal RAM of ATMEL's AT24C01C device which includes 128 bytes of memory. This RAM area is only accessed by the simulated EEPROM while the rest of the application must use hardware configured TWI commands to access RAM.
The selected memory chip has a 7-bit address constant. During a write operation, a word is selected to access the memory. The first byte sent is used as the current address pointer.
During a single access, the entire memory can be read and a maximum of an 8-byte page can be written.
The following are differences between the actual chip and the simulated chip:
The Master communicates with the EEPROM memory and additonally has read and write access. Simple UART commands can be used to check the memory.
Pins to short (see config.h file example directory):
Supported commands are listed in the welcome message.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\twi_master_with_twis_slave
Test the TWIS slave and TWI master mode drivers example application by performing the following steps:
WARNING: EEPROM transmission error detected.