User's Guide SLAU264A – October 2008 – Revised September 2012 TLV320AIC3254EVM-K This user's guide describes the characteristics, operation, and use of the TLV320AIC3254EVM-K. This evaluation module (EVM) features 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 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 .................................................................................................. Automatic Gain Control Panel ........................................................................................... Dynamic Range Compression Panel ................................................................................... Headset Detection Panel ...................................................................................
EVM Overview www.ti.com 1 EVM Overview 1.1 Features • • • • Full-featured evaluation board for the TLV320AIC3254 stereo audio codec. USB connection to PC provides power, control, and streaming audio data for easy evaluation. Onboard 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 of Figure 1 shows only the basic features of the USB-MODEVM Interface board. Because the TLV320AIC3254EVM is a double-wide modular EVM, it is installed with connections to both EVM positions, which connects the TLV320AIC3254 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 TLV320AIC3254EVM, SW-2 positions 1, 3, 4, 5, 6, and 7 must be set to ON, whereas SW-2.2 and SW-2.8 must be set to OFF. If the TLV320AIC3254EVM is to be used with an external audio interface, SW2.4 and SW2.5 also need to be set to OFF and such interface must be connected as explained in Section 2.4 Table 1.
EVM Description and Basics www.ti.com Table 2. List of Jumpers and Switches (continued) Jumper Default Position Jumper Description W15 Open When installed, connects GPIO4 to reset AND gate (U3). W16 Installed Provides a means of measuring IOVDD current. W17 Installed Provides a means of measuring DVDD current. W18 Installed Provides a means of measuring LDOin/HPVDD current. ??? W19 Installed Provides a means of measuring AVDD current.
TLV320AIC3254EVM-K Setup and Installation www.ti.com 2.5.1 Stand-Alone Operation When used as a stand-alone EVM, power is applied to P23/J23 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 TLV320AIC3254 data sheet before applying power to the EVM. P23/J23 provides connection to the common power bus for the TLV320AIC3254EVM.
TLV320AIC3254EVM-K Setup and Installation 3.2 www.ti.com EVM Connections 1. Ensure that the TLV320AIC3254EVM is installed on the USB-MODEVM Interface board, aligning J11, J12, J21, J22, and J23 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 provides power, control signals, and streaming audio via the USB interface from the PC.
TLV320AIC3254EVM-K Setup and Installation www.ti.com The TLV320AIC3254EVM-K software can now be launched. The user sees an initial screen that looks similar to Figure 2. Figure 2.
TLV320AIC3254EVM-K Setup and Installation www.ti.com If running the software in Windows Vista or Windows 7, right-click the AIC3254EVM-K CS shortcut and select Properties. Configure the Compatibility tab as shown in Figure 3 Figure 3.
AIC3254 Control Software www.ti.com 4 AIC3254 Control Software The AIC3254 Control Software (CS) is an intuitive, easy-to-use, powerful tool to learn, evaluate, and control the TLV320AIC3254. This tool was specifically designed to make learning the TLV320AIC3254 software easy. The following sections describe the operation of this software. NOTE: For configuration of the codec, the TLV320AIC3254 block diagram located in the TLV320AIC3254 data sheet is a good reference to help determine the signal routing.
AIC3254 Control Software 4.1.1 www.ti.com Typical Configurations This category can help users to quickly become familiar with the TLV320AIC3254. Each of the panels that can be accessed through this menu have controls relevant to the selected configuration; a tab shows the script that will be loaded for that particular configuration. Each script includes a brief description of the selected configuration, as shown in Figure 4. Figure 4. Playback Script Tab 4.1.1.
AIC3254 Control Software www.ti.com Figure 5. Playback Panel 4.1.1.2 Recording The Recording panel (shown in Figure 6) has the following configurations: • High Performance Stereo Recording - this configuration programs the TLV320AIC3254 in PowerTune ™ mode PTM_R4, for low-noise, high-performance stereo recording. IN1_L and IN1_R are routed in a single ended fashion. • Low Power Stereo Recording - this configuration programs the TLV320AIC3254 in PowerTune ™ mode PTM_R1 for low-power stereo playback.
AIC3254 Control Software www.ti.com Figure 6. Recording Panel 4.1.2 Features The Features category allows the user to evaluate various features of the TLV320AIC3254. Each of the Features panels include an Information tab that explains the feature and provides hardware setup information for easy evaluation, as seen in Figure 7.
AIC3254 Control Software www.ti.com Figure 7. DRC Information Tab Any item in the Features category can be accessed by a double-click. As soon as a Features panel opens, a pop-up message appears asking to program the codec for that feature (see Figure 8). A command script is sent to the codec if the OK button is clicked. This script programs all registers necessary to evaluate the feature. This can be bypassed by clicking the Cancel button. Figure 8.
AIC3254 Control Software 4.1.2.1 www.ti.com Adaptive Filtering The TLV320AIC3254 features double-buffered filter coefficients which allow real-time filtering. The TLV320AIC3254 features up to six cascaded biquads and a first-order IIR filter per DAC channel in various signal processing blocks. Note that the TLV320AIC3254 has the potential for a larger amount of biquad sections if the embedded miniDSP is used for signal processing (see Section 4.1.3.1).
AIC3254 Control Software www.ti.com 4.1.2.2 Automatic Gain Control The left-channel Automatic Gain Control (AGC) can be enabled by checking the Enable Left AGC box (Figure 10). Pressing the Capture Audio button records the left-channel audio. Its corresponding data is displayed in the audio capture graph window. The small white window located at the bottom right of the AGC tab displays the audio waveform of the recorded data.
AIC3254 Control Software 4.1.2.3 www.ti.com Dynamic Range Compression Dynamic Range Compression (DRC) can be enabled by checking the Enable Left DRC and Enable Right DRC boxes. The level transfer characteristic graph is a function of the applied digital gain and the threshold parameter.
AIC3254 Control Software www.ti.com 4.1.2.4 Headset Detection The TLV320AIC3254EVM provides two terminal blocks (J8 and J4) that can be used to connect different types of cellular headset jacks. For proper headset detection, the jack connections must comply with the figure shown in the Headset Detection section of the datasheet. The Headset Detection panel provides hardware setup information for a four-conductor stereo + cellular jack, as seen in Figure 12.
AIC3254 Control Software www.ti.com Checking the Enable Polling box displays the DC measurement data. Other flags related to this feature can be accessed at the Status Flags panel. Figure 13. DC Measurement Panel 4.1.3 miniDSP Applications The TLV320AIC3254 features two miniDSP cores, one for the ADC and another for the DAC. Currently, the AIC3254 CS has two DAC miniDSP applications: Equalizers and Spectrum Analyzer.
AIC3254 Control Software www.ti.com The Small Speaker EQ section, contains filter presets that are suitable for small speaker applications. Emphasizing certain frequencies and reducing low-frequency energy provides higher volume with less distortion and more intelligible speech and music for small speakers. These presets use the first seven biquads of the cascade for filtering whereas the rest of the 13 graphic equalizer sliders can be used to emphasize other frequencies.
AIC3254 Control Software www.ti.com Figure 15. Spectrum Analyzer 4.1.4 Control Categories The Digital Settings, Analog Settings, and Signal Processing categories provide control of many registers and other features of the TLV320AIC3254 . These categories are intended for the advanced user. Hovering the mouse cursor on top of a control displays a tip strip that contains page, register, and bit information.
AIC3254 Control Software www.ti.com Before changing a control, see the data sheet to ensure that a particular control is compatible with the current state of the codec. As an example, some controls in the Analog Setup panel must be modified in a particular order as described in the data sheet. Other controls must only be modified with a specific hardware setup, such as powering up the AVDD LDO. All • • • 4.
AIC3254 Control Software www.ti.com Figure 18. Register Tables Panel 4.4 Command-Line Interface Panel The Command-Line Interface panel provides a means to communicate with the TLV320AIC3254 using a simple scripting language (described in Section G.3). The TAS1020B USB Controller (located on the USBMODEVM motherboard) handles all communication between the PC and the TLV320AIC3254.
AIC3254 Control Software www.ti.com Figure 19.
www.ti.com Appendix A EVM Connector Descriptions This appendix contains the connection details for each of the main connectors on the EVM. A.1 Analog Interface Connectors A.1.1 Analog Dual-Row Socket Details, J11 and J21 The TLV320AIC3254EVM has two analog dual-row sockets located at the bottom of the board. These sockets provide support to the EVM and connect the analog ground plane of the EVM to the USBMODEVM analog ground. Consult Samtec at www.samtec.
Analog Interface Connectors www.ti.com Table 3. Analog Interface Pinout (continued) A.1.2 PIN NUMBER SIGNAL DESCRIPTION J21.20 NC Not Connected Analog Screw Terminal and Audio Jack Details, J1 to J10 The analog inputs and outputs can be accessed through screw terminals or audio jacks. Table 4 summarizes the screw terminals and audio jacks available on the TLV320AIC3254EVM. Table 4.
Digital Interface Connectors, P12/J12 and P22/J22 A.2 www.ti.com Digital Interface Connectors, P12/J12 and P22/J22 The TLV320AIC3254EVM 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 P12/J12 and P22/J22. 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, P23/J23 www.ti.com Note that P22/J22 comprises the signals needed for an I2S™ serial digital audio interface; the control interface ( I2C™ and RESET) signals are routed to P12/J12. A.3 Power Supply Connector Pin Header, P23/J23 P23/J23 provides connection to the common power bus for the TLV320AIC3254EVM. Power is supplied on the pins listed in Table 6. Table 6. Power Supply Pin Out SIGNAL PIN NUMBER SIGNAL NC P23.1/J 23.1 P23.2/J2 NC 3.2 +5VA P23.3/J 23.3 P23.
www.ti.com Appendix B TLV320AIC3254EVM Schematic The schematic diagram for the TLV320AIC3254EVM is provided as a reference.
1 2 3 4 6 5 Revision History REV AIC3204_54_RHB AIC3204_54_RHB.SCH ECN Number Approved Daughtercard_Interface Daughtercard_Interface.
1 2 3 4 6 5 REVISION HISTORY REV D AGND AGND VCOM AGND AGND AGND A3(-) A2(-) A1(-) A0(-) APPROVED P12 J11 19 17 15 13 11 9 7 5 3 1 ENGINEERING CHANGE NUMBER REF+ REFA7 A6 A5 A4 A3(+) A2(+) A1(+) A0(+) 20 18 16 14 12 10 8 6 4 2 SCLK /SS MOSI MISO 1 3 5 7 9 11 13 15 17 19 CONN_EVM_ANALOG BOTTOM SIDE CNTL CLKX CLKR FSX FSR DX DR INT TOUT GPIO5 2 4 6 8 10 12 14 16 18 20 GPIO0 DGND GPIO1 GPIO2 DGND GPIO3 GPIO4 SCL DGND SDA D /RESET SCL SDA CONN_EVM_SERIAL TOP SIDE J12 19 17 15 13 11 9 7 5
1 2 3 4 6 5 Revision History J1 2 4 5 3 1 2 TP1 IN1_L C1 1 IN1_L 0.47uF TP28 SCL/SSZ 2 IN1_R 0.47uF IN2 TP3 IN2_L C3 1 IN2_L IN2_R 3 2 1 23 24 TP10 LOR HPL IN2_L IN1_R IN1_L SPI_SEL MISO SDA/MOSI SCL/SSZ 14 13 12 11 10 9 SCL/SS SDA/MOSI MISO IN1_L DVDD LDO_SEL 30 DVSS 28 DIN 3 WCLK 2 BCLK 1 MCLK R27 4.7K R24 0 D1 /RESET 2 C13 NI R12 3 C14 NI 47uF C22 R31 2 4 5 3 1 C19 47nF R29 16 1 C20 47nF +3.
www.ti.com Appendix C TLV320AIC3254EVM Layout Views C.1 Layout Views Figure 20. Top Layer Figure 21.
Layout Views www.ti.com Figure 22. Mid-Layer 2 Figure 23.
Layout Views www.ti.com Figure 24. Top Overlay Figure 25.
Layout Views www.ti.com Figure 26. Drill Drawing Figure 27.
www.ti.com Appendix D TLV320AIC3254EVM Bill of Materials The complete bill of materials for the TLV320AIC3254EVM is provided as a reference. Table 7. TLV320AIC3254EVM Bill of Materials PCB Qty Value Ref Des Description 1 N/A TLV320AIC3204_54_RHB_EVM_Rev Texas A (PCB) Instruments Vendor Part number Qty Value Ref Des Description Vendor Part number 2 0 R11, R12 RES ZERO OHM 1/4W 5% 1206 S.D.
Appendix D www.ti.com Table 7. TLV320AIC3254EVM Bill of Materials (continued) 3 10uF C38, C39, C40 CAP CERAMIC 10UF 10V X5R 0805 Panasonic ECJ2FB1A106K 3 22uF C33, C34, C35 CAP CER 22UF 6.
Appendix D www.ti.com Table 7. TLV320AIC3254EVM Bill of Materials (continued) 1 J23 10 pin SMT Socket Header Samtec SSW-105-22-FD-VS-K 14 W2, W3, W4, W5, W6, W7, W9, W10, W11, W12, W13, W15, W22, W23 2 Pin Thru-hole Plug Header (Jumper), 0 .1" spacing Samtec TSW-102-07-LS 5 W16, W17, W18, W19, W21 Bus Wire (18-22 Gauge) 4 W1, W8, W14, W20 3 Position Jumper , 0 .1" spacing Samtec TSW-103-07-LS Installed per test procedure.
www.ti.com Appendix E USB-MODEVM Schematic The schematic diagram for USB-MODEVM Interface Board is provided as a reference.
1 2 3 4 6 5 REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED D D USB Interface USB Interface Daughtercard Interface Daughtercard Interface MCLK BCLK LRCLK I2SDIN I2SDOUT MISO MOSI SS SCLK RESET INT PWR_DWN P3.3 P3.4 P3.5 P1.0 SDA SCL P1.1 P1.2 P1.3 C MCLK BCLK LRCLK I2SDIN I2SDOUT MISO MOSI SS SCLK RESET INT PWR_DWN P3.3 P3.4 P3.5 P1.0 SDA SCL P1.1 P1.2 P1.3 C B B ti A DATA ACQUISITION PRODUCTS HIGH-PERFORMANCE ANALOG DIVISION SEMICONDUCTOR GROUP 6730 SOUTH TUCSON BLVD.
1 2 3 4 6 5 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 SCLK TP1 TP2 J12A (TOP) = SAM_TSM-110-01-L-DV-P J12B (BOTTOM) = SAM_SSW-110-22-F-D-VSIOVDD +5VD RESET IOVDD IOVDD C3 TP3 PWR_DWN 2 JMP3 R21 390 2.
1 2 3 4 6 5 REVISION HISTORY REV C33 +3.3VD +3.3VD APPROVED C41 0.1uF 5 1 IOVDD C32 ENGINEERING CHANGE NUMBER SDA C31 U11 VREF1 J6 1 3 SDA1 SCL1 GND EXTERNAL I2C 0.1uF 0.1uF USB I2S SN74AVC4T245PW PCA9306DCT +3.3VD 5 VCCB VCCA OE1 DIR1 OE2 DIR2 1B1 1A1 1B2 1A2 2B1 2A1 2B2 2A2 GND GND 0.1uF SCL C19 C C20 J7 USB SLAVE CONN 46 47 48 1 3 5 6 7 4 16 28 45 100pF GND D+ DVCC 4 3 2 1 C21 R9 1.5K R12 3.09K .001uF R10 27.
www.ti.com Appendix F USB-MODEVM Bill of Materials The complete bill of materials for USB-MODEVM Interface Board 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 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 NIVISA device. Because the TAS1020B 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 TAS1020B using the control endpoint. Data is sent in a 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, 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 is: [0] [1] [2] [3] [4] [5] 0x21 0xA0 0x02 0x05 0xAA 0x55 assuming that the values written 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. GPIO Pin Assignments Bit 7 6 5 4 3 2 1 0 x P3.
Writing Scripts www.ti.com The first command, i, sets the interface to use for the commands to follow.
Writing Scripts www.ti.com Any text editor can be used to write these scripts; Jedit is an editor that is highly recommended for general usage. For more information, go to: http://www.jedit.org. Once the script is written, it can be used in the command window by running the program, and then selecting Open Script File... from the File menu. Locate the script and open it. The script is then displayed in the command buffer.
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, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.