ZHCSPN2A January 2024 – March 2025 TAC5412-Q1
PRODUCTION DATA
本節(jié)為各種應用提供了典型的 EVM I2C 寄存器控制腳本。
# Key: w a0 XX YY ==> write to I2C address 0xa0, to register 0xXX, data 0xYY
# # ==> comment delimiter
#
# The following list gives an example sequence of items that must be executed in the time
# between powering the device up and reading data from the device.Note that there are
# other valid sequences depending on which features are used.
#
# 差分 2-通道 ADC: INP1/INM1 - Ch1, INP2/INM2 - Ch2
# Differential 2-channel Line Out DAC: OUT1P/OUT1M - Ch1, OUT2P/OUT2M - Ch2
# FSYNC = 48kHz (Output Data Sample Rate), BCLK = 12.288MHz (BCLK/FSYNC = 256)
# AVDD = 3.3V; IOVDD = 3.3V; BSTVDD = 3.3V
################################################################
#
# Page 0 Register Writes
w a0 00 00
w a0 01 01 #SW Reset
d 01
#Page 1 Register Writes
w a0 00 01
w a0 73 B0 #MICBIAS set to 8V
# Page 0 Register Writes
w a0 00 00
w a0 02 09 #Exit Sleep Mode with DREG and VREF Enabled
w a0 1a 30 #TDM protocol with 32-bit word length
w a0 50 00 #ADC Channel 1 configured for AC-coupled differential input with 10Vrms swing and audio bandwidth
w a0 55 00 #ADC Channel 2 configured for AC-coupled differential input with 10Vrms swing and audio bandwidth
w a0 64 20 #DAC Channel 1 configured for differential output with 0.6*Vref as common mode
w a0 65 20 #DAC OUT1P configured for line out driver and audio bandwidth
w a0 66 20 #DAC OUT1M configured for line out driver and audio bandwidth
w a0 6b 20 #DAC Channel 2 configured for differential output with 0.6*Vref as common mode
w a0 6c 20 #DAC OUT2P configured for line out driver and audio bandwidth
w a0 6d 20 #DAC OUT2M configured for line out driver and audio bandwidth
w a0 76 cc #Input Channels 1, 2 enabled; Output Channels 1, 2 enabled
w a0 78 e0 #ADC, DAC, MICBIAS Powered Up
# Apply FSYNC = 48kHz and BCLK = 12.288MHz and
# Start recording/playback data by host on ASI bus with TDM protocol 32-bits channel wordlength
# Key: w a0 XX YY ==> write to I2C address 0xa0, to register 0xXX, data 0xYY
# # ==> comment delimiter
#
# The following list gives an example sequence of items that must be executed in the time
# between powering the device up and reading data from the device.Note that there are
# other valid sequences depending on which features are used.
#
# 差分 2-通道 ADC: INP1/INM1 - Ch1, INP2/INM2 - Ch2
# Differential 2-channel Line Out DAC: OUT1P/OUT1M - Ch1, OUT2P/OUT2M - Ch2
# FSYNC = 48kHz (Output Data Sample Rate), BCLK = 12.288MHz (BCLK/FSYNC = 256)
# AVDD = 3.3V; IOVDD = 3.3V; BSTVDD = 3.3V
################################################################
#
# Page 0 Register Writes
w a0 00 00
w a0 01 01 #SW Reset
d 01
#Page 1 Register Writes
w a0 00 01
w a0 73 B0 #MICBIAS set to 8V
# Page 0 Register Writes
w a0 00 00
w a0 02 09 #Exit Sleep Mode with DREG and VREF Enabled
w a0 1a 30 #TDM protocol with 32-bit word length
w a0 50 08 #ADC Channel 1 configured for DC-coupled differential input with 10Vrms swing and audio bandwidth
w a0 55 08 #ADC Channel 2 configured for DC-coupled differential input with 10Vrms swing and audio bandwidth
w a0 64 20 #DAC Channel 1 configured for differential output with 0.6*Vref as common mode
w a0 65 20 #DAC OUT1P configured for line out driver and audio bandwidth
w a0 66 20 #DAC OUT1M configured for line out driver and audio bandwidth
w a0 6b 20 #DAC Channel 2 configured for differential output with 0.6*Vref as common mode
w a0 6c 20 #DAC OUT2P configured for line out driver and audio bandwidth
w a0 6d 20 #DAC OUT2M configured for line out driver and audio bandwidth
w a0 76 cc #Input Channels 1, 2 enabled; Output Channels 1, 2 enabled
w a0 78 e0 #ADC, DAC, MICBIAS Powered Up
# Apply FSYNC = 48kHz and BCLK = 12.288MHz and
# Start recording/playback data by host on ASI bus with TDM protocol 32-bits channel wordlength
# Key: w a0 XX YY ==> write to I2C address 0xa0, to register 0xXX, data 0xYY
# # ==> comment delimiter
#
# The following list gives an example sequence of items that must be executed in the time
# between powering the device up and reading data from the device.Note that there are
# other valid sequences depending on which features are used.
#
#
# GPIO1 - PDMCLK @ 3.072MHz
# PDM Ch1/2 on GPIO2
# PDM Ch3/4 on GPI1
# FSYNC = 48 kHz (Output Data Sample Rate), BCLK = 12.288 MHz (BCLK/FSYNC = 256)
# AVDD = 3.3 V; IOVDD = 3.3 V
################################################################
#
#
# Page 0 Register Writes
w a0 00 00
w a0 01 01 #SW Reset
# Page 0 Register Writes
w a0 00 00
w a0 02 09 #Exit Sleep Mode with DREG and VREF Enabled
w a0 0a 41 #Configure GPIO1 as PDMCLK, with active high/active low drive
w a0 35 00 #PDMCLK frequency = 3.072 MHz
w a0 0d 03 #Configre GPI1A and GPI2A as GPI input
w a0 13 cb #Configure Channel1 and Channel2 as PDM; PDM1/2 data in on GPI2A; PDM3/4 data in on GPI1A
w a0 1a 30 #TDM protocol with 32-bit word length
w a0 1e 20 #Channel1 data on TDM slot 0
w a0 1f 21 #Channel2 data on TDM slot 1
w a0 20 22 #Channel3 data on TDM slot 2
w a0 21 23 #Channel4 data on TDM slot 3
w a0 76 f0 #Enable input channels 1-4
w a0 78 80 #Power Up ADC path
# Provide BCLK, FSYNC corresponding to 48kSPS, and record with 32-bit TDM bus