User's Guide SLAU286 – June 2009 TLV320AIC3007EVM-K This user's guide describes the characteristics, operation, and use of the TLV320AIC3007EVM-K. This evaluation module (EVM) allows the user to evaluate the TLV320AIC3007 audio codec. The TLV320AIC3007 is a complete 2-channel audio codec with an integrated Class-D speaker amplifier. It also has many inputs and outputs, extensive audio routing, mixing, and effects capabilities.
www.ti.com 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 C-1 C-2 C-3 C-4 C-5 Bypass Paths Tab .......................................................................................................... Audio Interface Tab ....................................................................................................... Clocks Tab ................................................................................................................. GPIO1 Tab ...........................
EVM Overview www.ti.com 1 EVM Overview 1.1 Features • • • • • Full-featured evaluation board for the TLV320AIC3007 2-channel audio codec with integrated Class-D amplifier. 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.
EVM Description and Basics 2.1.1 www.ti.com USB-MODEVM Interface Board The simple diagram of Figure 1 shows only the basic features of the USB-MODEVM Interface board. When connecting the TLV320AIC3007EVM to the USB-MODEVM, use care to avoid bending the connecting pins. The two boards can only be connected in one way.
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 TLV320AIC3007EVM, SW-2 positions 1 through 7 must be set to ON (LO), whereas SW-2.8 must be set to OFF (HI). Table 1. USB-MODEVM SW2 Settings SW-2 Switch Number 2.2.
EVM Description and Basics www.ti.com Table 2. List of Stand-alone Jumpers (continued) Jumper Number Jumper Type Default Position W17 2-pin Open Selects onboard EEPROM as TAS1020B Firmware Source.(Not Used). Note that for this EVM the Firmware Source EEPROM is on the USB-MODEVM. W18 2-pin Open Selects SWOUTP to J-18. Caution: Make sure that the Class-D Output is Disabled before Installing W18. W19 2-pin Open Selects SWOUTM to J-18.
TLV320AIC3007EVM-K Setup and Installation www.ti.com • Laboratory power supply When powered from the USB connection, JMP6 must have a shunt from pins 1–2 (this is the default factory configuration). When powered from 6 Vdc-10 Vdc, either through the J8 terminal block or J9 barrel jack, JMP6 must have a shunt installed on pins 2–3. If power is applied in any of these ways, onboard regulators generate the required supply voltages, and no further power supplies are necessary.
TLV320AIC3007EVM Software 4 www.ti.com TLV320AIC3007EVM Software The following section discusses the details and operation of the EVM software. Note: 4.1 For configuration of the codec, the TLV320AIC3007 block diagram located in the TLV320AIC3007 data sheet is a good reference to help determine the signal routing. A pop-up detailed block diagram also is provided in the TLV320AIC3007 GUI software.
TLV320AIC3007EVM Software www.ti.com 4.1.2 Quick Start - Preset Configurations Figure 3. Quick Start - Preset Configurations Tab The Quick Start Preset Configurations tab provides several different preset configurations of the codec (Figure 3). The Preset Configurations buttons allow the user to choose from the provided defaults. When the selection is made, the Preset Configuration Description shows a summary of the codec setup associated with the choice made.
TLV320AIC3007EVM Software 4.2 www.ti.com Main Software Screen With Indicators and Functions Figure 4. Main Software Screen Figure 4 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. The firmware box indicates from where the firmware being used is operating.
TLV320AIC3007EVM Software www.ti.com The ADC Overflow and DAC Overflow indicators illuminate when the overflow flags are set in the TLV320AIC3007. Below these indicators are the AGC Noise Threshold Exceeded indicators that illuminate when the AGC noise threshold is exceeded. To the far right of the screen, the Short Circuit Detect indicators illuminate when a short-circuit condition is detected, if this feature has been enabled.
TLV320AIC3007EVM Software 4.3 www.ti.com Audio Input/ADC Tab Figure 6. Audio Input/ADC Tab The Audio Input/ADC tab allows control of the analog input mixer and the ADC. The controls are displayed to look similar to an audio mixing console (see Figure 6). Each analog input channel has a vertical strip that corresponds to that channel. By default, all inputs are muted when the TLV320AIC3007 is powered up. To route an analog input to the ADC: 1.
TLV320AIC3007EVM Software www.ti.com 4.4 Bypass Paths Tab Figure 7. Bypass Paths Tab As shown in Figure 7, several analog bypass paths are available in the TMS320AIC3007. LINE1RP, LINE2RP, LINE1LP, and LINE2LP inputs can be passively bypassed to either RIGHT_LOP or LEFT_LOP by using the Passive Analog Bypass Paths controls. LINE2L (left) and LINE2R (right) buffered inputs can directed to the output mixer sections by using the Active Bypass Paths to Output Amplifiers controls.
TLV320AIC3007EVM Software 4.5 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 TLV320AIC3007. The interface mode can be selected using the Audio Serial Data Mode control—selecting either I2S mode, DSP mode, or Right- or Left-Justified modes. Word length can be selected using the Audio Serial Word Length control, and the bit clock rate can also be selected using the Bit Clock Mode rate control.
TLV320AIC3007EVM Software www.ti.com 4.6 Clocks Tab Figure 9. Clocks Tab The TLV320AIC3007 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 TLV320AIC3007 for operation with a wide range of master clocks. See the Audio Clock Generation Processing figure in the TLV320AIC3007 data sheet for further details of selecting the correct clock settings.
TLV320AIC3007EVM Software 4.6.1.1 www.ti.com Use Without PLL Setting up the TLV320AIC3007 for clocking without using the PLL permits the lowest power consumption by the codec. The CLKDIV_IN source can be selected as either MCLK (default) or BCLK. The CLKDIV_IN frequency then is entered into the CLKDIV_IN box, in megahertz (MHz). The default value shown, 11.2896 MHz, is the frequency used on the USB-MODEVM board.
TLV320AIC3007EVM Software www.ti.com 4.7 GPIO1 Tab Figure 10. GPIO1 Tab The GPIO1 tab (see Figure 10) selects options for the general-purpose inputs and outputs (GPIO) of the TLV320AIC3007. The GPIO1 groupbox contains controls for setting options for the GPIO1 pin.
TLV320AIC3007EVM Software 4.8 www.ti.com 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 TLV320AIC3007 data sheet. The AGC can be enabled for each channel using the Enable AGC button.
TLV320AIC3007EVM 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.
TLV320AIC3007EVM Software 4.9 www.ti.com Filters Tab Figure 14. Filters Tab The TLV320AIC3007 has an advanced feature set for applying digital filtering to audio signals. This tab controls all of the filter features of the TLV320AIC3007. 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.6. See Figure 14.
TLV320AIC3007EVM Software www.ti.com 4.9.1 ADC Filters 4.9.1.1 High-Pass Filter Figure 15. ADC High-Pass Filters The TLV320AIC3007 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.
TLV320AIC3007EVM Software 4.9.2 www.ti.com DAC Filters Figure 17. DAC Filters 4.9.2.1 De-emphasis Filters The de-emphasis filters used in the TLV320AIC3007 can be programmed as described in the TLV320AIC3007 data sheet, using this tab (Figure 18). Enter the coefficients for the de-emphasis filter response desired.
TLV320AIC3007EVM Software www.ti.com 4.9.3 Digital Effects Filters The digital effect filters (the biquad filters) of the TLV320AIC3007 are selected using the check boxes shown in Figure 19. The de-emphasis filters are described in the TLV320AIC3007 data sheet, and their coefficients can be changed (see Figure 17). Figure 19. Enabling Filters When designing filters for use with TLV320AIC3007, the software allows for several different filter types to be used.
TLV320AIC3007EVM Software 4.9.3.2 www.ti.com EQ Filters EQ, or parametric, filters can be designed on this tab (see Figure 21). Enter a gain, bandwidth, and a center frequency (Fc). Either bandpass (positive gain) or band-reject (negative gain) filters can be created Figure 21. EQ Filters 4.9.3.3 Analog Simulation Filters Biquads are good at simulating analog filter designs.
TLV320AIC3007EVM Software www.ti.com 4.9.3.4 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.9.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.
TLV320AIC3007EVM Software 4.9.3.6 www.ti.com 3D Effect The 3D effect is described in the TLV320AIC3007 data sheet. It uses the two biquad sections differently than most other effect filter settings. To use this effect properly, ensure that the appropriate coefficients are already loaded into the two biquad sections. The User Filters tab can 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.
www.ti.com TLV320AIC3007EVM Software 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 26.) 4.10.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. Each channel's level can be set independently using the corresponding Volume knob.
TLV320AIC3007EVM Software www.ti.com 4.11 HP Output Stage Configuration Tab Figure 27. Output Stage Configuration Tab The HP Output Stage Configuration tab (Figure 27) allows for setting various features of the output drivers. The Headset Configuration control can be set as either Fully-Differential or Pseudo-Differential.
TLV320AIC3007EVM Software www.ti.com 4.12 HP 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.10). At the left of each output strip is a Powered Up button that controls whether the corresponding output is powered up or not.
TLV320AIC3007EVM 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.
TLV320AIC3007EVM Software www.ti.com Figure 30. File Menu Under the Help menu is an About... menu item which displays information about the TLV320AIC3007EVM software. The I2C Bus Error Detection button allows the user to enable circuitry which sets a register bit (Register 107, D0) if an I2C bus error is detected. It is unnecessary to use this with the GUI software but can be used as part of error detection in the end-equipment software design.
Appendix A 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 Analog Interface Connectors A.1.1 Analog Input/Output Connectors In addition to the analog headers, the analog inputs and outputs also can be accessed through alternate connectors, either screw terminals or audio jacks. The stereo microphone input is also tied to J6 and the stereo headphone output (the HP set of outputs) is available at J7.
Block A and Block B Digital Interface Connectors (J16 and J17) www.ti.com A.2 Block A and Block B Digital Interface Connectors (J16 and J17) The TLV320AIC3007EVM 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 2 Note that P5 comprises the signals needed for an I S serial digital audio interface; the control interface (I2C and RESET) signals are routed to P4. I2C is actually routed to both connectors; however, the device is connected only to P4. A.3 Power Supply Connector Pin Header, J15 J15 provides connection to the common power bus for the TLV320AIC3007EVM. Power is supplied on the pins listed in Table A-3. Table A-3.
3 2 1 3 2 1 100K 2 1 2 4 5 3 1 220 C18 +3.3VA 0.1uF C22 0.1uF C21 0.1uF C20 0.1uF C19 0.1uF 2 4 5 3 1 3 2 1 LINE OUT J12 LOR LOL HEADSET TEST SJ1-3515-SMT J11 2 4 5 3 1 HEADSET OUTPUT SJ1-3515-SMT J10 TP17 R3 2.2K HPL-TEST HPR HPL ON-BOARD MICROPHONE MD9745APZ-F MK1 EXT MIC IN SJ1-3515-SMT J9 47uF R1 R2 LINE2LM LINE2LP LINE1RM LINE1RP LINE1LM MIC BIAS SEL C23 LINE2L W9 3 2 1 LINE1R J8 LINE1L J7 3 C17 0.
A0(+) A1(+) A2(+) A3(+) A4 A5 A6 A7 REFREF+ 2 4 6 8 10 12 14 16 18 20 A0(-) A1(-) A2(-) A3(-) AGND AGND AGND VCOM AGND AGND J2 A0(+) A1(+) A2(+) A3(+) A4 A5 A6 A7 REFREF+ 2 4 6 8 10 12 14 16 18 20 DAUGHTER-ANALOG J2 (BOTTOM) = SAMTEC - P/N: SSW-110-22-F-D-VS-K 1 3 5 7 9 11 13 15 17 19 DAUGHTER-ANALOG J1 (BOTTOM) = SAMTEC - P/N: SSW-110-22-F-D-VS A0(-) A1(-) A2(-) A3(-) AGND AGND AGND VCOM AGND AGND W14 IOVDD 1 2 3 +1.8VD +5VA TP45 +1.8VD +3.3VD TP44 +3.
Appendix C www.ti.com Appendix C TLV320AIC3007EVM Layout Views Figure C-1. Assembly layer Figure C-2.
Appendix C www.ti.com Figure C-3. Layer 3 Figure C-4.
Appendix C www.ti.com Figure C-5.
Appendix D www.ti.com Appendix D TLV320AIC3007EVM Bill of Materials The complete bill of materials for the modular TLV320AIC3007EVM is provided as a reference. Table D-1. TLV320AIC3007EVM Bill of Materials Item No. Qty Value Ref Des Description Vendor Part Number ATTENTION: Alternate Resistor and Capacitor vendors may be used. In this case substitutions must have like descriptions. All components should be RoHS compliant. Some part numbers may be either leaded or RoHS.
Appendix D www.ti.com Table D-1. TLV320AIC3007EVM Bill of Materials (continued) Item No. Qty 34 Value Ref Des Description Vendor Part Number 7 W1–W5, W7, W8 Bus Wire (18–22 Gauge) 35 2 W9, W14 36 1 MK1 3 Position Jumper , 0 .1" spacing Samtec TSW-103-07-L-S Omnidirectional Microphone Cartridge Knowles Acoustics MD9745APZ-F or alternate Knowles Acoustics MD9745APA-1 37 2 SW1, SW2 SWITCH SLIDE 4PDT 30V RT ANGLE E-Switch EG4208 38 1 SW3 SWITCH SLIDE SPDT 30V.
Appendix E www.ti.com Appendix E USB-MODEVM Schematic The schematic diagram for USB-MODEVM Interface Board (included in the TLV320AIC3007EVM-K) is provided as a reference. It appears on the following page.
Appendix F www.ti.com Appendix F USB-MODEVM Bill of Materials The complete bill of materials for USB-MODEVM Interface Board (included only in the TLV320AIC3007EVM-K)is provided as a reference. Table F-1. 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 F-1. 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.
Appendix G 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 G-1): Table G-1.
USB-MODEVM Protocol www.ti.com 2 Do the same with a fast mode I C 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 consider a 16-bit register address, as found on parts like the TSC2101. Assume that 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 G.2 www.ti.com 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 G-3): Table G-3. GPIO Pin Assignments Bit 7 6 5 4 3 2 1 0 x P3.5 P3.4 P3.3 P1.3 P1.2 P1.1 P1.0 Example: write P3.
Writing Scripts www.ti.com G.3 Writing Scripts A script is simply a text file that contains data to send to the serial control buses. The scripting language is simple, as is the parser for the language. Therefore, although the program is not forgiving about mistakes made in the source script file, the formatting of the file is simple. Consequently, mistakes are rare. Each line in a script file is one command. Lines cannot be extended beyond one line. A line is terminated by a carriage return.
Writing Scripts www.ti.com 2 This script begins with a comment, specifies that a fast I C bus is used, then writes 0xAA 0x55 to the I2C slave device at address 0x90, writing the values into registers 0x03 and 0x04. The script then reads back two bytes from the same device starting at register address 0x03. Note that the slave device value does not change. It is unnecessary to set the R/W bit for I2C devices in the script; the read or write commands does that.
EVALUATION BOARD/KIT IMPORTANT NOTICE Texas Instruments (TI) provides the enclosed product(s) under the following conditions: This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRATION, OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards.
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.