Chapter 4
SLAU434 – May 2012
Example Setups
The following example setups can be taken directly for the TLV320DAC3203 EVM setup.
The # marks a comment line, w marks an I
2
C write command followed by the device address, the I
2
C
register address and the value.
4.1
Stereo DAC Playback with 48ksps Sample Rate and High Performance.
Assumption: MCLK = 12.288MHz, Slave I2S
#----------- Initialize to page 0
w 30 00 00
#----------- Initialize the device through software reset
w 30 01 01
#----------- Power up the NDAC divider with value 1
w 30 0b 81
#----------- Power up the MDAC divider with value 2
w 30 0c 82
#----------- Program the OSR of DAC to 128
w 30 0d 00
w 30 0e 80
#----------- Set the word length of audio interface to 20 bits PTM_P4
w 30 1b 10
#----------- Set the DAC mode to PRB_P8
w 30 3c 08
#----------- Select page 1
w 30 00 01
#----------- Disable internal crude AVdd in presence of external AVdd supply
#----------- or before powering up internal AVdd LDO
w 30 01 08
#----------- Enable master analog power control
w 30 02 00
#----------- Set the REF charging time to 40ms
w 30 7b 01
#----------- Set the input common mode to 0.9V and output common mode for headphone
#----------- to input common mode
w 30 0a 00
#----------- Route left DAC to HPL
w 30 0c 08
#----------- Route right DAC to HPR
w 30 0d 08
#----------- Set the DAC PTM mode to PTM_P3/4
w 30 03 00
w 30 04 00
#----------- Set the HPL gain to 0dB
w 30 10 00
#----------- Set the HPR gain to 0dB
w 30 11 00
#----------- HP soft stepping settings for optimal pop performance at power up
#----------- Rpop used is 6k with N = 6 & soft step = 20usec.
w 30 14 29
#----------- Power up HPL and HPR drivers
w 30 09 30
#----------- Wait for 2.5 sec for soft stepping to take effect
#----------- else read page 1, register 63d, D(7:6). When = “11” soft-stepping is complete
#----------- Select page 0
74
Example Setups
SLAU434 – May 2012
Copyright © 2012, Texas Instruments Incorporated