SLAU902A September 2023 – January 2024
The following several examples are of configuring the device into the respective paths. These device configurations can be used with external host or instrument like Audio Precision. For testing with the AC_MB host of the EVM, use the GUI Preset Configuration. This is because the AC_MB host is configured to support only TDM and the polarity is different from these devices.
Users can copy the settings below and paste them into the I2C Monitor window to configure the device when used with external host/instrument.
This configuration is for differential audio recording (ADC) with 48 KHz sampling rate, TDM format and 32-bit depth.
##### Record AC-Couple Differential IN1-IN2 path ######
# Target Mode, TDM, 32-bit
# Primary ASI only, multiple of 48KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 10 50 # Configure DOUT as Primary ASI (PASI) DOUT
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 30 # PASI TDM, 32 bit format
w a0 1e 20 # PASI Ch1 on slot 0
w a0 1f 21 # PASI Ch2 on slot 1
w a0 50 00 # ADC Ch1 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 55 00 # ADC Ch2 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 76 c0 # Enable Input Ch1 and Ch2, disable output channels
w a0 78 a0 # Power up ADC and MICBIAS
This configuration is for single-ended audio recording (ADC) with 48 KHz sampling rate, I2S format and 32-bit depth.
##### Record AC-Couple Single-Ended IN1-IN2 path ######
# Target Mode, I2S, 32-bit
# Primary ASI only, multiple of 48 KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 10 50 # Configure DOUT as Primary ASI (PASI) DOUT
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 1e 20 # PASI Ch1 on Left slot 0
w a0 1f 30 # PASI Ch2 on Right slot 0
w a0 50 40 # ADC Ch1 SE input, 5KOhm, ac-coupled, 2Vrms ac-coupled, audio band
w a0 55 40 # ADC Ch2 SE input, 5KOhm, ac-coupled, 2Vrms ac-coupled, audio band
w a0 76 c0 # Enable Input Ch1 and Ch2, disable output channels
w a0 78 a0 # Power up ADC and MICBIAS
This configuration is for differential audio recording (ADC) with 48 KHz sampling rate, I2S format and 32-bit depth and MCLK of 12.288MHz.
##### Record AC-Couple Differential IN1-IN2 path ######
# Controller Mode, I2S, 32-bit, GPIO1=CCLK from BCLK2 @ 12.288MHz
# Primary ASI only, multiple of 48KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 0a 10 # configure GPIO1 as input
w a0 0f 20 # Set GPIO1=CCLK
w a0 10 50 # Configure DOUT as Primary ASI (PASI) DOUT
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 1e 20 # PASI Ch1 on Left slot 0
w a0 1f 30 # PASI Ch2 on Right slot 0
w a0 32 50 # PASI Fs=48KHz with auto clock configuration
w a0 34 48 # PLL always enabled with fractional allowed and from fixed clk frequency
w a0 37 30 # Use MCLK=12.288MHz, PASI in controller mode
w a0 38 80 # Use internal BCLK for FSYNC generation in controller mode
w a0 39 40 # Set controller mode BCLK/FSYNC ratio to 64 = h40
w a0 50 00 # ADC Ch1 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 55 00 # ADC Ch2 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 76 c0 # Enable Input Ch1 and Ch2, disable output channels
w a0 78 a0 # Power up ADC and MICBIAS
This configuration is for audio recording (ADC) from 2 Digital Microphone with 48 KHz sampling rate, I2S format and 32-bit depth.
##### Record from DMIC Test ######
# Target Mode, I2S, 32-bit
# Primary ASI only, multiple of 48KHz Sampling 4x4
# PDMCLK=GPIO1, PDM Data=GPI1
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 0a 41 # Configure GPIO1 as PDMCLK with drive active high and low
w a0 0d 02 # Configure GPI1 as input
w a0 10 50 # Configure DOUT as Primary ASI (PASI) DOUT
w a0 13 cc # Configure PDM data on GPI1 with channel 1 data latched on the negative edge and channel 2 data latched on the positive edge
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 1e 20 # PASI Ch1 on Left slot 0
w a0 1f 30 # PASI Ch2 on Right slot 0
w a0 35 00 # PDM_CLK is 2.8224 MHz or 3.072 MHz
w a0 76 c0 # Enable input Chl and Ch2, disable output channels
w a0 78 80 # Power up ADC
This configuration is for differential audio recording (ADC) with 48 KHz sampling rate, TDM format and 32-bit depth.
##### Record AC-Couple Differential IN1-IN2 path ######
# Target Mode, TDM, 32-bit
# Secondary ASI only, multiple of 48KHz Sampling
# GPIO2=Secondary FSYNC, GPIO1=Secondary BCLK, GPO1=Secondary DOUT, GPI1=Secondary DIN for 4x4
#
w a0 00 00 # Sets page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 0a 10 # GPIO1 as input
w a0 0b 10 # GPIO2 as input
w a0 0d 02 # GPI1 as input
w a0 0c 70 # GPO1 as Secondary DOUT
w a0 11 22 # Set GPIO2 as Secondary FSYNC and GPIO1 as Secondary BCLK
w a0 12 60 # Set GPI1 as Secondary DIN
w a0 18 80 # Disable Primary ASI
w a0 34 44 # SASI BCLK is the input clock source
w a0 00 03 # Sets page 3
w a0 1e 20 # SASI Ch1 on slot 0
w a0 1f 21 # SASI Ch2 on slot 1
w a0 00 00 # Sets page 0
w a0 50 00 # ADC Ch1 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 55 00 # ADC Ch2 diff input, 5KOhm, 2Vrms ac-coupled, audio band
w a0 76 C0 # Enable Input Ch1 and Ch2, disable output channels
w a0 78 A0 # Power up ADC and MICBIAS
This configuration is for differential audio recording (ADC) with 48 KHz sampling rate, I2S format and 32-bit depth.
##### Record DC-Couple IN1-IN2 path ######
# Target Mode, I2S, 32-bit
# Primary ASI only, multiple of 48KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 10 50 # Configure DOUT as Primary ASI (PASI) DOUT
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 1e 20 # PASI Ch1 on Left slot 0
w a0 1f 30 # PASI Ch2 on Right slot 0
w a0 50 06 # ADC Ch1 DIFF input, 5KOhm, ac/dc-coupled, 4Vrms, audio band
w a0 55 06 # ADC Ch2 DIFF input, 5KOhm, ac/dc-coupled, 4Vrms, audio band
w a0 76 c0 # Enable Input Ch1 and Ch2, disable output channels
w a0 78 a0 # Power up ADC and MICBIAS
This configuration is for differential audio playback (DAC) with 48 KHz sampling rate, TDM format and 32-bit depth.
##### Playback Differential LINEOUT Path ######
# Target Mode, TDM, 32-bit
# Primary ASI only, multiple of 48KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 11 80 # Enable PASI DIN
w a0 19 00 # 1 data inputs and 1 data outputs for PASI
w a0 1a 30 # PASI TDM, 32 bit format
w a0 28 20 # PASI DIN Ch1 on TDM slot 0
w a0 29 21 # PASI DIN Ch2 on TDM slot 1
w a0 64 20 # Configure OUT1P/M as differential from DAC1
w a0 65 20 # Configure OUT1P LINEOUT 0dB audio band
w a0 66 20 # Configure OUT1M LINEOUT 0dB 2Vrms Differential
w a0 6b 20 # Configure OUT2P/M as differential from DAC2
w a0 6c 20 # Configure OUT2P LINEOUT 0dB audio band
w a0 6d 20 # Configure OUT2M LINEOUT 0dB 2Vrms Differential
w a0 76 0c # Disable all input channels and enable output channel 1 and 2
w a0 78 40 # Power up all DAC channel
This configuration is for single-ended mono audio playback (DAC) with 48 KHz sampling rate, TDM format and 32-bit depth.
##### Playback Single-Ended Mono LINEOUT Path ######
# Target Mode, TDM, 32-bit
# Primary ASI only, multiple of 48KHz Sampling
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 11 80 # Enable PASI DIN
w a0 19 00 # 1 data inputs and 1 data outputs for PASI
w a0 1a 30 # PASI TDM, 32 bit format
w a0 28 20 # PASI DIN Ch1 on TDM slot 0
w a0 29 21 # PASI DIN Ch2 on TDM slot 1
w a0 64 28 # Configure OUT1P/M as single-ended from DAC1
w a0 65 20 # Configure OUT1P LINEOUT 0dB audio band
w a0 66 20 # Configure 2Vrms Differential
w a0 6b 28 # Configure OUT2P/M as single-ended from DAC2
w a0 6c 20 # Configure OUT2P LINEOUT 0dB audio band
w a0 6d 20 # Configure 2Vrms Differential
w a0 76 0c # Disable all input channels and enable output channel 1 and 2
w a0 78 40 # Power up all DAC channel
This configuration is for differential audio playback (DAC) with 48 KHz sampling rate, TDM format and 32-bit depth.
##### Playback Differential LINEOUT Path ######
# Target Mode, TDM, 32-bit
# Secondary ASI only, multiple of 48KHz Sampling
# GPIO2=Secondary FSYNC, GPIO1=Secondary BCLK, GPI1=Secondary DIN, GPO1=Secondary DOUT for 4x4
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 0a 10 # GPIO1 as input
w a0 0b 10 # GPIO2 as input
w a0 0d 02 # GPI1 as input
w a0 0c 71 # GPO1 as Secondary DOUT
w a0 11 22 # Set GPI2A as Secondary FSYNC and GPIO1 as Secondary BCLK
w a0 12 60 # Set GPI1A as Secondary DIN
w a0 18 80 # Disable Primary ASI
w a0 34 44 # SASI BCLK is the input clock source
w a0 19 00 # 1 data input and 1 data output for SASI
w a0 00 03 # Set page 3
w a0 1a 30 # SASI TDM, 32 bit format
w a0 28 20 # SASI DIN Ch1 on TDM slot 0
w a0 29 21 # SASI DIN Ch2 on TDM slot 1
w a0 00 00 # Set page 0
w a0 64 20 # Configure OUT1P/M as differential from DAC1
w a0 65 20 # Configure OUT1P LINEOUT 0dB audio band
w a0 66 20 # Configure OUT1M LINEOUT 0dB 2Vrms Differential
w a0 6b 20 # Configure OUT2P/M as differential from DAC2
w a0 6c 20 # Configure OUT2P LINEOUT 0dB audio band
w a0 6d 20 # Configure OUT2M LINEOUT 0dB 2Vrms Differential
w a0 76 0c # Disable all input channels and enable output channel 1 and 2
w a0 78 40 # Power up all DAC channels
This configuration is for differential audio playback (DAC) with 44.1KHz sampling rate, TDM format and 32-bit depth and MCLK of 12.288MHz.
##### Playback Differential LINEOUT Path ######
# Controller Mode MCLK=12.288MHz, TDM, 32-bit
# Secondary ASI only, multiple of 44.1KHz Sampling
# GPIO1=Secondary FSYNC, GPIO2=CCLK Input, GPI1=Secondary DIN, GPO1=Secondary BCLK for 4x4
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 0a a0 # GPIO1 as Secondary FSYNC output
w a0 0b 10 # GPIO2 as input
w a0 0d 02 # GPI1 as input
w a0 0c 90 # GPO1 as Secondary BCLK output
w a0 0f 40 # GPIO2 as CCLK input
w a0 11 10 # GPIO1 as Secondary FSYNC
w a0 12 60 # Set GPI1 as Secondary DIN
w a0 18 80 # Disable Primary ASI
w a0 32 00 # Auto clock configuration
w a0 33 50 # SASI Fs=48KHz (41895-49440) with Auto clock configuration
w a0 34 48 # PLL always enabled with fractional allowed and from fixed clk frequency
w a0 36 00 # auto detect the ratio
w a0 37 29 # Use MCLK=12.288MHz, SASI in controller configuration with rate multiple of 44.1KHz
w a0 3a 81 # Use internal BCLK for FSYNC generation for SASI, BCLK/FSYNC ratio=256
w a0 3b 00 # use BCLK/FSYNC ratio of 256 for SASI
w a0 00 03 # Set page 3
w a0 1a 30 # SASI TDM, 32 bit format
w a0 28 20 # SASI DIN Ch1 on TDM slot 0
w a0 29 21 # SASI DIN Ch2 on TDM slot 1
w a0 00 00 # Set page 0
w a0 64 20 # Configure OUT1P/M as differential from DAC1
w a0 65 20 # Configure OUT1P LINEOUT 0dB audio band
w a0 66 20 # Configure OUT1M LINEOUT 0dB 2Vrms Differential
w a0 6b 20 # Configure OUT2P/M as differential from DAC2
w a0 6c 20 # Configure OUT2P LINEOUT 0dB audio band
w a0 6d 20 # Configure OUT2M LINEOUT 0dB 2Vrms Differential
w a0 76 0c # Disable all input channels and enable output channel 1 and 2
w a0 78 40 # Power up all DAC channels
This configuration is for differential audio playback (DAC) with 48 KHz sampling rate, I2S format and 32-bit depth.
##### Playback Differential Headphone Path ######
# Target Mode, I2S, 32-bit
# Primary ASI only, multiple of 48KHz Sampling
# Playback through Stereo OUT1P and OUT2P for Headphone
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 11 80 # Enable PASI DIN
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 28 20 # PASI DIN Ch1 on Left slot 0
w a0 29 30 # PASI DIN Ch2 on Right slot 0
w a0 64 20 # Configure OUT1P/M as differential from DAC1
w a0 65 60 # Configure OUT1P as Headphone 0dB audio band
w a0 66 60 # Configure OUT1M as Headphone 0dB audio band
w a0 6b 20 # Configure OUT2P/M as differential from DAC2
w a0 6c 60 # Configure OUT2P as Headphone 0dB audio band
w a0 6d 60 # Configure OUT2M as Headphone 0dB audio band
w a0 76 0c # Enable output channel 1 and 2 and disable all input channels
w a0 78 40 # Power up DAC channel
This configuration is for Single-Ended audio playback (DAC) with 48 KHz sampling rate, I2S format and 32-bit depth.
##### Playback Single-Ended Headphone Path ######
# Target Mode, I2S, 32-bit
# Primary ASI only, multiple of 48 KHz Sampling
# Playback through Stereo OUT1P and OUT2P for Headphone
#
w a0 00 00 # Set page 0
w a0 01 01 # Software Reset
w a0 02 09 # Wake up with AVDD > 2v and all VDDIO level
w a0 11 80 # Enable PASI DIN
w a0 19 00 # 1 data input and 1 data output for PASI
w a0 1a 70 # PASI I2S, 32 bit format
w a0 28 20 # PASI DIN Ch1 on Left slot 0
w a0 29 30 # PASI DIN Ch2 on Right slot 0
w a0 64 28 # Configure OUT1P as mono single-ended from DAC1
w a0 65 60 # Configure OUT1P as Headphone 0dB audio band
w a0 66 60 # Configure 2Vrms Differential
w a0 6b 28 # Configure OUT2P as mono single-ended from DAC2
w a0 6c 60 # Configure OUT2P as Headphone 0dB audio band
w a0 6d 60 # Configure 2Vrms Differential
w a0 76 0c # Enable output channel 1 and 2 and disable all input channels
w a0 78 40 # Power up DAC channel