# Configure Power Supplies ############################################### # # Select Page 1 w 30 00 01 # # Set the REF charging time to 40ms w 30 7b 01 # # Set the input power-up time to 6.4ms (for ADC) w 30 47 32 # # Power up ALDO w 30 02 09 # # Disable weak AVDD w 30 01 08 # # Keep ALDO Powered, enable master analog power control w 30 02 01 # # Set full chip common mode to 0.75V --> 0b01xx'xxxx # HP driver supply and HP output CM = 1.5V = LDOIN --> 0bxx11'x011 # Line output CM = full chip CM and supply = AVDD --> 0bxxxx'0xxx w 30 0A 73 # ### # Power-Tune ADC, PTM_R4 ### w 30 3d 00 # Power-Tune ADC, PTM_R3 w 30 3d 64 # Power-Tune ADC, PTM_R1 #w 30 3d FF # # Power-Tune DAC, P3,P4, Class-AB w 30 03 00 00 # ############################################### # Clock and Interface Settings # --------------------------------------------- # MCLK = 24.576 MHz ############################################### # # Select Page 0 w 30 00 00 # # Clock inputs: MCLK for CODEC_CLKIN w 30 04 00 # ############################################### # Audio Interface ############################################### # # Select Page 0 w 30 00 00 # # I2S, 32 Bit, BCLK+WCLK output # !TODO: disable output if possible w 30 1b 3C # # Stereo ADC output is routed to Stereo DAC input, BCLK = DAC_CLK/1 w 30 1d 10 81 # ############################################### # Configure ADC Channel # PRB_R10 (Filter B): Right Channel, AOSR = 64, RC = 2, MADC = 1, ADC_CLK = 3.072 MHz, NADC = 8 # Input: In2R 10k SE # PTM_R1 7mW (3.9mA), PTM_R3 10mW (5.6mA) ############################################### # # Select Page 0 w 30 00 00 # # NADC, MADC, dividers powered on # !TODO: use DAC divs w 30 12 88 81 # # PRB w 30 3d 0A # # AOSR w 30 14 40 # # # # Select Page 1 w 30 00 01 # # Route IN2R to RIGHT_P with 10K input impedance w 30 37 10 # # Route CM1R to RIGHT_M with 10K input impedance w 30 39 40 # # Unmute Right MICPGA, Gain selection of 0dB w 30 3c 80 # # # # Select Page 0 w 30 00 00 # # Power up RADC w 30 51 40 # # Unmute RADC w 30 52 80 # ############################################### # Configure DAC Channel # PRB_P12 (Filter B): Left Channel, DOSR = 64, RC = 3, MDAC = 2, DAC_CLK = 6.144MHz, NDAC = 4 # PRB_P16 (Filter B): Left Channel, DOSR = 64, RC = 4, MDAC = 2, DAC_CLK = 6.144MHz, NDAC = 4 # PTM_P4 HP 6.5mW (3.6mA) LO 5.7mW (3.2mA) ############################################### # # Select Page 0 w 30 00 00 # # NDAC, MDAC, dividers powered on w 30 0b 84 82 # # PRB w 30 3c 10 # # DOSR w 30 0d 00 40 # # Power up LADC with Right as source, unmute, LDAC off w 30 3f A0 04 # # # # Select Page 1 w 30 00 01 # # connect LDAC_P to HPL w 30 0C 08 # HPR off w 30 0D 00 # connect LDAC_P to LOL w 30 0E 08 # LOR off w 30 0F 00 # # HPL = -2dB, unmuted (required for Power-Tune P3/4) w 30 10 3E # HPR = muted w 30 11 40 # LOL = -2dB, unmuted (required for Power-Tune P3/4) w 30 12 3E # LOR = muted w 30 13 40 # Power HPs/LOs Left only w 30 09 28 #Test: mixer on w 30 09 2B # ############################################### # Wait for power up ############################################### # # Select Page 0 w 30 00 00 # # wait for right ADC f 30 24 xxxxx1xx # # wait for left DAC, HPL, LOL f 30 25 111xxxxx # ###############################################