ZHCAB57C January 2020 – January 2024 TLV320ADC3120 , TLV320ADC3140 , TLV320ADC5120 , TLV320ADC5140 , TLV320ADC6120 , TLV320ADC6140
以下 I2C 脚本在器件复位后将四个器件设置为菊花链 TDM 模式:
# Key: w NN YY ZZ ==> write to I2C address 0xNN, to register 0xYY, data 0xZZ
# # ==> comment delimiter
#
# I2C programming script for four devices in daisy chain TDM mode
# U4(SDOUT) -> (GPIO1) U3 (SDOUT) -> (GPIO1) U2 (SDOUT) -> (GPIO1) U1 (SDOUT) -> Host Processor
#
#########################################################################
# Power-up Sequence:
# Power up IOVDD and AVDD power supplies keeping SHDNZ pin voltage LOW
# Wait for IOVDD and AVDD power supplies to settle to steady state operating voltage range.
# Release SHDNZ to HIGH.
# Wait for 1ms.
#########################################################################
# Wake-up devices
w 98 02 81 # Wake-up Device U1
w 9A 02 81 # Wake-up Device U2
w 9C 02 81 # Wake-up Device U3
w 9E 02 81 # Wake-up Device U4
d 10 # 10 ms delay
# Program Device A (U1), interfaces to host processor
w 98 00 00 # Set Device A page register to Page 0
w 98 07 31 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity,
# default TX edge, Hi-Z for unused cycles
w 98 08 A0 # ASI transmit LSB for 1st half cycle, Hi-Z for second half cycle,
# bus keeper always enabled
w 98 09 80 # ASI to daisy chain connection with bus error detection and
# auto resume after bus error recovery
w 98 21 B0 # GPIO1 input as ASI input for daisy chain
w 98 0B 00 # ASI primary output (SDOUT) with CH1 assigned to slot 0
w 98 0C 01 # ASI primary output (SDOUT) with CH2 assigned to slot 1
w 98 0D 02 # ASI primary output (SDOUT) with CH3 assigned to slot 2
w 98 0E 03 # ASI primary output (SDOUT) with CH4 assigned to slot 3
w 98 73 F0 # Enable Ch1-4 of Device A
w 98 74 F0 # Enable Ch1-4 ASI output of Device A
# Program Device B (U2)
w 9A 00 00 # Set Device page register to Page 0
w 9A 07 31 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity,
# default TX edge, Hi-Z for unused cycles
w 9A 08 80 # ASI transmit LSB for 1st half cycle, Hi-Z for second half cycle,
# bus keeper disabled
w 9A 09 80 # ASI to daisy chain connection with bus error detection and
# auto resume after bus error recovery
w 9A 21 B0 # GPIO1 input as ASI input for daisy chain
w 9A 0B 00 # ASI primary output (SDOUT) with CH1 assigned to slot 0
w 9A 0C 01 # ASI primary output (SDOUT) with CH2 assigned to slot 1
w 9A 0D 02 # ASI primary output (SDOUT) with CH3 assigned to slot 2
w 9A 0E 03 # ASI primary output (SDOUT) with CH4 assigned to slot 3
w 9A 73 F0 # Enable Ch1-4 of Device B
w 9A 74 F0 # Enable Ch1-4 ASI output of Device B
# Program Device C (U3)
w 9C 00 00 # Set Device page register to Page 0
w 9C 07 31 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity,
# default TX edge, Hi-Z for unused cycles
w 9C 08 80 # ASI transmit LSB for 1st half cycle, Hi-Z for second half cycle,
# bus keeper disabled
w 9C 09 80 # ASI to daisy chain connection with bus error detection and
# auto resume after bus error recovery
w 9C 21 B0 # GPIO1 input as ASI input for daisy chain
w 9C 0B 00 # ASI primary output (SDOUT) with CH1 assigned to slot 0
w 9C 0C 01 # ASI primary output (SDOUT) with CH2 assigned to slot 1
w 9C 0D 02 # ASI primary output (SDOUT) with CH3 assigned to slot 2
w 9C 0E 03 # ASI primary output (SDOUT) with CH4 assigned to slot 3
w 9C 73 F0 # Enable Ch1-4 of Device C
w 9C 74 F0 # Enable Ch1-4 ASI output of Device C
# Program Device D (U4)
w 9E 00 00 # Set Device page register to Page 0
w 9E 07 31 # ASI Format TDM with 32-bit word length, default FSYNC and BCLK polarity,
# default TX edge, Hi-Z for unused cycles
w 9E 08 80 # ASI transmit LSB for 1st half cycle, Hi-Z for second half cycle,
# bus keeper disabled
w 9E 0B 00 # ASI primary output (SDOUT) with CH1 assigned to slot 0
w 9E 0C 01 # ASI primary output (SDOUT) with CH2 assigned to slot 1
w 9E 0D 02 # ASI primary output (SDOUT) with CH3 assigned to slot 2
w 9E 0E 03 # ASI primary output (SDOUT) with CH4 assigned to slot 3
w 9E 73 F0 # Enable Ch1-4 of Device D
w 9E 74 F0 # Enable Ch1-4 ASI output of Device D
# Power-up Devices A, B, C, & D
w 98 75 60 # Power up ADC and PLL of Device A
w 9A 75 60 # Power up ADC and PLL of Device B
w 9C 75 60 # Power up ADC and PLL of Device C
w 9E 75 60 # Power up ADC and PLL of Device D