Photo by Geralt
Question from the Customer:I am working on a system that supports both I2C and SPI data buses. What I am trying to do is use a single program to operate both the Aardvark I2C/SPI Host Adapter and the Cheetah SPI Host Adapter. Here are the key steps of a continuous operation:
I want to be able to run some batch scripts that will first use the Aardvark adapter for I2C write, then use the Cheetah adapter for SPI write/read. Then repeat.
On this system, the SPI bus runs much faster than the I2C bus, which is why I need to use both host adapters.
Do you have any examples of what I want to do – use a single script to run the Aardvark adapter for I2C functions and the Cheetah adapter for SPI interactions? I am aware that I could use two instances of the Control Center Serial Software, one for each adapter, but that would be a cumbersome process to develop and maintain.
Response from Technical Support:Thank you for your question! Normally we recommend using separate instances of the Control Center Serial Software for each device. For your request, we also provide Aardvark Software API and Cheetah Software API, which you can use to create a single script to run both adapters. Each API supports multiple programming languages and operating systems and comes with documented functional examples. If the script is complex, you could use batch scripting with the Control Center Serial Software to quickly try out ideas before creating the API scripts.
Here is an overview of what we provide with API, which can be used as is or customized for your system.
You can use Aardvark API examples and modify them as needed. All the scripts were written for writing/reading from the Aardvark adapter to the Atmel SPI EEPROM AT25080A, which is on the I2C/SPI Activity Board.
For more information, please refer to the Aardvark API documentation.
Here is a list of the Cheetah API examples:
For more information, please refer to the Cheetah API documentation.
We hope this answers your question. 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.