
I need to set up an Aardvark I2C/SPI Host Adapter as I2C slave device that will respond to a 10-bit slave address. So far, I am only able to set up a 7-bit address. My questions:
Thank you for your questions! The Aardvark I2C/SPI Host Adapter supports standard I2C addressing modes, with the following distinctions:
The 10-bit addressing mode on an I2C bus is transparent to slaves with 7-bit addresses because the master sends two address bytes instead of one. Here is the methodology:
By configuring the Aardvark adapter’s slave address to the first 7 bits, the adapter will respond to 10-bit addressing.
For example, to send a write command to a slave with 10-bit address 0x355, the master device would deliver the following to the slave device:
In this case, set the Aardvark's slave address to 0b1111011 (0x7B).
Note: The first data byte the Aardvark adapter sees is not actually data. Instead, it is the second address byte sent by the master device. For more information about this process, refer to our KB article 7-bit, 8-bit, and 10-bit I2C Slave Addressing.The slave address is the address of the target I2C slave device. This address can be entered in either decimal or hexadecimal notation.
All I2C products from Total Phase follow this standard convention. The slave address used should only be the top seven bits. In the case of the Aardvark I2C/SPI Host Adapter, the software will automatically append the correct read/write bit depending on the transaction to be performed.
We hope this answers your questions. Additional resources that you may find helpful include the following:
If you want more information, feel free to contact us with your questions, or request a demo that applies to your application.