I am using the Control Center Serial Software with the Aardvark I2C/SPI Host Adapter. I need to send data to an I2C device with and without the stop bit – is there a way I can control the behavior of the stop bit? Here is the sequence of what I need to execute:
Master Write 0x63, 0x03 with no stop bit.
Master Read 0x63, and 18 bytes with the stop bit.
I’d also like to run the commands in batch mode.
Response from Technical Support:Thank you for your questions! We have a solution for you – we’ll start with an overview running commands using the Control Center Serial Software, and then provide an example of commands for the batch script. We’ll use 0x63 as the address for the I2C target slave address.
Here is a view of the Master dialog of the Control Center Serial Software.
There are two methods for the Read command that follows Master Write, which are described below.
Master Read - method 1
Here is an example what the code could look like in batch mode. For reading, this example uses method 1.
<adapter>
<i2c_write addr="0x63" count="1" radix="16" nostop="1">03</i2c_write>
<i2c_read addr="0x63" count="18"/>
</adapter>
To run batch code:
There are two ways to run batch code: manually enter the code or execute a file. This information is provided in the following sections.
You can manually enter the commands and run the file in the Batch Mode dialog, as shown below.
You can also save the commands in a file, and then run the file. You use the Batch Mode dialog, which is illustrated above.
Information about batch instruction commands is available in the Control Center Serial Software. To obtain the information, click the Help button and the following dialog will appear.
Additional resources that you may find helpful include the following:
We hope this answers your questions. If you have other questions about our Total Phase products, feel free to email us at sales@totalphase.com. You can also request a demo specific for your application.