You can batch program devices using the Aardvark I2C/SPI Host Adapter and any of the following applications: the Control Center Software, the Flash Center Software or the Aardvark Software API. Following is a summary of the example provided in our latest knowledge base article, Programming I2C EEPROM using Aardvark Adapter and Control Center Batch Mode. With some modification, this example be used for programming other devices.
This setup of this example:
- The Aardvark adapter as the I2C master
- The AT24C02 I2C EEPROM as the slave device. In this setup, the EEPROM is part of the I2C/SPI Activity Board.
- The Control Center Software installed on a computer
- Writing data to the slave device will be followed by reading the data
<configure i2c="1" spi="1" gpio="0" tpower="1" pullups="1">
- I2C mode: i2c="1" spi="1" gpio="0"
- Enable target power: tpower="1"
- Enable I2C pullups: pullups="1"
In this example, the commands for writing 256 bites will be as shown below. Note - this example represents the first and last i2c_write commands used for writing 256 bytes of data.
<i2c_write addr="0x50" count="2" radix="16">00 00</i2c_write>
<i2c_write addr="0x50" count="2" radix="16">FF FF</i2c_write>
<i2c_write addr="0x50" count="1" radix="16" nostop="1">00</i2c_write>
<i2c_read addr="0x50" count="256"/>
About the write command parameters:
- Device address: addr="0x50"
- Number of data bytes: count="1"
- Data format: radix="16"
- Memory address: 0x00
- No stop: nostop="1"
About the read command parameters:
- Device address: addr="0x50"
- Number of data bytes: count="256"
- Connect the Aardvark adapter to the computers via the USB connector.
- Connect the Aardvark adapter to the I2C/SPI activity board via the I2C/SPI connector.
- Launch the Control Center and connect to the Aardvark adapter:
- Click Configure Aardvark Adapter.
- Select the Aardvark Adapter.
- Click OK to connect to the adapter.
- Click Aardvark and then choose Batch Mode.
- Write to the memory
- Click Load and then choose i2c-eeprom-write.
- Click Open and then Execute.

- Click Load and then select i2c-eeprom-read.
- Click Open, and then Execute.

For more information, please refer to the following documents:
- Aardvark Adapter User Manual
- I2C/SPI Activity Board User Manual
- Control Center Software User Manual
- Flash Center Software
- Aardvark API Software
- AT24C02 Datasheet
- 7-bit, 8-bit, and 10-bit I2C Slave Addressing
If you have questions about our host adapters or other Total Phase products, feel free to email us at sales@totalphase.com or submit a request for technical support.