Wiki

This version (12 May 2021 12:18) was approved by Prasad Kamath.The Previously approved version (11 May 2021 12:09) is available.Diff

Click here to return to the Master Control Port page

I2C Read



Description


There are two different versions of I2C Read module.

  1. I2C Periodic Read
  2. I2C Read with external Trigger

The 'I2C Periodic Read' block reads a particular sub address from any I2C slave periodically and sends the value read in the output pin.
The 'I2C Read with external Trigger' block reads a particular sub address from any I2C slave when a rising edge is detected in the input pin.

Usage


Click on the configure button to configure the parameters for I2C read.


Create Multiple instances for monitoring multiple slaves/ multiple sub address from same slave.

Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/146x
—————————————-——————————————————————————————--——————————————-
I2C Read Not Supported Not Supported Sample


Pins


Input Pins

NameTypeDescription
—————————————————————————————--
TriggerControlRising edge in this signal initiates read.


Output Pins

NameTypeDescription
———————————————————-————————————--
OutputXControlOutputs data read over I2C


Configurable Parameters

GUI Control NameDefault ValueRangeFunction Description
—————————————————- ———————- —————————————— ———————————————————————-
I2CBitrate400 kHz 20 - 400 kHzI2C Speed
I2CDeviceAddress00 – 127I2C Slave Device Address
I2CDeviceAddressBits8-Bit8-Bit/7-Bit 7 or 8 bit i2c address
I2CDeviceAddressFormatHexHex/Dec Address format
DataLength41-4 Length of the data to be read
SubAddressBytes21-4 Length of the sub address
ReadAddress_OutputX00 to Pow(2, Address Length) - 1Sub- address of the slave to be read
InitialOutputValue_OutputX0-2147483648 to 2147483647Value in the output pin till the first read is complete.


Note: X indicates the channel number

DSP Parameters


Not applicable

DSP Parameter Computation


Not applicable

resources/tools-software/sigmastudiov2/modules/mastercontrolport/i2cread.txt · Last modified: 11 May 2021 16:25 by Prasad Kamath