
• Can be used to shorten read/write commands
• Ex: board.devAddress = 0x60 sets the board address to 0x60
13.5.1.2 General I2C Reads/Writes:
These I2C commands will work for any I2C address on the local bus and remote devices configured in the slave
ID and slave alias registers of the device. The 8-bit form of I2C addresses should be used.
board.ReadI2C(Device Address,
Register Address , # of Bytes) OR
board.ReadI2C(Device Address,
Register Address)
I2C Read Command
• Accepts both hex & decimal inputs
• Number of bytes will default to 1 if omitted
• Ex: board.ReadI2C(0x60, 0x00) will return the value in Register 0 for
the device with address 0x60 (8-bit form)
board.WriteI2C(Device Address,
Register Address , Data)
I2C Write Command
• Accepts both hex & decimal inputs
• Ex: board.WriteI2C(0x60, 0x01, 0x01) will set Register 1 of the device
with address 0x60 (8-bit form) to have a value of 1
13.5.1.3 I2C Reads/Writes with Multi-Byte Register Addresses
These I2C commands will work for any I2C address on the local bus and remote devices configured in the slave
ID and slave alias registers of the device. The 8-bit form of I2C addresses should be used.
board.ReadI2C(Device Address,
Register Address Byte 2,[Register
Address Byte 1, # of Bytes])
OR board.ReadI2C(Device Address,
Register Address Byte 2, [Register
Address Byte 1])
I2C Read Command for devices with multi-byte register addresses
• Accepts both hex & decimal inputs
• Number of bytes will default to 1 if omitted
• Ex: board.ReadI2C(0x60, 0x30, [0x00]) will return the value in
Register 0x3000 for the device with address 0x60 (8-bit form)
board.WriteI2C(Device Address,
Register Address Byte 2, [Register
Address Byte 1, Data])
I2C Write Command for devices with multi-byte register addresses
• Accepts both hex & decimal inputs
• Number of bytes will default to 1 if omitted
• • Ex: board.WriteI2C(0x60, 0x30, [0x01, 0x01]) will set Register
0x3000 of the device with address 0x60 (8-bit form) to have a
value of 1
Using ALP and DS90UB954 Profile
30
DS90UB954-Q1EVM Deserializer User's Guide
SNLU223C – AUGUST 2017 – REVISED NOVEMBER 2022
Copyright © 2022 Texas Instruments Incorporated