####################################################### # Class-D Speaker Playback # ----------------------------------------------------- # Description: # - 44.1kHz/48kHz Sampling Rate. # - USB Audio Playback. # - LOL and LOR are mixed -6dB/-6dB to convert stereo # to mono in analog. # # Hardware Setup: # - Default. # # Revision History: # - Version 1.1, 2013-07-23 # - Added FIFO Configuration section. # - Version 1.0, 2013-06-21 # - Initial Release. # # Devices: # - TLV320AIC3263 ####################################################### ####################################################### # Software Reset ####################################################### w 30 00 00 # Initialize to Page 0 w 30 7f 00 # Initialize to Book 0 w 30 01 01 # Software Reset d 1 # Delay 1 millisecond ####################################################### # FIFO Configuration ####################################################### w 30 00 00 # Select Page 0 w 30 7f 78 # Select Book 120 w 30 32 80 # Enable DAC FIFO w 30 7f 64 # Select Book 100 w 30 32 80 # Enable ADC FIFO w 30 7f 00 # Select Book 0 ####################################################### # Power and Analog Configuration ####################################################### w 30 00 01 # Select Page 1 w 30 01 00 # Disable weak AVDD to DVDD connection w 30 7a 01 # REF charging time = 40ms ####################################################### # Clock configuration # ----------------------------------------------------- # - MCLK = 11.2896MHz/12.288MHz # - FS = 44.1kHz/48kHz # - I2S Slave ####################################################### w 30 00 00 # Select Page 0 w 30 04 00 # Set DAC_CLKIN as MCLK w 30 0b 81 # NDAC = 1 w 30 0c 82 # MDAC = 2 w 30 0d 00 # DOSR = 128 w 30 0e 80 # DOSR ####################################################### # Audio Serial Interface #1 Configuration ####################################################### w 30 00 04 # Select Page 4 w 30 01 00 # ASI1 set to I2S mode, 16-bit w 30 0a 00 # ASI1 WCLK/BCLK to WCLK1 pin/BCLK1 pin ####################################################### # Signal Processing Settings ####################################################### w 30 00 00 # Select Page 0 w 30 3c 01 # Set the DAC PRB Mode to PRB_P1 ####################################################### # Output Channel Configuration ####################################################### w 30 00 01 # Select Page 1 w 30 03 00 # Set PTM mode for Left DAC to PTM_P3 w 30 04 00 # Set PTM mode for Right DAC to PTM_P3 w 30 16 c3 # DAC to LOL/R routing, power-up LOL/R w 30 2E 0c # Route LOL to SPK @ -6dB w 30 2F 0c # Route LOR to SPK_RIGHT_CH_IN @ -6dB w 30 30 21 # SPK Gain = 12dB, unmute SPK_RIGHT_CH_IN w 30 2D 06 # Power-up SPK, route SPK_RIGHT_CH_IN to SPK w 30 00 00 # Select Page 0 w 30 3f c0 # Power up the Left and Right DAC Channels w 30 40 00 # Unmute the DAC digital volume control