Hi,
I have a succesful project with a AIC32x4 running in 48 KHz sampling rate.
Now I need to proceed by adding the 96 KHz and 192 KHz sampling rates to the codec.
Is there any example that I can re-use for that? I tried to change the AOSR/DOSR/NDAC/NADC/MDAC/MADC but after quite some tries I couldnt make it work.
Below is the configuration sequence that is used right now for 48KHz sampling rate, can someone please point what changes are needed there for 96 KHz and 192 KHz?
;*****************************************************************
; Configure AIC32x4
;*****************************************************************
;Point to page 0 00, 0x00
;Reset codec 01, 0x01
;Point to page 1 00, 0x01
;Disable crude AVDD generation from DVDD 01, 0x08
;Enable Analog Blocks and LDO 02, 0x01
;*****************************************************************
;* PLL and Clocks config and Power Up
;*****************************************************************
;Point to page 0 00, 0x00
;BCLK and WCLK is set as op to AIC3254(Master) 27, 0x0D
;PLL setting: PLLCLK <- MCLK and CODEC_CLKIN <-PLL CLK 04, 0x03
;PLL setting: J=8 06, 0x08
;PLL setting: HI_BYTE(D) for D=0x0780 (or 1920 decimal) 07, 0x07
;PLL setting: LO_BYTE(D) for D=0x0780 08, 0x80
;For 32 bit clocks per frame in Master mode ONLY
;BCLK=DAC_CLK/N =(12288000/8) = 1.536MHz = 32*fs 30, 0x88
;PLL setting: Power up PLL, P=1 and R=1 05, 0x91
;Hi_Byte(DOSR) for DOSR = 128 decimal or 0x0080 13, 0x00
;Lo_Byte(DOSR) for DOSR = 128 decimal or 0x0080 14, 0x80
;AOSR for AOSR = 128 decimal for decimation filters 1/6 20, 0x80
;Power up NDAC and set NDAC value to 8 11, 0x88
;Power up MDAC and set MDAC value to 2 12, 0x82
;Power up NADC and set NADC value to 8 18, 0x88
;Power up MADC and set MADC value to 2 19, 0x82
;*****************************************************************
;* DAC ROUTING and Power Up
;*****************************************************************
;Select page 1 00, 0x01
;LDAC AFIR routed to HPL 12, 0x08
;RDAC AFIR routed to HPR 13, 0x08
;Select page 0 00, 0x00
;Left vol=right vol 64, 0x02
;Left DAC gain to 0dB VOL; Right tracks Left 65, 0x00
;Power up left,right data paths and set channel 63, 0xd4
;Select page 1 00, 0x01
;Unmute HPL , 0dB gain 16, 0x00
;Unmute HPR , 0dB gain 17, 0x00
;Power up HPL,HPR 09, 0x30
;Select page 0 00, 0x00
;*****************************************************************
;* ADC ROUTING and Power Up
;*****************************************************************
;Select page 1 00, 0x01
;STEREO 1 Jack
;IN2_L to LADC_P through 40 kohm 52, 0x30
;IN2_R to RADC_P through 40 kohmm 55, 0x30
;CM_1 (common mode) to LADC_M through 40 kohm 54, 0x03
;CM_1 (common mode) to RADC_M through 40 kohm 57, 0xc0
;MIC_PGA_L unmute 59, 0x00
;MIC_PGA_R unmute 60, 0x00
;Select page 0 00, 0x00
;Powerup Left and Right ADC 81, 0xc0
;Unmute Left and Right ADC 82, 0x00
;*****************************************************************
Christos