I2C SPI USB CAN eSPI Cable Testing View All Quick Start Guides User Manuals Software Downloads Knowledge Base Videos Case Studies App Notes White Papers Sales Support About Us
Products Blog Sales Support Contact Search
Is it possible to multi-task the Aardvark I2C/SPI Host Adapter as multiple I2C slaves with separate slave addresses?
Rena Ayeras

Question from the Customer:

I will be using my Aardvark I2C/SPI Host Adapter as an I2C slave to send a response to the request sent from the Master.  My question is can I use my Aardvark adapter as multiple I2C Slaves with different slave addresses? Some requirements:

  • I need to send my slave data to master every 0.25 Seconds.
  • My bus speed is 100 kHz.

Can I use batch scripting to do this?

Response from Technical Support:

Thanks for your question!  As the Aardvark adapter is the I2C slave, your master device controls the clock - you can read from the Aardvark adapter every 0.25 s. The Aardvark adapter supports only one slave address. However, using Aardvark API Software, you can repeatedly change the slave address and if needed, the response as well.

Aardvark I2C/SPI Host Adapter

For this to work, ensure that your I2C master does not attempt to communicate with the Aardvark adapter slave when it is disabled or in-between any of the following steps:

  1. Set the I2C slave address.
  2. Set the response data, up to 64 bytes.
  3. Enable the slave.
  4. Wait for an external event (or time 0.25 s).
  5. Disable the slave.
  6. Repeat  steps 1 - 5 with different slave addresses and response data.

You can use Python, C, C# or .NET to write your code using our API functions and language bindings. Functional example scripts are provided with the API package, which you can use as is or modify as needed. For details about the API commands, please refer to the API Documentation.

For more advanced slave capabilities, including longer message sizes and faster response times, check out the Promira Serial Platform.

Additional resources that you may find helpful include the following:

We hope this answers your question. Need more information? You can contact us and request a demo that applies to your application, as well as ask questions about our host adapters and other Total Phase products.

We hope this answers your question. Have another question or need more details? You can contact us and request a demo that applies to your application, as well as ask questions about our host adapters, serial platforms and other Total Phase products.

Request a Demo