Professional Documents
Culture Documents
Overview
In this article the Aardvark adapter is the I2C master and the I2C EEPROM on the I2C/SPI activity board is the
I2C slave.
The AT24C02 I2C EEPROM on the activity board has a hardware configurable I2C target address. The default
I2C target address is 1010000b, which is 0x50. This article uses the default I2C target address 0x50. For
additional information take a look at knowledge base article 10039.
The I2C/SPI activity board receives the I2C pulls-ups and power from the Aardvark adapter. In order to supply
the I2C pull-ups and target power to the Activity board, the Aardvark adapter should be configured to I2C pull-ups
enabled and target power enabled. For additional information take a look at the I2C/SPI activity board user's
manual.
The write operation used here to the AT24C02 is Byte Write. The Byte Write operation to the AT24C02 requires 7
bit device address, one byte memory address, and one or more bytes of memory data. Performing a memory
write operation with the Aardvark adapter requires a single command from the adapter. In this case, the single
Aardvark adapter write command includes the device address (0x50), the memory address (0x00), and the
memory data (0x0A 0x0B 0x0C).
Figure 1: AT240C Byte Write
The read operation used here is the Current Address Read. In the Current Address Read operation, the internal
data word address counter maintains the last address accessed during the last read or write operation,
incremented by one. Once the device address with the read/write select bit set to one (which denotes a read
transaction) is clocked in and acknowledged by the EEPROM, the current address data word is serially clocked
out. For additional information take a look at theAT24C02 datasheet.
Figure 2: AT240C Current Address Read
In this article the memory read operation includes two Aardvark adapters commands:
1.
The first command is a write for configuring the internal data word address counter to a specific address
(0x08).
2.
The second command is a read to actually read the data starting from address 0x08.
Download and run the latest version of the Total Phase USB Drivers Installer.
2.
3.
4.
Connect the Aardvark adapter to the I2C/SPI activity board via the I2C/SPI connector. (?)
5.
6.
2.
3.
7.
8.
Click Aardvark, and enable I2C Pulls-Ups and Target Power. (This configuration is required for the activity
board, but may not be required for all target systems.)
9.
Configure the adapter as an I2C Master using the I2C Control panel. (?)
1.
2.
3.
4.
5.
6.
7.
Enter 08 in the Message rectangular, and click Master Write. (By only sending the word address
without any data, the internal data word address counter is set to 0x08).
8.
Click Master Read, and verify that the read data is 0A 0B 0C.
Notes
For additional information, take a look at the Aardvark adapter user manual, I2C/SPI activity board user's
manual andControl Center manual.