User's Guide SBAU113 – November 2005 TLV320AIC32EVM and TLV320AIC32EVM-PDK User's Guide This user's guide describes the characteristics, operation, and use of the TLV320AIC32EVM, both by itself and as part of the TLV320AIC32EVM-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 EVM Overview 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 AGC Tab .................................................................................................................... Filters Tab .................................................................................................................. ADC Highpass Filter Settings ............................................................................................ Enabling Filters .................................................
www.ti.com Analog Interface 2 Analog Interface For maximum flexibility, the TLV320AIC32EVM 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 J1 and J2. These headers/sockets provide access to the analog input and output pins of the device. Consult Samtec at www.samtec.com or call 1-800-SAMTEC-9 for a variety of mating connector options.
www.ti.com Digital Interface In addition to the analog headers, the analog inputs and outputs may also be accessed through alternate connectors, either screw terminals or audio jacks. The stereo microphone input is also tied to J8 and the stereo headphone output (the HP set of outputs) is available at J9. Table 2 summarizes the screw terminals available on the TLV320AIC32EVM. Table 2.
www.ti.com Power Supplies Table 3. Digital Interface Pinout (continued) PIN NUMBER SIGNAL DESCRIPTION J5.5 NC Not Connected J5.6 NC Not Connected J5.7 WCLK Audio Serial Data Bus Word Clock (Input/Output) J5.8 NC Not Connected J5.9 NC Not Connected J5.10 DGND Digital Ground J5.11 DIN Audio Serial Data Bus Data Input (Input) J5.12 NC Not Connected J5.13 DOUT Audio Serial Data Bus Data Output (Output) J5.14 NC Not Connected J5.15 NC Not Connected J5.
www.ti.com EVM Operation 4.2 USB-MODEVM Interface Power The USB-MODEVM Interface board can be powered from several different sources: • USB • 6VDC-10VDC AC/DC external wall supply (not included) • Lab power supply When powered from the USB connection, JMP6 should have a shunt from pins 1–2 (this is the default factory configuration). When powered from 6V-10VDC, either through the J8 terminal block or the J9 barrel jack, JMP6 should have a shunt installed on pins 2-3.
www.ti.com Kit Operation 5.4 Default Jumper Locations Table 5 lists the jumpers found on the EVM and their respective factory default conditions. Table 5.
www.ti.com Kit Operation 6.1 TLV320AIC32EVM-PDK Block Diagram A block diagram of the TLV320AIC32EVM-PDK is shown in Figure 1. The evaluation kit consists of two circuit boards connected together. The motherboard is designated as the USB-MODEVM Interface board, while the daughtercard is the TLV320AIC32EVM described previously in this manual.
www.ti.com Kit Operation Table 6.
www.ti.com Kit Operation The software should automatically find the TLV320AIC32EVM, and a screen similar to the one in Figure 2 should appear. Figure 2. Default Software Screen 6.3 USB-MODEVM Interface Board The simple diagram shown in Figure 1 shows only the basic features of the USB-MODEVM Interface board. The board is built around a TAS1020B streaming audio USB controller with an 8051-based core.
www.ti.com Kit Operation 6.4 Program Description After the TLV320AIC32EVM-PDK software installation (described in Section 6.2) is complete, evaluation and development with the TLV320AIC32 can begin. 6.5 Indicators and Main Screen Controls Figure 2 illustrates the indicators and controls near the top of the software screen display, and a large tabbed interface below. This section discusses the controls above this tabbed section. At the top left of the screen is an Interface indicator.
www.ti.com Kit Operation The output waveforms for both left and right channels are displayed in the graph at the bottom of the screen in Figure 3. Figure 3.
www.ti.com Kit Operation The second tab, titled Analyzer (Figure 4), handles the display and analysis of data from the ADCs. Figure 4. Audio Analyzer Screen The analyzer screen features a graph of the input signals, both left and right channels, in a time domain display at the top of the screen, and in the frequency domain (FFT) at the bottom of the screen.
www.ti.com Kit Operation Next to the time domain plots, calculated values of SINAD, SNR, and THD are shown. These values are all expressed in dB relative to the full-scale of the TLV320AIC32. Note that the SNR number shown is A-weighted. In Figure 4, a sine wave generated by the TLV320AIC32 DACs is fed through the high power drivers and back into the ADC; then the resulting FFTs can be seen.
www.ti.com Kit Operation Similarly, the LINE2L and LINE2R inputs can be routed to the ADC. However, note that these inputs do not have the choice to route to either ADC channel, they can only be configured to connect to the corresponding ADC input. The MIC3L and MIC3R inputs are similar to the LINE1L and LINE1R inputs in that they can be routed to either ADC input channel. Control of the mic bias is accomplished by using the pull-down menu at the top of these channel strips.
www.ti.com Kit Operation Figure 6. Audio Interface Tab Along the bottom of this tab are controls for choosing the BLCK and WCLK as being either inputs or outputs, as well as options for tristating the DOUT line when there is not valid data and transmitting BLCK and WCLK when the codec is powered down. Re-sync of the audio bus is enabled using the controls in the lower right corner of this screen.
www.ti.com Kit Operation 6.8 Clocks Tab The TLV320AIC32 has a very flexible scheme for generating the clock sources for ADC and DAC sample rates. The Clocks tab allows access to set the different options for setting up these clocks. Refer to the Audio Clock Generation Processing figure (Figure 24) in the TLV320AIC32 datasheet. For use with the PC software and the USB-MODEVM, the clock settings must be set a certain way. These settings are not the default settings of the TLV320AIC32.
www.ti.com Kit Operation 6.8.1 Use Without PLL Setting up the TLV320AIC32 for clocking without using the PLL is straightforward. The CLKDIV_IN source can be selected as either MCLK 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.
www.ti.com Kit Operation 6.9 AGC Tab The AGC tab (see Figure 8) 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 TLV320AIC32 datasheet. Figure 8. AGC Tab The AGC can be enabled for each channel using the Enable AGC button. Target gain, Attack time in milliseconds, Decay time in milliseconds, and the Maximum PGA Gain Allowed can all be set, respectively, using the four corresponding knobs in each channel.
www.ti.com Kit Operation 6.10 Filters Tab The TLV320AIC32 has a very rich feature set for applying digital filtering to audio signals. This tab controls all of the filter features of the TLV320AIC32. In order to use this tab and plot filter responses correctly, the DAC sample rate must be set properly. Therefore, the clocks must be set up correctly in the software following the discussion in Section 6.8. See Figure 9. Figure 9.
www.ti.com Kit Operation 6.10.1 ADC Highpass Filters The ADC of the TLV320AIC32 can have a high-pass filter enabled, which helps to reduce the effects of DC offsets in the system. This function is enabled as shown in Figure 10. The four options for this setting are disabled, or three different corner frequencies which are based on the ADC sample rate. Figure 10. ADC Highpass Filter Settings 6.10.
www.ti.com Kit Operation Figure 12. Shelf Filters To use these filters, enter the gain desired and the corner frequency. Choose the mode to use (Bass or Treble); the response will be plotted on the Effect Filter Response graph. 6.10.4 EQ Filters EQ, or parametric, filters can be designed on this tab. Enter a gain, bandwidth, and a center frequency (Fc). Either bandpass (positive gain) or band-reject (negative gain) filters can be created. Figure 13.
www.ti.com Kit Operation 6.10.5 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. Figure 14. Analog Simulation Filters 6.10.
www.ti.com Kit Operation 6.10.7 De-emphasis Filters The de-emphasis filters used in the TLV320AIC32 can be programmed as described in the TLV320AIC32 datasheet, using this tab. Enter the coefficients for the de-emphasis filter response desired. While on this tab, the de-emphasis response will be shown on the Effect Filter Response graph; however, note that this response is not included in graphs of other effect responses when on the other filter design tabs. Figure 16.
www.ti.com Kit Operation 6.10.8 User Filters If filter coefficients are known, they can be entered directly on this tab (see Figure 17) for both biquads for both left and right channels. The filter response will not be shown on the Effect Filter Response graph for user filters. Figure 17. User Filters 6.10.9 3D Effect The 3D effect is described in the TLV320AIC32 datasheet. It uses the two biquad sections differently than most other effect filter settings.
www.ti.com Kit Operation To enable the 3D effect, check the 3D Effect On box. The Depth knob controls the value of the 3D Attenuation Coefficient. 6.11 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 output from the DACs. (See Figure 19.) Figure 19. DAC/Line Outputs Tab 6.11.1 DAC Controls On the left side of this tab are controls for the left and right DACs.
www.ti.com Kit Operation Analog audio coming from the DACs is routed to outputs using the Output Path controls in each DAC control panel. The DAC output can be mixed with the analog inputs (LINE2L, LINE2R, PGA_L, PGA_R) and routed to the Line or High Power outputs using the mixer controls for these outputs on this tab (for the line outputs) or on the High Power Outputs tab (for the high power outputs).
www.ti.com Kit Operation Figure 20. Output Stage Configuration Tab The Common Mode Voltage of the outputs may be set to 1.35V, 1.5V, 1.65V, or 1.8V using the Common Mode Voltage control. The Power-On Delay of the output drivers can be set using the corresponding control from 0µs up to 4 seconds. Ramp-Up Step Timing can also be adjusted from 0ms to 4ms. The high power outputs of the TLV320AIC32 can be configured to go to a weak common-mode voltage when powered down.
www.ti.com Kit Operation 6.13 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 Figure 21). Figure 21. High Power Outputs Tab At the left of each output strip is a power button that controls whether the corresponding output is powered up or not.
www.ti.com Kit Operation 6.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.
www.ti.com Kit Operation The File menu (Figure 23) provides some options for working with scripts. The first option, Open Command File..., loads a command file script into the command buffer. This script can then be executed by pressing the Execute Command Buffer button. The second option is Log Script and Results..., which opens a file save dialog box. Choose a location for a log file to be written using this file save dialog.
www.ti.com Kit Operation The data packet consists of the following bytes, shown in Table 8: Table 8. Data Packet Configuration BYTE NUMBER TYPE DESCRIPTION 0 Interface Specifies serial interface and operation. The two values are logically OR'd.
www.ti.com Kit Operation In each case, the TAS1020 will return, in an HID interrupt packet, the following: [0] interface byte | status status: REQ_ERROR 0x80 INTF_ERROR 0x40 REQ_DONE 0x20 for I2C interfaces, the I2C address as sent [1] for SPI interfaces, the read back data from SPI line for transmission of the corresponding byte [2] length as sent [3] for I2C interfaces, the reg address as sent for SPI interfaces, the read back data from SPI line for transmission of the corresponding byte [4..
www.ti.com Kit Operation 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. 6.14.1.1 GPIO Capability The USB-MODEVM has seven GPIO lines. You can 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 9): Table 9.
www.ti.com Kit Operation 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 r w # b d Set interface bus to use Read from the serial control bus Write to the serial control bus Comment Break Delay The first command, i, sets the interface to use for the commands to follow.
www.ti.com EVM Bill of Materials Here is an example of using an SPI device that requires 16-bit register addresses: # 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 w 10 00 00 00 80 00 00 00 45 31 44 FD 40 00 31 C4 w 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.
www.ti.com EVM Bill of Materials Table 10. TLV320AIC32EVM Bill of Materials REFERENCE DESIGNATOR DESCRIPTION MANUFACTURER MFG PART NUMBER R7, R8 0Ω 1/4W 5% chip resistor Panasonic ERJ-8GEY0R00V R5, R6 2.2kΩ 1/4W 5% chip resistor Panasonic ERJ-8GEYJ222V R1, R2, R3 2.7kΩ 1/10W 5% chip resistor Panasonic ERJ-3GEYJ272V R9 100kΩ 1/10W 5% chip resistor Panasonic ERJ-3GEYJ104V R4 Chip resistor Not installed C5, C6, C9–C12 0.
www.ti.com EVM Bill of Materials Table 11. USB-MODEVM Bill of Materials 38 Designators Description Manufacturer Mfg. Part Number R4 10Ω 1/10W 5% chip resistor Panasonic ERJ-3GEYJ100V R10, R11 27.
www.ti.com EVM Bill of Materials Table 11. USB-MODEVM Bill of Materials (continued) Designators Description Manufacturer Mfg. Part Number TP1, TP2, TP3, TP4, TP5, TP6, TP9, TP10, TP11 Miniature test point terminal Keystone Electronics 5000 TP7, TP8 Multipurpose test point terminal Keystone Electronics 5011 J7 USB type B slave connector thru-hole Mill-Max 897-30-004-90-000000 J1, J2, J3, J4, J5, J8 2-position terminal block On Shore Technology ED555/2DS J9 2.
www.ti.com Appendix A Appendix A TLV320AIC32EVM Schematic The schematic diagram is provided as a reference.
1 2 3 4 5 6 Revision History REV JMP5 1 TP10 DIN IOVDD TP19 HPROUT 2 DVDD J9 SW1 TP11 WCLK JMP6 C9 1 WCLK 0.1uF TP12 BCLK BCLK MCLK 3 IN1L IN1L C20 0.1uF 10uF C14 10uF TP13 MCLK 18 24 25 7 32 1 2 3 4 5 TP29 IN2R MICBIAS DRVDD DRVDD AVDD_DAC 26 21 6 9 8 31 TP14 NI R6 2.2K 0 R8 0 SJ-3515-SMT-1 TP8 IN3L IN3R C18 R7 J8 TP7 0.1uF C19 0.1uF RESET LEFT+ TP16 SCL NI TP17 SDA 2 JMP4 C15, C16, and C17 are not installed, but can be used to filter noise.
1 2 3 4 5 6 REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED D D J1 HPLCOM 1 3 5 7 9 11 13 15 17 19 HPRCOM IN1L IN2L A0(-) A1(-) A2(-) A3(-) AGND AGND AGND VCOM AGND AGND J4 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 IN1R IN2R IN3L IN3R MICBIAS 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 JMP9 1 2 RESET DAUGHTER-SERIAL DAUGHTER-ANAL
www.ti.com Appendix B Appendix B USB-MODEVM Schematic The schematic diagram is provided as a reference.
1 2 3 4 6 5 REVISION HISTORY REV IOVDD R5 2.7K 2 5 9 12 1 USB MCK 4 10 USB I2S 13 J6 Q2 ZXMN6A07F EXTERNAL I2C SDA SCL WP 8 A0 A1 A2 U1 VCC C9 1uF 4 1 1 3 5 7 9 11 3 2 44 43 42 41 40 39 37 38 36 35 34 32 R12 3.09K .001uF R10 27.4 R11 C13 47pF C14 47pF R7 2.7K JMP8 1 2 P1.2 P1.1 P1.0 +3.3VD C11 1uF C12 1uF C MOSI SS SCLK RESET 14 VCC J15 1 3 5 7 9 11 3 6 8 11 1Y 2Y 3Y 4Y 7 GND 2 4 6 8 10 12 EXTERNAL SPI USB RST USB SPI P3.5 JMP13 1 2 D2 +3.3VD YELLOW C25 R8 2.
1 2 3 4 5 6 REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED D 1 2 3 D J11 J12 A0(+) A1(+) A2(+) A3(+) A4 A5 A6 A7 REFREF+ 2 4 6 8 10 12 14 16 18 20 +5VA J13A (TOP) = SAM_TSM-105-01-L-DV-P J13B (BOTTOM) = SAM_SSW-105-22-F-D-VS-K DAUGHTER-ANALOG J11A (TOP) = SAM_TSM-110-01-L-DV-P J11B (BOTTOM) = SAM_SSW-110-22-F-D-VS-K +5VA +5VD JMP1 1 2 +VA +5VA DGND +1.8VD +3.3VD -VA -5VA AGND VD1 +5VD 2 4 6 8 10 GPIO0 DGND GPIO1 GPIO2 DGND GPIO3 GPIO4 SCL DGND SDA SCLK SS P3.
www.ti.com Appendix B 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.