User's Guide SLAU209A – April 2007 – Revised June 2010 TLV320AIC3106EVM and TLV320AIC3106EVM-PDK This user's guide describes the characteristics, operation, and use of the TLV320AIC3106EVM, both by itself and as part of the TLV320AIC3106EVM-PDK. This evaluation module (EVM) is a complete stereo audio codec with several inputs and outputs, extensive audio routing, mixing and effects capabilities. A complete circuit description, schematic diagram and bill of materials are also included.
www.ti.com 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 .................................................................................................................. AGC Tab ................................................................................................................... Left AGC Settings ......................................................................................................... Advanced ..............................................
EVM Overview www.ti.com 1 EVM Overview 1.1 Features • • • • • Full-featured evaluation board for the TLV320AIC3106 stereo audio codec. Modular design for use with a variety of digital signal processor (DSP) and microcontroller interface boards. USB connection to PC provides power, control, and streaming audio data for easy evaluation. On-board microphone for ADC evaluation Connection points for external control and digital audio signals for quick connection to other circuits/input devices.
EVM Description and Basics 2.1.1 www.ti.com USB-MODEVM Interface Board The simple diagram shown in Figure 1 shows only the basic features of the USB-MODEVM Interface board. Since the TLV320AIC3106EVM is a double-wide modular EVM, it is installed with connections to both EVM positions, which connects the TLV320AIC3106 digital control interface to the I2C port realized using the TAS1020B, as well as the TAS1020B digital audio interface..
EVM Description and Basics www.ti.com 2.2 2.2.1 Default Configuration and Connections USB-MODEVM Table 1 provides a list of the SW2 settings on the USB=MODEVM. For use with the TLV320AIC3106EVM, SW-2 positions 1 through 7 should be set to ON, while SW-2.8 should be set to OFF. Table 1. USB-MODEVM SW2 Settings SW-2 Switch Number 2.2.
EVM Description and Basics www.ti.com Table 2. List of Jumpers (continued) Jumper Default Position Jumper Description JMP15 Installed When installed, shorts across the output capacitor on HPROUT; remove this jumper if using AC-coupled output drive JMP16 Installed When installed, shorts HPLCOM and HPRCOM. Use only if these signals are set to constant VCM.
TLV320AIC3106EVM-PDK Setup and Installation www.ti.com 2.5.1 Stand-Alone Operation When used as a stand-alone EVM, power ise applied to J15 directly, making sure to reference the supplies to the appropriate grounds on that connector. CAUTION Verify that all power supplies are within the safe operating limits shown on the TLV320AIC3106 data sheet before applying power to the EVM. J15 provides connection to the common power bus for the TLV320AIC3106EVM. Power is supplied on the pins listed in Table 6.
TLV320AIC3106EVM-PDK Setup and Installation 3.2 www.ti.com EVM Connections 1. Ensure that the TLV320AIC3106EVM is installed on the USB-MODEVM Interface board, aligning J13, J14, J15, J16, J17 with the corresponding connectors on the USB-MODEVM. 2. Verify that the jumpers and switches are in their default conditions. 3. Attach a USB cable from the PC to the USB-MODEVM Interface board. The default configuration will provide power, control signals, and streaming audio via the USB interface from the PC.
TLV320AIC3106EVM Software www.ti.com 4 TLV320AIC3106EVM Software The following section discusses the details and opeation of the EVM software. NOTE: For configuration of the codec, the TLV320AIC3106 block diagram located in the TLV320AIC3106 data sheet is a good reference to help determine the signal routing. 4.1 Device Selection for Operation With AIC3106EVM The software that is installed provides operation for several devices. An inital window should appear that looks like Figure 3.
TLV320AIC3106EVM Software www.ti.com If the I2C address is desired to be changed at any time during normal operation of the EVM, this menu can also be accessed from the pull-down menu under the Configuration item. This function can be used to help program multiple devices. Figure 5. I2C Address Selection Window NOTE: For operation of the EVM in the default status, no changes are required on this panel. The default settings are A1=A0=0.
TLV320AIC3106EVM Software www.ti.com 4.3 Front Page Indicators and Functions Figure 2 illustrates the main screen of the EVM software. The indicators and buttons located above the tabbed section of the front page are visible regardless of which tab is currently being selected. At the top left of the screen is an Interface indicator. This indicator shows which interface is selected for controlling the TLV320AIC3106 , either I2C or SPI. To the right of the Interface indicator is a group box called .
TLV320AIC3106EVM Software 4.4 www.ti.com Defaut Configuration (Presets) Tab The Default Configuration Tab Figure 6 provides several different preset configurations of the codec. The Preset Configurations buttons allow the user to choose from the provided defaults. When the selection is made, the Preset Configuration Description are shows a summary of the codec setup associated with the choice made.
TLV320AIC3106EVM Software www.ti.com 4.5 Audio Input/ADC Tab Figure 7. Audio Input Tab The Audio Input/ADC Tab allows control of the analog input mixer and the ADC. The controls are dispayed to look similar to an audio mixing console (see Figure 7). Each analog input channel has a vertical strip that corresponds to that channel. By default, all inputs are muted when the TLV320AIC3106 is powered up. To route an analog input to the ADC: 1.
TLV320AIC3106EVM Software 4.6 www.ti.com Audio Interface Tab Figure 8. Audio Interface Tab The Audio Interface tab (Figure 8) allows configuration of the audio digital data interface to the TLV320AIC3106. The interface mode may be selected using the Transfer Mode control—selecting either I2S mode, DSP mode, or Right- or Left-Justified modes. Word length can be selected using the Word Length control, and the bit clock rate can also be selected using the Bit Clock rate control.
TLV320AIC3106EVM Software www.ti.com 4.7 Clocks Tab Figure 9. Clocks Tab The TLV320AIC3106 provides a phase-locked loop (PLL) that allows flexibility in the clock generation for the ADC and DAC sample rates. The Clocks tab contains the controls that can be used to configure the TLV320AIC3106 for operation with a wide range of master clocks. See the Audio Clock Generation Processing figure in the TLV320AIC3106 data sheet for further details of selecting the correct clock settings.
TLV320AIC3106EVM Software 4.7.1.1 www.ti.com Use Without PLL Setting up the TLV320AIC3106 for clocking without using the PLL permits the lowest power consumption by the codec. The CLKDIV_IN source can be selected as either MCLK, GPIO2, or BCLK, the default is MCLK. The CLKDIV_IN frequency is then entered into the CLKDIV_IN box, in megahertz (MHz). The default value shown, 11.2896MHz, is the frequency used on the USB-MODEVM board.
TLV320AIC3106EVM Software www.ti.com 4.8 GPIO Tab Figure 10. GPIO Tab The GPIO tab (see Figure 10) selects options for the general-purpose inputs and outputs (GPIO) of the TLV320AIC3106. Many pins on the TLV320AIC3106 are denoted as multifunction pins, meaning they may be used for many different purposes. The GPIO1 groupbox contains controls for setting options for the GPIO1 pin.
TLV320AIC3106EVM Software www.ti.com In similar fashion, the GPIO2 pin can configured as the following using the Function control in the GPIO2 groupbox. • An alternate I2S bus • An interrupt output • A general-purpose I/O pin • A digital microphone input The other controls in this groupbox work the same as the corresponding controls for GPIO1. When the control interface for the TLV320AIC3106 is selected to be I2C, the SDA and SCL groupboxes and controls within them are disabled.
TLV320AIC3106EVM Software www.ti.com 4.9 AGC Tab Figure 11. AGC Tab The AGC tab (see Figure 11) consists of two identical sets of controls, one for the left channel and the other for the right channel. The AGC function is described in the TLV320AIC3106 data sheet. The AGC can be enabled for each channel using the Enable AGC button.
TLV320AIC3106EVM Software www.ti.com Figure 12. Left AGC Settings Figure 13. Advanced Noise gate functions, such as Hysteresis, Enable Clip stepping, Threshold (dB), Signal Detect Debounce (ms), and Noise Detect Debounce (ms) are set using the corresponding controls in the Noise Gate groupbox for each channel.
TLV320AIC3106EVM Software www.ti.com 4.10 Filters Tab Figure 14. Filters Tab The TLV320AIC3106 has an advanced feature set for applying digital filtering to audio signals. This tab controls all of the filter features of the TLV320AIC3106. In order to use this tab and have plotting of filter responses correct, the DAC sample rate must be set correctly. Therefore, the clocks must be set up correctly in the software following the discussion in Section 4.7. See Figure 14.
TLV320AIC3106EVM Software 4.10.1 www.ti.com ADC Filters 4.10.1.1 High Pass Filter Figure 15. ADC High Pass Filters The TLV320AIC3106 ADC provides the option of enabling a high-pass filter, which helps to reduce the effects of DC offsets in the system. The Figure 15 tab shows the options for programming various filter associated with the ADC. The high-pass filter has two modes: standard and programmable.
TLV320AIC3106EVM Software www.ti.com 4.10.2 DAC Filters Figure 17. DAC Filters 4.10.2.1 De-emphasis Filters The de-emphasis filters used in the TLV320AIC3106 can be programmed as described in the TLV320AIC3106 data sheet, using this tab (Figure 18). Enter the coefficients for the de-emphasis filter response desired.
TLV320AIC3106EVM Software 4.10.3 www.ti.com Digital Effects Filters The digital effect filters (the biquad filters) of the TLV320AIC3106 are selected using the checkboxes shown in Figure 19. The De-emphasis filters are described in the TLV320AIC3106 data sheet, and their coefficients may be changed (see Figure 17). Figure 19. Enabling Filters When designing filters for use with TLV320AIC3106, the software allows for several different filter types to be used.
TLV320AIC3106EVM Software www.ti.com Figure 21. EQ Filters 4.10.3.3 Analog Simulation Filters Biquads are quite good at simulating analog filter designs. For each biquad section on this tab, enter the desired analog filter type to simulate (Butterworth, Chebyshev, Inverse Chebyshev, Elliptic or Bessel). Parameter entry boxes appropriate to the filter type will be shown (ripple, for example, with Chebyshev filters, etc.). Enter the desired design parameters and the response will be shown.
TLV320AIC3106EVM Software 4.10.3.4 www.ti.com Preset Filters Many applications are designed to provide preset filters common for certain types of program material. This tab (see Figure 23) allows selection of one of four preset filter responses - Rock, Jazz, Classical, or Pop. Figure 23. Preset Filters 4.10.3.5 User Filters If filter coefficients are known, they can be entered directly on this tab (see Figure 24) for both biquads for both left and right channels.
TLV320AIC3106EVM Software www.ti.com 4.10.3.6 3D Effect The 3D effect is described in the TLV320AIC3106 data sheet. It uses the two biquad sections differently than most other effect filter settings. To use this effect properly, make sure the appropriate coefficients are already loaded into the two biquad sections. The User Filters tab may be used to load the coefficients. See Figure 25. Figure 25. 3D Effect Settings To enable the 3D effect, check the 3D Effect On box.
TLV320AIC3106EVM Software www.ti.com 4.11 Output Stage Configuration Tab Figure 26. Output Stage Configuration Tab The Output Stage Configuration tab (Figure 26) allows for setting various features of the output drivers. The Configuration control may be set as either Fully-Differential or Pseudo-Differential.
TLV320AIC3106EVM Software www.ti.com Headset detection features are enabled using the Enable button in the Headset Detection groupbox. When enabled, the indicators in the HS/Button Detect groupbox will light when either a button press or headset is detected. When a headset is detected, the type of headset is displayed in the Detection Type indicator.
TLV320AIC3106EVM Software www.ti.com 4.12 DAC/Line Outputs Tab Figure 27. DAC/Line Outputs Tab The DAC/Line Outputs tab controls the DAC power and volume, as well as routing of digital data to the DACs and the analog line output from the DACs. (See Figure 27.) 4.12.1 DAC Controls On the left side of this tab are controls for the left and right DACs. In similar fashion as the ADC, the DAC controls are set up to allow powering of each DAC individually, and setting the output level.
TLV320AIC3106EVM Software www.ti.com 4.12.2 Line Output Mixers On the right side of this tab are horizontal panels where the analog output mixing functions for the line outputs are located. Each line output master volume is controlled by the knob at the far right of these panels, below the line output labels. The output amplifier gain can be muted or set at a value between 0 and 9dB in 1 dB steps.
TLV320AIC3106EVM Software www.ti.com 4.13 High Power Outputs Tab Figure 28. High Power Outputs Tab This tab contains four horizontal groupings of controls, one for each of the high power outputs. Each output has a mixer to mix the LINE2L, LINE2R, PGA_L, PGA_R, DAC_L and DAC_R signals, assuming that the DACs are not routed directly to the high power outputs (see Section 4.12). At the left of each output strip is a Powered Up button that controls whether the corresponding output is powered up or not.
TLV320AIC3106EVM Software www.ti.com 4.14 Command Line Interface Tab A simple scripting language controls the TAS1020 on the USB-MODEVM from the LabView™-based PC software. The main program controls, described previously, do nothing more than write a script which is then handed off to an interpreter that sends the appropriate data to the correct USB endpoint.
TLV320AIC3106EVM Software www.ti.com The third menu item is a submenu of Recently Opened Files. This is simply a list of script files that have previously been opened, allowing fast access to commonly-used script files. The final menu item is Exit, which terminates the TLV320AIC3106EVM software. Figure 30. File Menu Under the Help menu is an About... menu item which displays information about the TLV320AIC3106EVM software.
www.ti.com Appendix A EVM Connector Descriptions This appendix contains the connection details for each of the main header connectors on the EVM. A.1 A.1.1 Analog Interface Connectors Analog Dual Row Header Details (J13 and J14) For maximum flexibility, the TLV320AIC3106EVM is designed for easy interfacing to multiple analog sources. Samtec part numbers SSW-110-22-F-D-VS-K and TSM-110-01-T-DV-P provide a convenient 10-pin dual row header/socket combination at J13 and J14.
Analog Interface Connectors www.ti.com Table 3. Analog Interface Pin Out (continued) A.1.2 PIN NUMBER SIGNAL DESCRIPTION J14.18 NC Not Connected J14.19 AGND Analog Ground J14.20 NC Not Connected Analog Screw Terminal Details (J1-5 and J8-12) In addition to the analog headers, the analog inputs and outputs may also be accessed through alternate connectors, either screw terminals or audio jacks.
Digital Interface Connectors (J16 and J17) www.ti.com A.2 Digital Interface Connectors (J16 and J17) The TLV320AIC3106EVM is designed to easily interface with multiple control platforms. Samtec part numbers SSW-110-22-F-D-VS-K and TSM-110-01-T-DV-P provide a convenient 10-pin dual row header/socket combination at J16 and J17. These headers/sockets provide access to the digital control and serial data pins of the device. Consult Samtec at www.samtec.
Power Supply Connector Pin Header, J15 www.ti.com Note that J17 comprises the signals needed for an I2S™ serial digital audio interface; the control interface ( I2C™ and RESET) signals are routed to J16. I2C is actually routed to both connectors; however, the device is connected only to J16. A.3 Power Supply Connector Pin Header, J15 J15 provides connection to the common power bus for the TLV320AIC3106EVM. Power is supplied on the pins listed in Table 6. Table 6.
www.ti.com Appendix B TLV320AIC3106EVM Schematic The schematic diagram for the modular TLV320AIC3106EVM is provided as a reference.
1 2 3 4 5 6 Revision History REV JMP4 IOVDD 1 TP14 DIN TP27 HPROUT 2 DVDD J7 SW1 TP15 WCLK WCLK 1 PLUS 2 MINUS LINE1LP C4 0.1uF 0.1uF 0.1uF LINE 1 LEFT IN TP16 BCLK BCLK C5 LINE1LM TP2 MCLK TP3 C13 J3 0.1uF C9 J5 0.1uF A4 B5 B4 A3 TP8 R1 NI 1 LEFT 2 RIGHT LINE2RM B3 A1 A2 B2 C1 10uF MIC 3 IN NC TP9 MICBIAS 3 MICBIAS R6 2.2K 0 R9 0 SJ1-3515-SMT TP11 TP12 MIC3L MIC3R C21 C19 0.1uF C22 NI C20 0.
1 2 3 4 5 6 REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED D D J13 HPLCOM 1 3 5 7 9 11 13 15 17 19 HPRCOM LINE1LM LINE1RM A0(-) A1(-) A2(-) A3(-) AGND AGND AGND VCOM AGND AGND J16 HPLOUT 2 4 6 8 10 12 14 16 18 20 A0(+) A1(+) A2(+) A3(+) A4 A5 A6 A7 REFREF+ 1 3 5 7 9 11 13 15 17 19 HPROUT LINE1LP LINE1RP MIC3L MIC3R MICBIAS MICDET CNTL CLKX CLKR FSX FSR DX DR INT TOUT GPIO5 GPIO0 DGND GPIO1 GPIO2 DGND GPIO3 GPIO4 SCL DGND SDA 2 4 6 8 10 12 14 16 18 20 JMP19 1 DAUGHTER-SERIAL
www.ti.com Appendix C TLV320AIC3106EVM Layout Views Figure 31. Assembly layer Figure 32.
Appendix C www.ti.com Figure 33. Layer 3 Figure 34.
Appendix C www.ti.com Figure 35. Silk Screen Figure 36.
www.ti.com Appendix D TLV320AIC3106EVM Bill of Materials The complete bill of materials for the modular TLV320AIC3106EVM is provided as a reference. Table 7. TLV320AIC3106EVM Bill of Materials QTY Value Ref Des Description MFG MFG Part No. 2 0 R8, R9 1/4W 5% Chip Resistor Panasonic ERJ-8GEY0R00V 10 100 R14–R23 1/10W 1% Chip Resistor Panasonic ERJ-3EKF1000V 2 2.2k R6, R7 1/4W 5% Chip Resistor Panasonic ERJ-8GEYJ222V 3 2.
www.ti.com Appendix E USB-MODEVM Schematic The schematic diagram for USB-MODEVM Interface Board (included only in the TLV320AIC3106EVM-PDK) is provided as a reference.
1 2 3 4 5 6 REVISION HISTORY REV +3.3VD C22 IOVDD C28 +3.3VD 0.1uF 0.1uF U3 1 2 3 4 5 6 7 8 0.1uF 16 15 14 13 12 11 10 9 VCCB OE1 OE2 1B1 1B2 2B1 2B2 GND VCCA DIR1 DIR2 1A1 1A2 2A1 2A2 GND TP10 U10 4 SCL X1 6.00 MHZ C C20 J7 USB SLAVE CONN GND D+ DVCC 46 47 48 1 3 5 6 7 4 16 28 45 100pF BCLK 0.1uF U5 4 3 2 1 C21 R9 1.5K R12 3.09K .001uF R10 27.4 897-30-004-90-000000 R11 C14 47pF 1 2 3 C13 47pF 27.4 1 3 5 7 9 11 1 3 2 VCCA A GND P1.3 +3.
1 2 3 4 5 6 REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED D 1 2 3 D J11 J12 A0(-) A1(-) A2(-) A3(-) AGND AGND AGND VCOM AGND AGND 2 4 6 8 10 12 14 16 18 20 A0(+) A1(+) A2(+) A3(+) A4 A5 A6 A7 REFREF+ 1 3 5 7 9 11 13 15 17 19 +5VA DAUGHTER-ANALOG 1 3 5 7 9 +5VD JMP1 1 -VA -5VA AGND VD1 +5VD DAUGHTER-SERIAL SCLK TP1 TP2 C2 +5VD IOVDD +5VD RESET TP3 IOVDD PWR_DWN 2 C3 IOVDD JMP3 JMP4 +3.
www.ti.com Appendix F USB-MODEVM Bill of Materials The complete bill of materials for USB-MODEVM Interface Board (included only in the TLV320AIC3106EVM-PDK)is provided as a reference. Table 8. USB-MODEVM Bill of Materials Designators Description Manufacturer Mfg. Part Number R4 10Ω 1/10W 5% Chip Resistor Panasonic ERJ-3GEYJ1300V R10, R11 27.
Appendix F www.ti.com Table 8. USB-MODEVM Bill of Materials (continued) Designators Description Manufacturer Mfg. Part Number JMP1–JMP4 2-position jumper, 0.1" spacing Samtec TSW-102-07-L-S JMP8–JMP14 2-position jumper, 0.1" spacing Samtec TSW-102-07-L-S JMP5, JMP6 3-position jumper, 0.1" spacing Samtec TSW-103-07-L-S JMP7 3-position dual row jumper, 0.
www.ti.com Appendix G USB-MODEVM Protocol G.1 USB-MODEVM Protocol The USB-MODEVM is defined to be a Vendor-Specific class, and is identified on the PC system as an NI-VISA device. Because the TAS1020 has several routines in its ROM which are designed for use with HID-class devices, HID-like structures are used, even though the USB-MODEVM is not an HID-class device. Data is passed from the PC to the TAS1020 using the control endpoint. Data is sent in an HIDSETREPORT (see Table 9): Table 9.
USB-MODEVM Protocol www.ti.com Do the same with a fast mode I2C device: [0] [1] [2] [3] [4] [5] 0x12 0xA0 0x02 0x05 0xAA 0x55 Now with an SPI device which uses an 8-bit register address: [0] [1] [2] [3] [4] [5] 0x10 0xA0 0x02 0x05 0xAA 0x55 Now let's do a 16-bit register address, as found on parts like the TSC2101. Assume the register address (command word) is 0x10E0: [0] [1] [2] [3] [4] [5] 0x14 0x10 --> Note: the I2C address now serves as MSB of reg addr.
USB-MODEVM Protocol www.ti.
GPIO Capability www.ti.com The return packet should be [0] [1] [2] [3] [4] [5] 0x21 0xA0 0x02 0x05 0xAA 0x55 assuming that the values we wrote above starting at Register 5 were actually written to the device. G.2 GPIO Capability The USB-MODEVM has seven GPIO lines. Access them by specifying the interface to be 0x08, and then using the standard format for packets—but addresses are unnecessary. The GPIO lines are mapped into one byte (see Table 11): Table 11.
Writing Scripts www.ti.com Each line in a script file is one command. There is no provision for extending lines beyond one line. A line is terminated by a carriage return. The first character of a line is the command. Commands are: i Set interface bus to use r Read from the serial control bus w Write to the serial control bus # Comment b Break d Delay The first command, i, sets the interface to use for the commands to follow.
Writing Scripts www.ti.com Here is an example of using an SPI device that requires 16-bit register addresses: # # # # # w w setup TSC2101 for input and output uses SPI16 interface this script sets up DAC and ADC at full volume, input from onboard mic Page 2: Audio control registers 10 00 00 00 80 00 00 00 45 31 44 FD 40 00 31 C4 13 60 11 20 00 00 00 80 7F 00 C5 FE 31 40 7C 00 02 00 C4 00 00 00 23 10 FE 00 FE 00 Note that blank lines are allowed.
FCC Warnings This equipment is intended for use in a laboratory test environment only. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to subpart J of part 15 of FCC rules, which are designed to provide reasonable protection against radio frequency interference.
IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.