Support Question of the Week: How is a Batch File Run on the Control Center Software with the Aardvark I2C/SPI Host Adapter for an I2C Device?

We recently purchased an AardvarkTM I2C/SPI Host Adapter. We're using it to read two packets from the register from a PLX chip. We're trying to use the batch mode of the Control CenterTM Software, but we can't get it to work. Can you advise us how to correct the script?

  • The address of the PLX chip is 70.
  • The command bytes we are sending are 04, 00, BC and 14.

Thanks for your question! We have a knowledge base article that should be useful for your project: "How to Read and Write to an I2C EEPROM Using the Aardvark adapter and Control Center".  This article provides an example of writing several bytes of data to a specific address and then reading back the data. The necessary information from an EEPROM datasheet is extracted, and then the appropriate commands are executed from the Control Center Software.  The AT24C02 I2C device (EEPROM) (found on the I2C/SPI Activity Board) is used in this example - you can modify the instruction for your PLX device.  There are other documents that may be useful about running a batch file for your setup:

Following is a summary of setting up and running a batch file:

  1. Use the slave address 0x38 (7 bit format).
  2. Modify the knowledge base instructions to fit your PLX device.
  3. Perform the following batch test. To do so:
    • The batch mode test file:
      <aardvark>
      <configure i2c="1" spi="1" gpio="0" tpower="0" pullups="0"/>
      <i2c_bitrate khz="100"/>
      <i2c_write addr="0x38" count="4" radix="16" nostop="0">04 00 BC 14</i2c_write>
      <i2c_read addr="0x38" count="4"/>
      </aardvark>
    • In the Control Center, click Aardvark -> Enable Batch Mode -> Load the Batch Mode Test file (above) -> Click

 

Run a batch mode file using the Aardvark I2C/SPI Host Adapter and the Control Center Software. Figure 1: Running Batch Mode in Control Center Software

 

For additional information, please refer to the following documents:

How to Read and Write to an I2C EEPROM Using the Aardvark adapter and Control Center
Control Center Software User Manual
Aardvark I2C/SPI Host Adapter Quick Start Guide
Aardvark Adapter User Manual
Total Phase Products
Product Selector Guide

We hope this answers your question. If you have other 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.

 

Leave a Reply