* --------- ------ ---------------------- ------- --------- -------------------------------
* REG DATA ACCESS READ OR DEVICE
* INDEX VALUE TYPE WRITE ADDRESS COMMENT (for information only)
* --------- ------ ---------------------- ------- --------- -------------------------------
********************* XTAL SETUP ********************* // 22.5792MHz Crystal
0x20052 0x04 SMbus_MSA_24inx_8dat Write 0x60 * Set Crystal Bias to 12.5uA
0xF0000 0xFF SMbus_MSA_24inx_8dat Read 0x60 * Read Interrupt Status 1 register to clear any pending interrupts
0xF0010 0xE7 SMbus_MSA_24inx_8dat Write 0x60 * Enable XTAL Interrupts : XTAL_READY and XTAL_ERROR
0x20000 0xF6 SMbus_MSA_24inx_8dat Write 0x60 * Start XTAL
******************************************************
********************** ASP SETUP ********************* // Configure ASP Interface. ASP is Clock Slave. Sample rate set to 48kHz
0x1000B 0x02 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Sample Rate to 48kHz
0x1000C 0x04 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Sample Bit Size to 32bits
0x40010 0x01 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Numerator LSB to 1
0x40011 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Numerator MSB to 0 : Numerator = 1
0x40012 0x08 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Denominator LSB to 8
0x40013 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Denominator MSB to 0 : Denominator = 8
0x40014 0x1F SMbus_MSA_24inx_8dat Write 0x60 * Set ASP LRCK High Time LSB to 31
0x40015 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP LRCK High Time MSB to 0 : LRCK High Time = 32 SCLK cycles
0x40016 0x3F SMbus_MSA_24inx_8dat Write 0x60 * Set ASP LRCK Period LSB to 63
0x40017 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP LRCK Period MSB to 0 : LRCK Period = 64 SCLK cycles
0x40018 0x0C SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Clock Configuration : ASP_M/SB=0 (Slave), ASP_SCPOL_OUT=1 (Inverted), ASP_SCPOL_IN=1(Inverted), ASP_LCPOL_OUT = 0 (Normal), ASP_LCPOL_IN=0 (Normal)
0x40019 0x0A SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Frame Configuration : ASP_5050=1, ASP_FSD = 2 (Frame Sync delay=1.0 SCLK cycle for I2S mode)
0x50000 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Channel 1 Location
0x50001 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Channel 2 Location
0x5000A 0x07 SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Channel 1 Size and Enable : ASP_RX_CH1_AP=0 (data is input when LRCK/FSYNC low), ASP_RX_CH1_EN=1, ASP_RX_CH1_RES=3(b'11) (32 bits per sample)
0x5000B 0x0F SMbus_MSA_24inx_8dat Write 0x60 * Set ASP Channel 2 Size and Enable : ASP_RX_CH2_AP=1 (data is input when LRCK/FSYNC high), ASP_RX_CH2_EN=1, ASP_RX_CH2_RES=3(b'11) (32 bits per sample)
******************************************************
********************** PCM SETUP ********************* // Configure PCM Interface. HPF filter is used. De-Emphasis off
0x90000 0x02 SMbus_MSA_24inx_8dat Write 0x60 * Configure PCM Filter Option to select High Pass Filter
0x90001 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set PCM Volume for Channel B to 0dB
0x90002 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Set PCM Volume for Channel A to 0dB
0x90003 0xEC SMbus_MSA_24inx_8dat Write 0x60 * Configure PCM Path Signal Control1 : PCM_RAMP_DOWN=1, PCM_VOL_BEQA=1, PCM_SZC=2(b'10), PCM_AMUTE=1, PCM_AMUTEBEQA=1, PCM_MUTE_A=0, PCM_MUTE_B=0
0x90004 0x00 SMbus_MSA_24inx_8dat Write 0x60 * Configure PCM Path Signal Control2 : PCM_INV_A=0, PCM_INV_B=0, PCM_SWAP_CHAN=0, PCM_COPY_CHAN=0
******************************************************
********************** DAC SETUP ********************* // Configure DAC Interface
0xB0000 0x1C SMbus_MSA_24inx_8dat Write 0x60 * Configure Class-H control
0x80000 0x20 SMbus_MSA_24inx_8dat Write 0x60 * Set DAC output to 1.4V
0xD0000 0x04 SMbus_MSA_24inx_8dat Write 0x60 * Configure HPDETECT parameters
0xD0000 0xC4 SMbus_MSA_24inx_8dat Write 0x60 * Enable HPDETECT
******************************************************
****************** ENABLE INTERRUPTS ***************** // Enable Interrupts
0xF0000 0xFF SMbus_MSA_24inx_8dat Read 0x60 * Read Interrupt Status 1 register to clear sticky bits
0xF0001 0xFF SMbus_MSA_24inx_8dat Read 0x60 * Read Interrupt Status 2 register to clear sticky bits
0xF0010 0x87 SMbus_MSA_24inx_8dat Write 0x60 * Enable HP Detect Interrupts : HPDETECT_PLUG, HPDETECT_UNPLUG, XTAL interrupts already enabled
0xF0011 0x07 SMbus_MSA_24inx_8dat Write 0x60 * Enable ASP Interrupts
******************************************************
******************** ENABLE SYSTEM ******************* // Enable System operation
0xF0000 0xFF SMbus_MSA_24inx_8dat Read 0x60 * Read Interrupt Status 1 register
0x10006 0x04 SMbus_MSA_24inx_8dat Write 0x60 * Switch MCLK source to XTAL
0x20000 0xF4 SMbus_MSA_24inx_8dat Write 0x60 * Power up CLKOUT
******************************************************
LOAD Power_Up_Aout.txt