SLVAFZ9 June 2026 TAC5212
The following I2C scripts sets four devices for shared TDM mode, after devices are reset:
# Key: w NN YY ZZ ==> write to I2C address 0xNN, to register 0xYY, data 0xZZ
# # ==> comment delimiter
#
# I2C programming script for four devices sharing a TDM bus
# U4(SDOUT) -> U3 (SDOUT) -> U2 (SDOUT) -> U1 (SDOUT) -> Host Processor
#
#########################################################################
# Power-up Sequence:
# Power up IOVDD and AVDD power supplies
# Wait for IOVDD and AVDD power supplies to settle to steady state operating voltage range.
# Wait for 2ms.
#########################################################################
# Wake-up devices
w A0 02 09 # Wake-up Device U1
w A2 02 09 # Wake-up Device U2
w A4 02 09 # Wake-up Device U3
w A6 02 09 # Wake-up Device U4
d 10 # 10 ms delay
# Program Device A (U1), interfaces to host processor
w A0 00 00 # Set Device page register to Page 0
w A0 1A 30 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity
w A0 1B 60 # ASI transmit Hi-Z for unused cycles
w A0 1E 20 # ASI primary output (DOUT) with CH1 assigned to slot 0
w A0 1F 21 # ASI primary output (DOUT) with CH2 assigned to slot 1
w A0 20 22 # ASI primary output (DOUT) with CH3 assigned to slot 2
w A0 21 23 # ASI primary output (DOUT) with CH4 assigned to slot 3
w A0 28 20 # ASI primary input (DIN) with CH1 assigned to slot 0
w A0 29 21 # ASI primary input (DIN) with CH2 assigned to slot 1
w A0 2A 22 # ASI primary input (DIN) with CH3 assigned to slot 2
w A0 2B 23 # ASI primary input (DIN) with CH4 assigned to slot 3
w A0 76 FF # Enable Ch1-4 of Device A
# Program Device B (U2)
w A2 00 00 # Set Device page register to Page 0
w A2 1A 30 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity
w A2 1B 60 # ASI transmit Hi-Z for unused cycles
w A2 1E 24 # ASI primary output (DOUT) with CH1 assigned to slot 4
w A2 1F 25 # ASI primary output (DOUT) with CH2 assigned to slot 5
w A2 20 26 # ASI primary output (DOUT) with CH3 assigned to slot 6
w A2 21 27 # ASI primary output (DOUT) with CH4 assigned to slot 7
w A2 28 24 # ASI primary input (DIN) with CH1 assigned to slot 4
w A2 29 25 # ASI primary input (DIN) with CH2 assigned to slot 5
w A2 2A 26 # ASI primary input (DIN) with CH3 assigned to slot 6
w A2 2B 27 # ASI primary input (DIN) with CH4 assigned to slot 7
w A2 76 FF # Enable Ch1-4 of Device B
# Program Device C (U3)
w A4 00 00 # Set Device page register to Page 0
w A4 1A 30 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity
w A4 1B 60 # ASI transmit Hi-Z for unused cycles
w A4 1E 28 # ASI primary output (DOUT) with CH1 assigned to slot 8
w A4 1F 29 # ASI primary output (DOUT) with CH2 assigned to slot 9
w A4 20 2A # ASI primary output (DOUT) with CH3 assigned to slot 10
w A4 21 2B # ASI primary output (DOUT) with CH4 assigned to slot 11
w A4 28 28 # ASI primary input (DIN) with CH1 assigned to slot 8
w A4 29 29 # ASI primary input (DIN) with CH2 assigned to slot 9
w A4 2A 2A # ASI primary input (DIN) with CH3 assigned to slot 10
w A4 2B 2B # ASI primary input (DIN) with CH4 assigned to slot 11
w A4 76 FF # Enable Ch1-4 of Device C
# Program Device D (U4)
w A6 00 00 # Set Device page register to Page 0
w A6 1A 30 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity
w A6 1B 60 # ASI transmit Hi-Z for unused cycles
w A6 1E 2C # ASI primary output (DOUT) with CH1 assigned to slot 12
w A6 1F 2D # ASI primary output (DOUT) with CH2 assigned to slot 13
w A6 20 2E # ASI primary output (DOUT) with CH3 assigned to slot 14
w A6 21 2F # ASI primary output (DOUT) with CH4 assigned to slot 15
w A6 28 2C # ASI primary input (DIN) with CH1 assigned to slot 12
w A6 29 2D # ASI primary input (DIN) with CH2 assigned to slot 13
w A6 2A 2E # ASI primary input (DIN) with CH3 assigned to slot 14
w A6 2B 2F # ASI primary input (DIN) with CH4 assigned to slot 15
w A6 76 FF # Enable Ch1-4 of Device D
# Power-up Devices A, B, C, & D
w A0 78 C0 # Power up ADC and DAC of Device A
w A2 78 C0 # Power up ADC and DAC of Device B
w A4 78 C0 # Power up ADC and DAC of Device C
w A6 78 C0 # Power up ADC and DAC of Device D