I2C SPI USB CAN eSPI Cable Testing View All Videos Quick Start Guides Software Downloads App Notes White Papers User Manuals Knowledge Base Sales Support About Us
Products Blog Sales Support Contact Search
How Do I Set Up the Aardvark Host Adapter for I2C Slave Mode?
Rena Ayeras

Question from the Customer:

I’m an intern working on my first project, analyzing the controls and performance of a robotics arm (for manufacturing) – can you help me get started? I need to use your Aardvark I2C/Host Adapter in slave mode. I’ll also be using the Control Center Software – what do I need to do?

Response from Technical Support:

Thanks for your question! Setting up the Aardvark adapter in slave mode is easy.  Launch Control Center Software, and in the dialog select Adapter, select Connect, select Aardvark-Slave and then click OK.

We have an example for setting up and using the Aardvark adapter in Slave Mode on the I2C bus. This example uses two Aardvark adapters - one to function as a Slave and the other one to function as the Master. It also uses two instances of the Control Center Software, one for each Aardvark adapter.

For each Aardvark adapter, launch the Control Center Software and connect the Aardvark adapter to the computer via the USB bus.

Set up Slave Mode for the first adapter:

  1. Click Adapter -> Connect → Select Aardvark-Slave -> Click OK.
  2. In the I2C Control section, click Slave. This sets up the adapter as a Slave device.
  3. Enter 100 in Bitrate rectangular, and click Set.
  4. Enter 0x50 in Slave Address field.
  5. Configure Max Tx Bytes to 3, Max Rx bytes to 3.
  6. Enter 01 02 03 in the Message field. This is the response the Slave will deliver to the Master when requested.
  7. Click Set Resp. - > click Enable.

AardvarkSetupSlaveMode

 

Set up Master Mode for the second adapter:

  1. Click Adapter -> Connect → Select Aardvark-Master -> Click OK. This sets up the adapter as the Master device.
  2. Click Adapter → Enabled Target Power.
  3. Click Adapter → Enabled I2C Pull-ups.
  4. Use I2C Control section.
  5. Click Master.
  6. Enter 100 in Bitrate rectangular, and click Set.
  7. Enter 0x50 in Slave Address field.
  8. Disable 10 Bit Addr and No Stop.
  9. Enter 3 in Number of Bytes field.
  10. Enter 0A 0B 0C in the Message field.
  11. Click Master Write and Master Read.

AardvarkSetupMasterMode

 

We have more information available 24/7 – check out our video and our knowledge base articles.

We hope this answers your question. Additional resources that you may find helpful include the following:

If you have questions about our 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.