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?
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:
<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>
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
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.