Wiki

This version is outdated by a newer approved version.DiffThis version (11 May 2021 12:09) was approved by Prasad Kamath.The Previously approved version (19 Mar 2021 02:04) is available.Diff

This is an old revision of the document!


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/1456x
—————————————-——————————————————————————————--——————————————-
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.1620727775.txt.gz · Last modified: 11 May 2021 12:09 by Prasad Kamath