Learn How Easy It is to Use the Total Phase I2C/SPI Activity Board with the Aardvark I2C/SPI Host Adapter for Your Projects
Question from the Customer:
I’ve been using your Beagle I2C/SPI Protocol Analyzer, and now I’m trying out your Aardvark I2C/SPI Host Adapter. Using the I2C/SPI Activity Board, I want to do something simple like turn on an LED. What steps do I need to take to perform this action?
Response from Technical Support:
Thank you for your question! The I2C/SPI Activity Board is a great tool for both the expert as well as the novice developer. The board is great in assisting with debugging a system against working slave devices and also helps differentiate between hardware and software bugs.
Following are the steps it takes for turning on the LED of the Activity board.
- Connect the Aardvark adapter to one of the two 10-pin headers on the Activity board. Also connect the Aardvark adapter to your Host PC using a USB cable.
- Launch the Control Center Serial Software and connect to the Aardvark adapter:
- Under the Adapter tab, click Connect.
- You should see the Aardvark adapter. Select the adapter and click OK.
- Select I2C:
- Under the Adapter tab, select I2C + GPIO.
- Enable I2C pull-ups:
- Under the Adapter tab, select I2C Pull-ups.
- Enable target power to the Activity cards;
- Under the Adapter tab select Target Power (Pin 4,6)
- Click on 5 V.
- Write to the Port expander I2C slave on the Activity card that controls the 8 LEDs:
- In the I2C Control pane (on the left side), select Master. This configures the Aardvark adapter as the I2C master.
- Enter 0x38 into the text box next to Slave Addr. This is the slave address of the port expander.
- Enter 03 00 into the Message box and click on Master Write. This initializes the port expander.
- Clear the previous data in the Message box and enter 01 FE and click on Master Write.
- The top LED (D0) should light up green.
For another example about using the Activity Board, refer to our knowledge base article How to Read and Write to an I2C EEPROM Using the Aardvark Adapter and Control Center.
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, you can contact us and request a demo that applies to your application, as well as ask questions about the Promira Serial Analyzer and other Total Phase products.
Request a Demo