We are using the Aardvark I2C/SPI Host Adapter and the GPIO to test our prototype I2C-to-CEC Translators. These prototype boards are connected together, and each one is connected to an I2C master. The first board receives a few bytes over I2C (the first Aardvark adapter writes the data) and translates them to CEC format. The second board receives the CEC encoded byte stream and translates it back to an I2C stream (the second Aardvark reads the data).
The first board receives the I2C bytes correctly. Our difficulty is reading the I2C bytes from the second board, as we do not know exactly when the I2C data is available in the second board. We use batch mode I2C reads with delays, but we miss many I2C bytes.
How can we use I2C reads without missing any data from the second Board? How can we synchronize I2C reads when the data is generated on the second board?
More details about the setup:
Thanks for your question! The Aardvark adapter is definitely the right device for what you are trying to accomplish. With its I2C master capabilities and four GPIO signals, and the flexible and customizable Aardvark Software API, you can make sure that all the data is being read by using the GPIO lines on the second Aardvark adapter to synchronize with the second I2C-to-CEC board.
Here are the guidelines for synchronous I2C reads:
Alternatively, the PromiraTM Serial Platform, would be an ideal tool to support your system requirements with even more capabilities. Compared to the Aardvark adapter, it has shorter USB and Ethernet delays between it and the host computer.
A summary of the Promira platform features:
The current release of the Promira platform supports I2C Active – Level 1 and SPI Active – Level 1 Applications. More features will be available as we release more software applications to drive the Promira platform.
Additional resources that you may find helpful include the following:
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 if you already own one of our devices and have a technical question, please submit a request for technical support.