0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
TAS3202PAGR

TAS3202PAGR

  • 厂商:

    BURR-BROWN(德州仪器)

  • 封装:

    TQFP64

  • 描述:

    IC AUDIO DSP 64TQFP

  • 数据手册
  • 价格&库存
TAS3202PAGR 数据手册
TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 AUDIO DSP WITH ANALOG INTERFACE Check for Samples: TAS3202 1 Introduction 1.1 Features 1 • High-Quality Audio Performance: 102-dB Analog-to-Digital Converter (ADC)/105-dB Digital-to-Analog Converter (DAC) (Typical) DNR • Two Differential Stereo Analog Inputs Multiplexed to One Stereo Input ADC • One Differential Stereo Output DAC • Two Serial Audio Inputs (Four Channels) and Two Serial Audio Outputs (Four Channels) • 135-MHz Maximum Speed, >2812 Total Processing Cycles Per Sample at 48 kHz (2000 Available for Application Code) • 512×Fs XTAL Input in Master Mode, 512×Fs MCLK_IN in Slave Mode 1.2 • • • • 48-kHz Sample Rate in Clock Master Mode • 44.1-kHz or 48-kHz Sample Rate in Clock Slave Mode • 48-Bit Data Path and 28-Bit Coefficients • 768 Words of 48-Bit Data Memory • 1022 Words of 28-Bit Coefficient Memory • 3K Words of 55-Bit Program RAM • Hardware Single-Cycle Multiplier (28×48) • 5.88K Words of 24-Bit Delay Memory (122.5 ms at 48 kHz) • Data Formats: Left Justified, Right Justified, and I2S • Two I2C Ports for Slave/Master Download • Single 3.3-V Power Supply Applications MP3 Docking Systems Digital Televisions Mini-Component Audio 1.3 Description The TAS3202 is an audio system-on-a-chip (SOC) designed for mini/micro systems, multimedia-speaker, and MP3 player docking systems. It includes analog interface functions: two multiplex (MUX) stereo inputs with one stereo analog-to-digital converter (ADC) and one stereo digital-to-analog converter (DAC) with analog outputs consisting of differential stereo line drivers. Four channels of serial digital audio processing are also provided. The TAS3202 has a programmable audio digital signal processor (DSP) that preserves high-quality audio by using a 48-bit data path, 28-bit filter coefficients, and a single-cycle 28×48-bit multiplier. The programmability feature allows users to customize features in the DSP RAM. The TAS3202 is composed of eight functional blocks: 1. Analog input/mux/stereo ADC 2. Stereo DAC 3. Analog reference system 4. Power supply 5. Clocks, digital PLL, and serial data interface 6. I2C control interface 7. 8051 microcontroller 8. Audio DSP – digital audio processing 1 Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. PRODUCTION DATA information is current as of publication date. Products conform to specifications per the terms of the Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters. Copyright © 2009–2011, Texas Instruments Incorporated TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 DPLL Oscillator 512Fs XTAL www.ti.com Master 8051 Microprocessor Core Master/Slave External RAM 2K MCLK_IN 512Fs Internal RAM 256 Slave Control Registers 8-Bit MCU SCL1/SDA1 SCL2/SDA2 GPIO1/2 Volume Update Code RAM 16K Clock Divider I2C Control Interface Clock LRCLK_IN SCLK_IN Generation DSP Control LRCLK_OUT SCLK_OUT DSP Core Memory Interface Coefficient RAM 1.2K Serial Audio Port SDIN1 SDIN2 Input Cross Bar Mixer Data RAM Output Cross Bar Mixer Data Path Code RAM 3K 256Fs SDOUT1 SDOUT2 1K Upper Mem 768 Lower Mem 128Fs Two Differential Stereo Analog Inputs Stereo ADC Delay Memory 5.8K Legend Clocks Digital Data Stereo DAC Power Supply Differential Stereo Analog Output AVDD DVDD Internal Connection External Connection Analog Data Figure 1-1. Expanded Functional Block Diagram 1.4 (1) 2 Ordering Information TA PLASTIC 64-PIN PQFP (PN) (1) 0°C to 70°C TAS3202PAG For the most current package and ordering information, see the Package Option Addendum at the end of this document, or see the TI web site at www.ti.com. Introduction Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 1 2 .............................................. 1.1 Features .............................................. 1.2 Applications .......................................... 1.3 Description ........................................... 1.4 Ordering Information ................................. Functional Description ................................. 2.1 Analog Input/Mux/Stereo ADC ....................... 2.2 Stereo DAC .......................................... 2.3 Analog Reference System ........................... 2.4 Power Supply ........................................ Introduction 2.5 1 36 1 8.2 2 8.3 4 8.4 4 8.5 4 8.6 4 8.7 4 8.8 5 6 Clock Controls ......................................... 18 Microprocessor Controller .......................... 20 6.3 6.4 7 8.9 8.10 I2C Control Interface ............ 2 General I C Operations ............................. I2C Slave-Mode Operation ......................... I2C Master-Mode Device Initialization .............. 8.11 8.12 9 21 23 25 32 10 36 36 37 38 40 40 41 42 Pin-Related Characteristics of the SDA and SCL I/O Stages for F/S-Mode I 2C-Bus Devices ............. 43 Bus-Related Characteristics of the SDA and SCL I/O Stages for F/S-Mode I 2C-Bus Devices ......... 43 ....................................... ....................................... Clock Control Register (0x00) ...................... Status Register (0x02) .............................. Reset Timing 45 I2C Register Map 46 9.1 47 9.2 9.3 20 Digital Audio Processor (DAP) Arithmetic Unit ............................................................. 7.1 DAP Instructions Set ............................... 34 8.1 Clocks, Digital Phase-Locked Loop (PLL), and Serial Data Interface ................................. 5 8051 Microprocessor Addressing Mode .......................... ............................. Absolute Maximum Ratings ........................ Package Dissipation Ratings ....................... Recommended Operating Conditions .............. Electrical Characteristics ........................... Audio Specifications ................................ Timing Characteristics .............................. Master Clock ........................................ Serial Audio Port, Slave Mode ..................... Serial Audio Port, Master Mode (TAS3202) ........ 1 Algorithm and Software Development Tools for TAS3202 ................................................. 17 6.2 8 DAP Data Word Structure 36 4 6.1 7.2 Electrical Specifications 1 ................................. 6 2.7 8051 Microcontroller ................................. 6 2.8 Audio Digital Signal Processor (DSP) Core ......... 6 Physical Characteristics ............................... 7 3.1 Terminal Assignments ............................... 7 3.2 Terminal Descriptions ................................ 8 3.3 Reset (RESET) Power-Up Sequence .............. 10 3.4 Voltage Regulator Enable (VREG_EN) ............ 10 3.5 Power-On Reset (RESET) .......................... 10 3.6 Power Down (PDN) ................................. 11 3.7 I2C Chip Select (CS0) .............................. 11 3.8 Programmable General-Purpose I/O (GPIO) ....... 11 3.9 Input and Output Serial Audio Ports ................ 11 2.6 3 SLES208B – JUNE 2009 – REVISED MARCH 2011 48 I2C Memory Load Control and Memory Load Data Registers (0x04 and 0x05) ......................... 49 ........ .............................. 9.6 Analog Power Down Control (0x10 and 0x11) ..... 9.7 Analog Input Control (0x12) ........................ 9.8 ADC Dynamic Element Matching (0x13) ........... 9.9 ADC Current Control Select (0x17, 0x18) .......... 9.10 DAC Control (0x1A, 0x1B, 0x1D) ................... 9.11 ADC and DAC Reset (0x1E) ....................... 9.12 ADC Input Gain Control (0x1F) ..................... 9.13 MCLK_OUT Divider (0x21 and 0x22) .............. 9.14 Digital Cross Bar (0x30 to 0x3F) ................... Application Information .............................. 10.1 Schematics ......................................... 10.2 Recommended Oscillator Circuit ................... 9.4 Memory Access Registers (0x06 and 0x07) 50 9.5 Device Version (0x08) 51 51 52 52 53 55 57 57 58 58 61 61 63 34 Contents Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 3 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com 2 Functional Description 2.1 Analog Input/Mux/Stereo ADC These modules allow two differential analog stereo inputs to be sent to one ADC to be converted to digital data. The input multiplexers include a preamplifier. This amplifier is driving the ADC, and it is digitally controlled with changes synchronized with the sample clock of the ADC. Minimal crosstalk between selected channels and unselected channels is maintained. When inputs are not needed, they are configured for minimal noise. Also included in this module is one fully differential oversampled stereo ADC. The ADC is a sigma-delta modulator with 256 times oversampling ratio. Because of the oversampling nature of the audio ADC and integrated digital decimation filter, requirements for analog anti-aliasing filtering are relaxed. Filter performance for the ADC is specified under physical characteristics. 2.2 Stereo DAC This module includes one stereo audio DAC, which consists of a digital interpolation filter, digital sigma-delta modulator, and an analog reconstruction filter. The DAC can operate at a maximum of 48 kHz. The DAC upsamples the incoming data by 128 and performs interpolation filtering and processing on this data before conversion to a stereo analog output signal. The sigma-delta modulator always operates at a rate of 128Fs, which ensures that quantization noise generated within the modulator stays low within the frequency band below Fs/2.4 at all sample rates. The digital interpolation filters for interpolation from Fs to 8Fs are included in the audio DSP upper memory (reserved for analog processing), while interpolation from 8Fs to 128Fs is done in a dedicated hardware sample and hold filter. The TAS3202 includes one stereo line driver output. The line driver is capable of driving up to a 10-kΩ load. The stereo output can be in power-down mode when not used. Popless operation is achieved by conforming to start and stop sequences in the device controller code. 2.3 Analog Reference System This module provides all internal references needed by the analog modules. It also provides bias currents for all analog blocks. External decoupling capacitors are needed along with an external 1%-tolerance resistor to set the internal bias currents. It includes a band-gap reference and several voltage buffers and a tracking current reference. The TAS3202 also uses an internally generated mid-rail supply that is used to rereference all analog inputs and is present on all analog outputs. VMID is the analog mid-rail supply and can be used when buffered externally to rereference the analog inputs and outputs. The voltage reference REXT requires a 22-kΩ 1% resistor to ground. The reference system can be powered down separately. 2.4 Power Supply The power supply contains supply regulators that provide analog and digital regulated power for various sections of the TAS3202. Only one external 3.3-V supply is required. All other voltages are generated on chip from the external 3.3-V supply. 4 Functional Description Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 2.5 SLES208B – JUNE 2009 – REVISED MARCH 2011 Clocks, Digital Phase-Locked Loop (PLL), and Serial Data Interface These modules provide the timing and serial data interface for the TAS3202. The clocking system for the device is illustrated in Figure 2-1. The TAS3202 can be either clock master or clock slave depending on the configuration. However, clock master mode is the primary mode of operation. DPLL ×5.5 135-MHz DCLK Microprocessor Clock ÷4 MCLK_OUT ÷2 Programmable Divider MCLK_OUT2 Programmable Divider MCLK_OUT3 From DAP Parallel Data 24.576 MHz 512Fs Crystal MCLKI SDIN Oscillator ÷2 24.576 MHz 256Fs ÷2 128Fs ÷2 64Fs ÷64 Serial Audio Port Transmitter LRCLK Re-Creation SDOUT To DAP Parallel Data Serial Audio Port Receiver LRCLK_OUT SCLK_OUT Master/ Slave Figure 2-1. Clock Generation DISCLAIMER: Analog performance is not ensured in slave mode, as the analog performance depends upon the quality of the MCLK_IN. The TAS3202 is not robust with respect to MCLK_IN errors (glitches, etc.); if the MCLK_IN frequency changes under operation, the device must be reset. I2C clock master operation: • External 512Fs crystal oscillator is used to generate all internal clocks plus all clocks for external asynchronous sampling rate converter (ASRC) output (if external ASRC is present). • LRCLK_OUT is fixed at 48 kHz (Fs). • SCLK_OUT is fixed at 64Fs. • MCLK_OUT is fixed at 256Fs. In master mode, the external ASRC converts incoming serial audio data to 48-kHz sample rate synchronous to the internally generated serial audio data clocks. • In master mode, all clocks generated for the TAS3202 are derived from the 24.576-MHz crystal. The internal oscillator drives the crystal and generates the main clock to digital PLL (DPLL), master clock outputs, 256Fs clock to the ADC, and 128Fs clock to the DAC. The DPLL generates internal clocks for the DAP and the 8051 microprocessor. Functional Description Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 5 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com I2S clock slave operation: • MCLK_IN (512Fs), SCLK_IN (64Fs), and LRCLK_IN (Fs) are supplied externally. Clock generation is similar to the master mode with the exception of the ADC and the DAC blocks. MCLK_IN signal is divided down and sent directly to the ADC and the DAC blocks. Therefore, audio performance depends on the MCLK_IN signal. • DSP, MCU, and I2C clocks are still derived from external crystal oscillator. • MCLK_OUT, SCLK_OUT, and LRCLK_OUT are passed through from clock inputs (MCLK_IN, SCLK_IN, and LRCLK_IN). • Internal analog clocks for ADC and DACs are derived from external MCLK_IN input, so analog performance depends on MCLK_IN quality (i.e., jitter, phase noise, etc.). Degradation in analog performance is to be expected. • Sample rate change/clock change – Sample rate change on the fly should be handled by the customer system controller. The TAS3202 device does not include any internal clock error or click/pop detection/management. – Sample rate dependent DAP filter coefficients must be uploaded by customer system controller on changing sample rate. In I2S clock slave mode, all incoming serial audio data must be synchronous to an incoming LRCLK_IN of 44.1 kHz or 48 kHz. 2.6 I2C Control Interface The TAS3202 has an I2C slave-only interface (SDA1 and SCL1) for receiving commands and providing status to the system controller, and a separate master I2C interface (SDA2 and SCL2) to download programs and data from external memory, such as an EEPROM. See Section 6 for more information. I2C interface is not 5-V tolerant. 2.7 8051 Microcontroller The 8051 microcontroller receives and distributes I2C write data. It retrieves and outputs data as requested from the I2C bus controller. It performs most processing tasks requiring multi-frame processing cycles. The microprocessor has its own data RAM for storing intermediate values and queuing I2C commands, a fixed boot program ROM, and a programmable RAM. The microprocessor's boot program cannot be altered. The microcontroller has specialized hardware for an I2C master and slave interface operation, volume updates, and a programmable interval-timer interrupt. 2.8 Audio Digital Signal Processor (DSP) Core The audio DSP core arithmetic unit is a fixed-point computational engine consisting of an arithmetic unit and data and coefficient memory blocks. The audio processing structure, which can include mixers, multiplexers, volume, bass and treble, equalizers, dynamic range compression, or third-party algorithms, is running in the DAP. The 8051 microcontroller has access to digital audio processor (DAP) resources such as coefficient RAM and is able to support the DAP with certain tasks; for example, a volume ramp. The primary blocks of the audio DSP core are: • 48-bit data path with 76-bit accumulator • DSP controller • Memory interface • Coefficient RAM (1K×28) • Data RAM – 24-bit upper memory (1K×24), 48-bit lower memory (768×48) • Program RAM (3K×55) 6 Functional Description Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 3 Physical Characteristics TAS3202 SDIN1 SDIN2 Differential Analog In Input SAP 2 4 2 Stereo 2 ADC 2 Digital Audio Processor Core SDOUT1 SDOUT2 4 Output SAP 48-Bit Data Path 28-Bit Coefficients 76-Bit MAC 2 Stereo DAC 2 Differential Analog Out 3K Code RAM 1K Upper Data RAM 768 Lower Data RAM 1.2K Coeff. RAM Boot ROM MCLK_IN LRCLK_IN SCLK_IN MCLK_OUTx LRCLK_OUT SCLK_OUT 3 I2C Port #1 I2C Port #2 3.1 Volume Update PLL and Clock Control 8051 MCU 8-Bit Microprocessor 256 IRAM 2K ERAM 16K Code RAM 10K Code ROM I2C Interface Terminal Assignments 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 I2C2_SCL I2C2_SDA RESET SDIN1/GPIO3 SDIN2/GPIO4 SCLK_IN LRCLK_IN DVDD3 DVSS3 VR_DIG SDOUT1 SDOUT2 SCLK_OUT LRCLK_OUT RESERVED VREG_EN PAG PACKAGE (TOP VIEW) 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 MCLK_OUT1 MCLK_OUT2 MCLK_OUT3 DVDD2 DVSS2 MCLK_IN XTAL_OUT XTAL_IN AVDD3 VR_ANA AVSS_ESD AVSSO AOUTRP AOUTRM AOUTLP AOUTLM AIN2LM AIN2RP AIN2RM NC NC NC NC AVDD1 VMID VREF REXT AVDD2 NC NC NC NC 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 I2C1_SCL I2C1_SDA GPIO2 GPIO1 MUTE CS0 PDN DVSS1 DVDD1 VR_PLL AVSSI AIN1LP AIN1LM AIN1RP AIN1RM AIN2LP NC – No internal connection Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 7 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 3.2 Terminal Descriptions TERMINAL NAME NO. INPUT/ OUTPUT (1) PULLUP/ PULLDOWN (2) AIN1LM 13 Analog input Pull to VMID (3) AIN1LP 12 Analog input AIN1RM 15 Analog input AIN1RP 14 Analog input AIN2LM 17 Analog input AIN2LP 16 Analog input DESCRIPTION Analog input, channel 1, left, – input Analog input, channel 1, left, + input Pull to VMID (3) Analog input, channel 1, right, – input Analog input, channel 1, right, + input Pull to VMID (3) Analog input, channel 2, left, – input Analog input, channel 2, left, + input Pull to VMID (3) AIN2RM 19 Analog input AIN2RP 18 Analog input Analog input, channel 2, right, – input Analog input, channel 2, right, + input AOUTLM 33 Analog output Analog output, channel 1, left, – output AOUTLP 34 Analog output Analog output, channel 1, left, + output AOUTRM 35 Analog output Analog output, channel 1, right, – output AOUTRP 36 Analog output Analog output, channel 1, right, + output AVDD1 24 Power 3.3-V analog power supply. This pin must be decoupled according to good design practices. AVSS1 11 Power Analog supply ground AVDD2 28 Power 3.3-V analog power supply. This pin must be decoupled according to good design practices. AVSS2 37 Power Analog supply ground AVDD3 40 Power 3.3-V analog power supply. This pin must be decoupled according to good design practices. AVSS3 38 Power Analog supply ground CS0 6 Digital input DVDD1 9 Power 3.3-V digital power supply. This pin must be decoupled according to good design practices. DVSS1 8 Power Digital supply ground DVDD2 45 Power 3.3-V digital power supply. This pin must be decoupled according to good design practices. DVSS2 44 Power Digital supply ground DVDD3 57 Power 3.3-V digital power supply. This pin must be decoupled according to good design practices. DVSS3 56 Power Digital supply ground GPIO1 4 Digital I/O General-purpose input/output GPIO2 3 Digital I/O General-purpose input/output I2C1_SCL 1 Digital I/O Slave I2C serial clock input/output. Normally connected to the system microprocessor. I2C1_SDA 2 Digital I/O Slave I2C serial control data interface input/output. Normally connected to system micro. I2C2_SCL 64 Digital output I2C2_SDA 63 Digital I/O LRCLK_IN 58 Digital input LRCLK_OUT 51 Digital output MCLK_IN 43 Digital input MCLK_OUT1 48 Digital output (1) (2) (3) 8 www.ti.com I2C Chip select Master I2C serial clock output. Normally connected to EEPROM. Master I2C serial control data interface input/output. Normally connected to EEPROM. Pulldown Serial data input left/right clock for I2S interface Serial data output left/right clock for I2S interface Pulldown MCLK input is used in slave mode. MCLK_IN must be locked to LRCLK_IN, and the frequency is 512Fs (24.576 MHz for 48-kHz Fs). 12.288-MHz clock output. This output is valid even when reset is LOW. I = input; O = output All pullups are 20-μA weak pullups, and all pulldowns are 20-μA weak pulldowns. The pullups and pulldowns are included to ensure proper input logic levels if the terminals are left unconnected (pullups → logic 1 input; pulldowns → logic 0 input). Devices that drive inputs with pullups must be able to sink 20 μA while maintaining a logic-0 drive level. Devices that drive inputs with pulldowns must be able to source 20 μA while maintaining a logic-1 drive level. Pull to VMID when analog input is in single-ended mode. Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 TERMINAL NAME NO. INPUT/ OUTPUT (1) MCLK_OUT2 47 Digital output The frequency for this clock is 6.144 MHz/(n+1), where n is programable in the range 0 to 255. Default value is 1.024 MHz. This output is valid even when reset is LOW. MCLK_OUT3 46 Digital output The frequency for this clock is 512 kHz/(n+1) where n is programmable in the range 0 to 255. Default value is 512 kHz. This output is valid even when reset is LOW. MUTE 5 Digital input NC 20–23, 29–32 PDN 7 Digital input RESERVED 50 N/A Pulldown RESET 62 Digital input Pullup REXT 27 Analog output SCLK_IN 59 Digital input SCLK_OUT 52 Digital output SDIN1/GPIO3 61 Digital I/O Pullup Serial data input 1 for I2S interface or programmable for GPIO #3 SDIN2/GPIO4 60 Digital I/O Pullup Serial data input 2 for I2S interface or programmable for GPIO #4 SDOUT1 54 Digital output Serial data output 1 for I2S interface SDOUT2 53 Digital output Serial data output 2 for I2S interface VMID 25 Analog output Analog mid supply reference. This pin must be decoupled with a 0.1-μF low-ESR capacitor and an external 10-μF filter cap. (4) VR_ANA 39 Power Voltage reference for analog supply. A pinout of the internally regulated 1.8-V power. A 0.1-μF low ESR capacitor and a 4.7-μF filter capacitor must be connected between this terminal and AVSS_PLL. This terminal must not be used to power external devices. (4) VR_DIG 55 Power Voltage reference for digital supply. A pinout of the internally regulated 1.8-V power. A 0.1-μF low ESR capacitor and a 4.7-μF filter capacitor must be connected between this terminal and DVSS. This terminal must not be used to power external devices. (4) VR_PLL 10 Power Voltage reference for DPLL supply. A pinout of internally regulated 1.8-V power supply. A 0.1-μF low-ESR capacitor and a 4.7-μF filter capacitor must be connected between this terminal and DVSS. This terminal must not be used to power external devices. (4) VREF 26 Analog output VREG_EN 49 Digital input Voltage regulator enable. When enabled LOW, this input causes the power-supply regulators to be enabled. XTAL_IN 41 Digital input Crystal input. A 24.576-MHz (512Fs) crystal should be used. XTAL_OUT 42 Digital output (4) PULLUP/ PULLDOWN (2) Pulldown DESCRIPTION This pin can be programmed by the application firmware to mute the TAS3202. It has no default functionality No connect This pin can be programmed by the application firmware to power down the TAS3202. Default operation is to stop the DSP. Connect to ground. System reset input, active low. A system reset is generated by applying a logic LOW to this terminal. Requires a 22-kΩ (1%) external resistor to ground to set analog currents. Trace capacitance must be kept low. Serial data input bit clock for I2S interface Serial data output bit clock for I2S interface Bandgap output. A 0.1-μF low ESR capacitor should be connected between this terminal and AVSS_PLL. This terminal must not be used to power external devices. (4) Crystal output If desired, low ESR capacitance values can be implemented by paralleling two or more ceramic capacitors of equal value. Paralleling capacitors of equal value provide an extended high-frequency supply decoupling. Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 9 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 3.3 www.ti.com Reset (RESET) Power-Up Sequence The RESET pin is an asynchronous control signal that restores all TAS3202 components to the default configuration. When a reset occurs, the audio DSP core is put into an idle state and the 8051 starts initialization. A valid XTAL_IN must be present when clearing the RESET pin to initiate a device reset. A reset can be initiated by applying a logic 0 on RESET. As long as RESET is held LOW, the device is in the reset state. During reset, all I2C and serial data bus operations are ignored. The I2C interface SCL and SDA lines go into a high-impedance state and remain in that state until device initialization has completed. The rising edge of the reset pulse begins the initialization housekeeping functions of clearing memory and setting the default register values. Once these are complete, the TAS3202 enables its master I2C interface and disables its slave I2C interface. Using the master interface, the TAS3202 automatically tests to see if an external I2C EEPROM is at address 1010x. The value x can be chip selects, other information, or don't care, depending on the EEPROM selected. If a memory is present and it contains the correct header information and one or more blocks of program/memory data, the TAS3202 begins to load the program, coefficient and/or data memories from the external EEPROM. If an external EEPROM is present, the download is considered complete when an end-of-program header is read by the TAS3202. At this point, the TAS3202 disables the master I2C interface, enables the slave I2C interface, and starts normal operation. After a successful download, the micro program counter is reset, and the downloaded micro and DAP application firmware controls execution. If no external EEPROM is present or if an error occurs during the EEPROM read, TAS3202 disables the master I2C interface, enables the slave I2C interface, and proceeds to boot the device according to the ROM. In this default ROM configuration, the TAS3202 streams audio from input to output if the GPIO1 pin is asserted logic low on reset; if the GPIO1 pin is asserted logic high, the ADC and the DAC are muted. NOTE The master and slave I2C interfaces do not operate simultaneously. 3.4 Voltage Regulator Enable (VREG_EN) Setting the VREG_EN high shuts down all voltage regulators in the device. Internal register settings are lost in this power-down mode. A full power-up/reset/program-load sequence must be completed before the device is operational. 3.5 Power-On Reset (RESET) On power up, it is recommended that the TAS3202 RESET be held low until DVDD has reached 3.3 V. This can be done by programming the system controller or by using an external RC delay circuit. The 1-kΩ and 1-μF values provide a delay of approximately 200 μs. The values of R and C can be adjusted to provide other delay values as necessary. 10 Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 3.6 SLES208B – JUNE 2009 – REVISED MARCH 2011 Power Down (PDN) The TAS3202 supports a number of power-down modes. PDN can be used to put the device into power-saving standby mode. In the default ROM configuration, applying a logic low on this pin stops all clocks, powers down all analog circuitry, and ramps down volume for all digital inputs. This mode is used to minimize power consumption while preserving register settings. If the TAS3202 is successfully booted from an external EEPROM, the functionality of the pin is defined by the user's application firmware. Individual power down DAC and ADC – Both the DAC and the ADC can be powered down individually. This feature is made available to the board controller via the I2C interface. Power down of analog reference – The analog reference can be powered down if all DAC and ADCs are powered down. This feature is made available to the board controller via the I2C interface. 3.7 I2C Chip Select (CS0) The TAS3202 has a control to specify the slave and master I2C address. This control permits up to two TAS3202 devices to be placed in a system without external logic. GPIO pins are level sensitive. They are not edge triggered. See Section 6.3 for a complete description of this pin. 3.8 Programmable General-Purpose I/O (GPIO) The TAS3202 has four general purpose input/output pins that can be programed by the user's application firmware. GPIO1 and GPIO2 pins are single-function I/O pins. Upon power up, GPIO1 is an input. If there is an unsuccessful boot from an external EEPROM and GPIO1 is pulled high externally, the DAC output is disabled. If there is an unsuccessful boot from an external EEPROM and GPIO1 is pulled low externally, the DAC output is enabled. If there is a successful boot from an external EEPROM, GPIO1 will be configured as an output and be driven logic low by the TAS3202 when the user's application code is running. GPIO3 and GPIO4 are dual function I/O pins. The functionality of GPIO pins must be defined by the user's application code. Mute and power-down functions have to be programmed in the EEPROM application code. These are general-purpose input pins and are suggested for Mute and Powerdown functions. However, these settings must be defined by the user's application code. 3.8.1 GPIO Pin Function After Device is Programmed Once the TAS3202 has been programmed, either through a successful boot load or via slave I2C download, the operation of GPIO is defined by ther user's application code. 3.9 Input and Output Serial Audio Ports Serial data is input on SDINx on the TAS3202, allowing up to four channels of digital audio input. The TAS3202 supports serial data in 16-, 20-, or 24-bit data in left, right, and I2S serial data formats. The parameters for the clock and serial data interface input formats are I2C configurable. Serial data is output on SDOUTx, allowing up to four channels of digital audio output. SDOUTx port supports the same formats as the SDINx port. Output data rate is the same data rate as the input. The SDOUTx output uses the SCLK_OUT and LRCLK_OUT signals to provide synchronization. The TAS3202 supported data formats are listed in Table 3-1. Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 11 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com Table 3-1. Supported Data Formats INPUT SAP (SDIN) OUTPUT SAP (SDOUT) 2-channel I2S 2-channel I2S 2-channel left-justified 2-channel left-justified 2-channel right-justified 2-channel right-justified Table 3-2. Serial Data Input and Output Formats MODE 2-channel INPUT CONTROL IM[3:0] OUTPUT CONTROL OM[3:0] 0000 0001 0010 SERIAL FORMAT WORD LENGTHS 0000 Left-justified 16, 20, 24 0001 Right-justified 16, 20, 24 0010 2 16, 20, 24 I S DATA RATES (kHz) MAXIMUM SCLK (MHz) 32–48 3.072 Output Port Word Size Input Port Word Size Î Î Î Î 15 0x00 31 S Slave Addr Ack Subaddr Ack 24 xxxxxxxx 23 Ack 14 13 XX 16 xxxxxxxx 11 10 8 IW[2:0] OW[2:0] DWFMT (Data Word Format) 15 Ack 8 7 DWFMT Ack 7 4 0 IOM Ack 3 0 IM[3:0] OM[3:0] Input Port Format Output Port Format R0003-01 Figure 3-1. Serial Data Controls Table 3-3. Serial Data Input and Output Data Word Sizes 12 IW1, OW1 IW0, OW0 FORMAT 0 0 Reserved 0 1 16-bit data 1 0 20-bit data 1 1 24-bit data Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Following a reset, ensure that the clock register (0x00) is written before performing volume, treble, or bass updates. Commands to reconfigure the SAP can be accompanied by mute and unmute commands for quiet operation. However, care must be taken to ensure that the mute command has completed before the SAP is commanded to reconfigure. Similarly, the TAS3202 should not be commanded to unmute until after the SAP has completed a reconfiguration. The reason for this is that an SAP configuration change while a volume or bass or treble update is taking place can cause the update not to be completed properly. When the TAS3202 is transmitting serial data, it uses the negative edge of SCLK to output a new data bit. The TAS3202 samples incoming serial data on the rising edge of SCLK. 3.9.1 2-Channel I 2S Timing In 2-channel I2S timing, LRCLK is LOW when left-channel data is transmitted and HIGH when right-channel data is transmitted. SCLK is a bit clock running at 64 × fS and clocks in each bit of the data. There is a delay of one bit clock from the time the LRCLK signal changes state to the first bit of data on the data lines. The data is written most-significant bit (MSB) first and is valid on the rising edge of the bit clock. The TAS3202 masks unused trailing data-bit positions. 2-Channel I2S (Philips Format) Stereo Input/Output 32 Clks LRCLK (Note Reversed Phase) 32 Clks Left Channel Right Channel SCLK SCLK MSB 24-Bit Mode 23 22 LSB 9 8 5 4 5 4 1 0 1 0 1 0 MSB LSB 23 22 9 8 5 4 19 18 5 4 1 0 15 14 1 0 1 0 20-Bit Mode 19 18 16-Bit Mode 15 14 T0034-04 2 Figure 3-2. I S 64fS Format Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 13 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 3.9.2 www.ti.com 2-Channel Left-Justified Timing In 2-channel left-justified timing, LRCLK is HIGH when left-channel data is transmitted and LOW when right-channel data is transmitted. SCLK is a bit clock running at 64 × fS, which clocks in each bit of the data. The first bit of data appears on the data lines at the same time LRCLK toggles. The data is written MSB first and is valid on the rising edge of the bit clock. The TAS3202 masks unused trailing data-bit positions. 2-Channel Left-Justified Stereo Input 32 Clks 32 Clks Left Channel Right Channel LRCLK SCLK SCLK MSB 24-Bit Mode 23 22 LSB 9 8 5 4 5 4 1 0 1 0 1 0 MSB LSB 23 22 9 8 5 4 19 18 5 4 1 0 15 14 1 0 1 0 20-Bit Mode 19 18 16-Bit Mode 15 14 T0034-02 Figure 3-3. Left-Justified 64fS Format 14 Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 3.9.3 SLES208B – JUNE 2009 – REVISED MARCH 2011 2-Channel Right-Justified Timing In 2-channel right-justified (RJ) timing, LRCLK is HIGH when left-channel data is transmitted and LOW when right-channel data is transmitted. SCLK is a bit clock running at 64 × fS which clocks in each bit of the data. The first bit of data appears on the data lines eight bit-clock periods (for 24-bit data) after LRCLK toggles. In the RJ mode, the last bit clock before LRCLK transitions always clocks the least-significant bit (LSB) of data. The data is written MSB first and is valid on the rising edge of the bit clock. The TAS3202 masks unused leading data-bit positions. 2-Channel Right-Justified (Sony Format) Stereo Input 32 Clks 32 Clks Left Channel Right Channel LRCLK SCLK SCLK MSB 24-Bit Mode LSB 23 22 19 18 15 14 1 0 19 18 15 14 1 0 15 14 1 0 MSB LSB 23 22 19 18 15 14 1 0 19 18 15 14 1 0 15 14 1 0 20-Bit Mode 16-Bit Mode T0034-03 Figure 3-4. Right-Justified 64fS Format 3.9.4 SAP Input to SAP Output—Processing Flow All SAP data format options other than I2S result in a two-sample delay from input to output. If I2S formatting is used for both the input SAP and the output SAP, the polarity of RCLK must be inverted. However, if I2S format conversions are performed between input and output, the delay becomes either 1.5 samples or 2.5 samples, depending on the processing clock frequency selected for the audio DSP core relative to the sample rate of the incoming data. The I2S format uses the falling edge of LRCLK to begin a sample period, whereas all other formats use the rising edge of LRCLK to begin a sample period. This means that the input SAP and audio DSP core operate on sample windows that are 180° out of phase with respect to the sample window used by the output SAP. This phase difference results in the output SAP outputting a new data sample at the midpoint of the sample period used by the audio DSP core to process the data. If the processing cycle completes all processing tasks before the midpoint of the processing sample period, the output SAP outputs this processed data. However, if the processing time extends past the midpoint of the processing sample period, the output SAP outputs the data processed during the previous processing sample period. In the former case, the delay from input to output is 1.5 samples. In the latter case, the delay from input to output is 2.5 samples. Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 15 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com The delay from input to output can thus be either 1.5 or 2.5 sample times when data format conversions are performed that involve the I2S format. However, which delay time is obtained for a particular application is determinable and fixed for that application, providing care is taken in the selection of MCLK_IN/XTAL_IN with respect to the incoming sample clock, LRCLK. 16 Physical Characteristics Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 4 Algorithm and Software Development Tools for TAS3202 The TAS3202 algorithm and software development tool set is a combination of classical development tools and graphical development tools. The tool set is used to build, debug, and execute programs in the audio DSP section of the TAS3202. Classical development tooling includes text editors, compilers, assemblers, simulators, and source-level debuggers. The 8051 can be programmed exclusively in ANSI C. The 8051 tool set is a commercially off-the-shelf (COTS) tool set, with modifications as specified in this document. The 8051 tool set is a complete environment with an IDE, editor, compiler, debugger, and simulator. The audio DSP core is programmed exclusively in assembly. The audio DSP tool set is a complete environment with an IDE, context-sensitive editor, assembler, and simulator/debugger. Graphical development tooling provides a means of programming the audio DSP core through a graphical drag-and-drop interface using modular audio software components from a component library. The graphical tooling produces audio DSP assembly. The classical tools can also be used to produce the executable code. Copyright © 2009–2011, Texas Instruments Incorporated Algorithm and Software Development Tools for TAS3202 Submit Documentation Feedback Product Folder Link(s): TAS3202 17 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com 5 Clock Controls Clock management for the TAS3202 consists of two control structures: • Master clock management – Oversees the selection of the clock frequencies for the 8051 microprocessor, the I2C controller, and the audio DSP core – The master clock (MCLK_IN or XTAL_IN) is the source for these clocks. – In most applications, the master clock drives an on-chip digital phase-locked loop (DPLL), and the DPLL output drives the microprocessor and audio DSP clocks. – Also available is the DPLL bypass mode, in which the high-speed master clock directly drives the microprocessor and audio DSP clocks. • Serial audio port (SAP) clock management – Oversees SAP master/slave mode – Controls output of SCLKOUT, and LRCLK in the SAP master mode Input pin MCLK_IN or XTAL_IN provides the master clock for the TAS3202. Within the TAS3202, these two inputs are combined by an OR gate and, thus, only one of these two sources can be active at any one time. The source that is not active must be logic 0. The TAS3202 only supports dynamic sample-rate changes between any of the supported sample frequencies when a fixed-frequency master clock is provided. During dynamic sample-rate changes, the TAS3202 remains in normal operation and the register contents are preserved. To avoid producing audio artifacts during the sample-rate changes, a volume or mute control can be included in the application firmware that mutes the output signal during the sample-rate change. The fixed-frequency clock can be provided by a crystal attached to XTAL_IN and XTAL_OUT or an external 3.3-V fixed-frequency TTL source attached to MCLK_IN. When the TAS3202 is used in a system in which the master clock frequency (fMCLK ) can change, the TAS3202 must be reset during the frequency change. In these cases, the procedure shown in Figure 5-1 should be used. 18 Clock Controls Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Enable Mute and Wait for Completion RESET Pin = Low Change fMCLK Are Clocks Stable? No Yes RESET Pin = High After TAS3202 Initializes, Re-initialize 2 I C Registers Figure 5-1. Master Clock Frequency (fMCLK) Change Procedure When the serial audio port (SAP) is in the master mode, the SAP uses the XTAL_IN master clock to drive the serial port clocks SCLK_OUT and LRCLK. When the SAP is in the slave mode, MCLK_IN, SCLK_IN, and LRCLK_IN are input clocks. SCLK_OUT and LRCLK_OUT are derived from SCLK_IN and LRCLK_IN, respectively. See Clock Register (0x00), Section 9.1, for information on programming the clock register. Table 5-1. TAS3202 MCLK and LRCLK Common Values (MCLK = 24.576 MHz or MCLK = 22.579 MHz) FS SAMPLE RATE (kHz) CH PER SDIN MCLK/ LRCLK RATIO (× fS) 44.1 2 512 22.579 64 48 2 256 24.576 64 MCLK FREQ (MHz) SCLKIN RATE (× fS) SCLK_IN FREQ (MHz) SCLK_OUT RATE (× fS) CH PER SDOUT LRCLK (FS) PLL MULTIPLI ER FDSPCLK (MHz) fDSPCLK/fS 2.822 64 2 64 5.5 124.2 2816 3.072 64 2 64 5.5 135.2 2816 N/A 64 2 64 5.5 135.2 2816 Slave Mode, 2 Channels In, 2 Channels Out Master Mode, 2 Channels In, 2 Channels Out 48 2 256 24.576 N/A Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 19 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com 6 Microprocessor Controller The 8051 microprocessor receives and distributes I2C write data, retrieves and outputs to the I2C bus controllers the required I2C read data, and participates in most processing tasks requiring multiframe processing cycles. The microprocessor has its own data RAM for storing intermediate values and queuing I2C commands, a fixed boot-program ROM, and a program RAM. The microprocessor boot program cannot be altered. The microprocessor controller has specialized hardware for I2C master and slave interface operation, volume updates, and a programmable interval timer interrupt. The TAS3202 has a slave-only I2C interface that is compatible with the Inter IC (I2C) bus protocol and supports both 100-kbps and 400-kbps data-transfer rates for multiple 4-byte write and read operations (maximum is 20 bytes). The slave I2C control interface is used to program the registers of the device and to read device status. The TAS3202 also has a master-only I2C interface that is compatible with the I2C bus protocol and supports 375-kbps data transfer rates for multiple 4-byte write and read operations (maximum is 20 bytes). The master I2C interface is used to load program and data from an external I2C EEPROM. Once the microprocessor program memory has been loaded, it cannot be updated until the TAS3202 has been reset. The master and slave I2C ports do not operate simultaneously. When acting as an I2C master, the data transfer rate is fixed at 375 kHz, assuming MCLK_IN or XTAL_IN = 24.576 MHz. When acting as an I2C slave, the data transfer rate is determined by the I2C master device on the bus. The I2C communication protocol for the I2C slave mode is shown in Figure 6-1. Start (By Master) Read or Write (By Master) Stop (By Master) Slave Address (By Master) S 0 1 1 0 1 Data Byte (By Transmitter) C S 0 0 R / W A C K M S B Data Byte (By Transmitter) L S B A C K M S B L S B A C K S (1) Acknowledge (By TAS3202) MSB SDA Acknowledge (By Receiver) MSB-1 MSB-2 Acknowledge (By Receiver) LSB SCL Start Condition SDA ↓While SCL = 1 Stop Condition SDA ↑While SCL = 1 Figure 6-1. I2C Slave-Mode Communication Protocol 6.1 8051 Microprocessor Addressing Mode The 256 bytes of internal data memory address space is accessible using indirect addressing instructions (including stack operations). However, only the lower 128 bytes are accessible using direct addressing. The upper 128 bytes of direct address Data Memory space are used to access Extended Special Function Registers (ESFRs). 20 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 6.1.1 SLES208B – JUNE 2009 – REVISED MARCH 2011 Register Banks There are four directly addressable register banks, only one of which may be selected at one time. The register banks occupy Internal Data Memory addresses from 00 hex to 1F hex. 6.1.2 Bit Addressing The 16 bytes of Internal Data Memory that occupy addresses from 20 hex to 2F hex are bit addressable. SFRs that have addresses of the form 1XXXX000 binary are also bit addressable. 6.1.3 External Data Memory External data memory occupies a 2K × 8 address space. This space contains the ESFRs. The ESFRs permit access and control of the hardware features and internal interfaces of the TAS3202. 6.1.4 Extended Special Function Registers (ESFRs) ESFRs provide signals needed for the M8051 to control the different blocks in the device. ESFR is an extension to the M8051. Figure 6-2 shows how these registers are arranged. 8051 MCU Internal Data Memory Bus DESTIN_DO DESTIN_A Address Decoder SFRWE D Control Out D WE WE CCLK CCLK SFRWA ESFRDI Control In CCLK Figure 6-2. ESFRs 6.1.5 Memory-Mapped Registers for DAP Data Memory The following memory mapped registers are used for communication with the DAP. Table 6-1. Memory-Mapped Registers ADDRESS REGISTER COMMENT 0x0300 Dither Seed Sets the dither seed value 0x0301 PC Start Sets the starting address of the DAP 0x0302 Reserved Reserved NOTE TAS3202 has the same memory mapped registers distinction of upper and lower memory for these registers. 6.2 General I2C Operations The I2C bus employs two signals, SDA (data) and SCL (clock), to communicate between integrated circuits in a system. Data is transferred on the bus serially one bit at a time. The address and data are transferred in byte (8-bit) format with the MSB transferred first. In addition, each byte transferred on the Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 21 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com bus is acknowledged by the receiving device with an acknowledge bit. Each transfer operation begins with the master device driving a start condition on the bus and ends with the master device driving a stop condition on the bus. The bus uses transitions on the data terminal (SDA) while the clock is HIGH to indicate a start and stop conditions. A HIGH-to-LOW transition on SDA indicates a start, and a LOW-to-HIGH transition indicates a stop. Normal data bit transitions must occur within the low time of the clock period. The master generates the 7-bit slave address and the read/write (R/W) bit to open communication with another device and then waits for an acknowledge condition. The slave holds SDA LOW during acknowledge clock period to indicate an acknowledgement. When this occurs, the master transmits the next byte of the sequence. Each device is addressed by a unique 7-bit slave address plus R/W bit (one byte). All compatible devices share the same signals via a bidirectional bus using a wired-AND connection. An external pullup resistor must be used for the SDA and SCL signals to set the HIGH level for the bus. There is no limit on the number of bytes that can be transmitted between start and stop conditions. When the last word transfers, the master generates a stop condition to release the bus. Figure 6-3 shows the TAS3202 read and write operation sequences. As shown in Figure 6-3, an I2C read transaction requires that the master device first issue a write transaction to give the TAS3202 the subaddress to be used in the read transaction that follows. This subaddress assignment write transaction is then followed by the read transaction. For write transactions, the subaddress is supplied in the first byte of data written, and this byte is followed by the data to be written. For I2C write transactions, the subaddress must always be included in the data written. There cannot be a separate write transaction to supply the subaddress, as was required for read transactions. If a subaddress-assignment-only write transaction is followed by a second write transaction supplying the data, erroneous behavior results. The first byte in the second write transaction is interpreted by the TAS3202 as another subaddress replacing the one previously written. I2C READ TRANSACTION TAS3202 Subaddress (By Master) Data (By TAS3202) TAS3202 Address Data (By TAS3202) TAS3202 Address Acknowledge (By TAS3202) Acknowledge (By TAS3202) Acknowledge (By TAS3202) I2C WRITE TRANSACTION TAS3202 Subaddress (By Master) TAS3202 Address Acknowledge (By TAS3202) Acknowledge (By TAS3202) Acknowledge (By TAS3202) Acknowledge (By TAS3202) Acknowledge (By TAS3202) Figure 6-3. I2C Subaddress Access Protocol 22 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 6.3 SLES208B – JUNE 2009 – REVISED MARCH 2011 I2C Slave-Mode Operation The I2C slave mode is the mode that is used to change configuration parameters during operation and to perform program and coefficient downloads from a master device. The coefficient download operation in slave mode can be used to replace the I2C master-mode EEPROM download. The TAS3202 supports both random and sequential I2C transactions. The TAS3202 I2C slave address is 011010xy, where the first six bits are the TAS3202 device address and bit x is CS0, which is set by the TAS3202 internal microprocessor at power up. Bit y is the R/W bit. The pulldown resistance of CS0 creates a default 00 address when no connection is made to the pin. Table 6-1 and Table 6-3 show all the legal addresses for I2C slave and master modes. The multiword transfers always store first word on the bus at a lower RAM address and increment such that the last word in the transfer is stored with the highest target RAM address. Consecutive I2C frame transfers increment target address such that the data in the last transfer is last in target memory address space. When the Memory Load Control Register (0×04) is written by the system controller, the TAS3202 updates the status register by setting a error bit to indicate an error for the memory type that is being loaded. This error bit is reset when the operation complete and a valid checksum has been received. For example, when the micro program memory is being loaded, the TAS3202 sets a micro program memory error indication in the status register at the start of the sequence. When the last byte of the micro program memory and checksum is received, the TAS3202 clears the micro program memory error indication. This enables the TAS3202 to preserve any error status indications that occur as a result of incomplete transfers of data/ checksum error during a series of data and program memory load operations. The checksum is always contained in the last two bytes of the data block. The I2C slave download is terminated when a termination header with a zero-length byte-count file is received. The status register always reflects status of EEPROM boot attempts, unless the user writes to the slave control register. A write to the slave boot control register causes the EEPROM status register to reflect slave boot attempt status. Refer to Section 9.3 for formatting details. NOTE Once the micro program memory has been loaded, further updates to this memory are prohibited until the device is reset. The TAS3202 I2C block does respond to the broadcast address (00h). Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 23 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com Table 6-2. Slave Addresses BASE ADDRESS CS0 R/W SLAVE ADDRESS 0110 10 0 0 0x68 0110 10 0 1 0x69 0110 10 1 0 0x6A 0110 10 1 1 0x6B Table 6-3. Master Addresses BASE ADDRESS CS0 R/W MASTER ADDRESS 1010 00 0 0 0xA0 1010 00 0 1 0xA1 1010 00 1 0 0xA2 1010 00 1 1 0xA3 The following is an example use of the I2C master address to access an external EEPROM. The TAS3202 can address up to two EEPROMs depending on the state of CS0. Initially, the TAS3202 comes up in I2C master mode. If it finds a memory such as the 24C512 EEPROM, it reads the headers and data as previously described. In this I2C master mode, the TAS3202 addresses the EEPROMs as shown in Table 6-4 and Table 6-5. Table 6-4. EEPROM Address I2C TAS3202 Master Mode = 0×A1/A0 MSB 1 0 1 0 0 A0 (EEPROM) CS0 R/W 0 0 1/0 Table 6-5. EEPROM Address I2C TAS3202 Master Mode = 0×A3/A2 MSB 1 0 1 0 0 A0 (EEPROM) CS0 R/W 0 1 1/0 Random I2C Transactions Supplying a subaddress for each subaddress transaction is referred to as random I2C addressing. For random I2C read commands, the TAS3202 responds with data, a byte at a time, starting at the subaddress assigned, as long as the master device continues to respond with acknowledges. If a given subaddress does not use all 32 bits, the unused bits are read as logic 0. I2C write commands, however, are treated in accordance with the data assignment for that address space. If a write command is received for a mixer subaddress, for example, the TAS3202 expects to see five 32-bit words. If fewer than five data words have been received when a stop command (or another start command) is received, the data received is discarded. 24 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Sequential I2C Transactions The TAS3202 also supports sequential I2C addressing. For write transactions, if a subaddress is issued followed by data for that subaddress and the 15 subaddresses that follow, a sequential I2C write transaction has taken place, and the data for all 16 subaddresses is successfully received by the TAS3202. For I2C sequential write transactions, the subaddress then serves as the start address and the amount of data subsequently transmitted, before a stop or start is transmitted, determines how many subaddresses are written to. As was true for random addressing, sequential addressing requires that a complete set of data be transmitted. If only a partial set of data is written to the last subaddress, the data for the last subaddress is discarded. However, all other data written is accepted; just the incomplete data is discarded. Sequential read transactions do not have restrictions on outputting only complete subaddress data sets. If the master does not issue enough data-received acknowledges to receive all the data for a given subaddress, the master device simply does not receive all the data. If the master device issues more data-received acknowledges than required to receive the data for a given subaddress, the master device simply receives complete or partial sets of data, depending on how many data-received acknowledges are issued from the subaddress(es) that follow. I2C read transactions, both sequential and random, can impose I2C clock stretching.. 6.3.1 Multiple-Byte Write Multiple data bytes are transmitted by the master device to slave as shown in Figure 6-4. After receiving each data byte, the TAS3202 responds with an acknowledge bit. Start Condition Acknowledge A6 A5 A1 A6 A0 R/W ACK A7 A5 2 A4 A3 A1 Acknowledge Acknowledge Acknowledge A0 ACK D7 D0 ACK D7 D0 ACK D7 D0 ACK Other Data Bytes First Data Byte Subaddress I C Device Address and Read/Write Bit Acknowledge Last Data Byte Stop Condition T0036-02 Figure 6-4. Multiple-Byte Write Transfer 6.3.2 Multiple-Byte Read Multiple data bytes are transmitted by the TAS3202 to the master device as shown in Figure 6-5. Except for the last data byte, the master device responds with an acknowledge bit after receiving each data byte. Repeat Start Condition Start Condition Acknowledge A6 2 A0 R/W ACK A7 I C Device Address and Read/Write Bit Acknowledge A6 A6 A0 ACK A5 2 Acknowledge Acknowledge Acknowledge Not Acknowledge A0 R/W ACK D7 D0 ACK D7 D0 ACK D7 D0 ACK I C Device Address and Read/Write Bit Subaddress First Data Byte Other Data Bytes Last Data Byte Stop Condition T0036-04 Figure 6-5. Multiple-Byte Read Transfer 6.4 I2C Master-Mode Device Initialization I2C master-mode operation is enabled following a reset or power-on reset. Master-mode I2C transactions do not start until the I2C bus is idle. Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 25 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com The TAS3202 uses the master mode to download from EEPROM the memory contents for the microprocessor program memory, microprocessor extended memory, audio DSP core program memory, audio DSP core coefficient memory, and audio DSP core data memory. The TAS3202, when operating as an I2C master, can execute a complete download of any internal memory or any section of any internal memory without requiring any wait states. The TAS3202 generates a repeated start without an intervening stop command while downloading program and memory data from EEPROM. When a repeated start is sent to the EEPROM in read mode, the EEPROM enters a sequential read mode to transfer large blocks of data quickly. The TAS3202 queries the bus for an I2C EEPROM at address 1010xxx. The value xxx can be chip select, other information, or don’t cares, depending on the EEPROM selected. The first action of the TAS3202 as master is to transmit a start condition along with the device address of the I2C EEPROM with the read/write bit cleared (0) to indicate a write. The EEPROM acknowledges the address byte, and the TAS3202 sends a subaddress byte, which the EEPROM acknowledges. Most EEPROMs have at least 2-byte addresses and acknowledge as many as are appropriate. At this point, the EEPROM sends a last acknowledge and becomes a slave transmitter. The TAS3202 acknowledges each byte repeatedly to continue reading each data byte that is stored in memory. The memory load information starts with reading the header and data information that starts at subaddress 0 of the EEPROM. This information must then be stored in sequential memory addresses with no intervening gaps. The data blocks are contiguous blocks of data that immediately follow the header locations. The TAS3202 memory data can be stored and loaded in (almost) any order. Additionally, this addressing scheme permits portions of the TAS3202 internal memories to be loaded. I2C EEPROM Memory Map Block Header 1 Data Block 1 Block Header 2 Data Block 2 w w w Block Header N Data Block N M0040−01 Figure 6-6. EEPROM Address Map 26 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 The TAS3202 sequentially reads EEPROM memory and loads its internal memory, unless it does not find a valid memory header block, is not able to read the next memory location because the end of memory was reached, detects a checksum error, or reads an end-of-program header block. When it encounters an invalid header or read error, the TAS3202 attempts to read the header or memory location three times before it determines that it has an error. If the TAS3202 encounters a checksum error, it attempts to reread the entire block of memory two more times before it determines that it has an error. Once the microprocessor program memory has been loaded, it cannot be reloaded until the TAS3202 has been reset. If an error is encountered, TAS3202 terminates its memory-load operation, loads the default configuration from ROM, and disables further master I2C bus operations. If an end-of-program data block is read, the TAS3202 has completed the initial program load. The I2C master mode uses the starting and ending I2C checksums to verify a proper EEPROM download. The first 16-bit data word received from the EEPROM, the I2C checksum at subaddress 0x00, is stored and compared against the 16-bit data word received for the last subaddress, the ending I2C checksum, and the checksum that is computed during the download. These three values must be equal. If the read and computed values do not match, the TAS3202 sets the memory read error bits in the status register and repeats the download from the EEPROM two more times. If the comparison check fails the third time, the TAS3202 sets the microprocessor program to the default value. Table 6-6 shows the format of the EEPROM or other external memory load file. Each line of the file is a byte (in ASCII format). The checksum is the summation of all the bytes (with beginning and ending checksum fields = 00). The final checksum inserted into the checksum field is the lowest significant four bytes of the checksum. Example: Given the following example 8051 data or program block (must be a multiple of 4 bytes for these blocks): 10h 20h 30h 40h 50h 60h 70h 80h The checksum = 10h + 20h + 30h + 30h + 40h + 50h + 60h + 70h + 80h = 240h, so the values put in the checksum fields are MS byte = 02h and LS byte = 40h. If the checksum is >FFFFh, then the 2-byte checksum field is the least-significant 2 bytes. For example, if the checksum is 1D 45B6h, the checksum field is MS byte = 45h and LS byte = B6h. Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 27 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com Table 6-6. TAS3202 Memory Block Structures STARTING BYTE DATA BLOCK FORMAT SIZE NOTES 12-Byte Header Block Checksum code MS byte 0 2 bytes Checksum of bytes 2 through N + 12. If this is a termination header, this value is 00 00 2 bytes Must be 0x001F for the TAS3202 to load as part of initialization. Any other value terminates the initialization memory load sequence. Memory to be loaded 1 byte 0x00 – Microprocessor program memory or termination header 0x01 – Microprocessor external data memory 0x02 – Audio DSP core program memory 0x03 – Audio DSP core coefficient memory 0x04 – Audio DSP core data memory 0x05–06 – Audio DSP upper program memory 0x07 – Audio DSP upper coefficient memory 0x08–FF – Reserved for future expansion 0x00 1 byte Unused 2 bytes If this is a termination header, this value is 0000. 2 bytes 12 + data bytes + last checksum bytes. If this is a termination header, this value is 0000. Checksum code LS byte Header ID byte 1 = 0x00 2 Header ID byte 2 = 0x1F 4 5 Start TAS3202 memory address MS byte 6 Start TAS3202 memory address LS byte Total number of bytes transferred MS byte 8 Total number of bytes transferred LS byte 10 0x00 1 bytes Unused 11 0x00 1 bytes Unused Data Block for Microprocessor Program or Data Memory (Following 12-Byte Header) Data byte 1 (LS byte) Data byte 2 12 Data byte 3 4 bytes 1–4 microprocessor bytes 4 bytes 5–8 microprocessor bytes Data byte 4 (MS byte) Data byte 5 Data byte 6 16 Data byte 7 Data byte 8 • • • Data byte 4×(Z – 1) + 1 N+8 Data byte 4×(Z – 1) + 2 Data byte 4×(Z – 1) + 3 4 bytes Data byte 4×(Z – 1) + 4 = N 0x00 N + 12 0x00 Checksum code MS byte 4 bytes Repeated checksum bytes 2 through N + 11 Checksum code LS byte 28 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Table 6-6. TAS3202 Memory Block Structures (continued) STARTING BYTE DATA BLOCK FORMAT SIZE NOTES Data Block for Audio DSP Core Coefficient Memory (Following 12-Byte Header) Data byte 1 (LS byte) 12 Data byte 2 Data byte 3 Coefficient word 1 (valid data in D27–D0) D7–D0 4 bytes Data byte 4 (MS byte) D15–D8 D23–D16 D31–D24 Data byte 5 16 Data byte 6 Data byte 7 4 bytes Coefficient word 2 4 bytes Coefficient word Z 4 bytes Repeated checksum bytes 2 through N + 11 Data byte 8 • • • Data byte 4×(Z – 1) + 1 N+8 Data byte 4×(Z – 1) + 2 Data byte 4×(Z – 1) + 3 Data byte 4×(Z – 1) + 4 = N 0x00 N + 12 0x00 Checksum code MS byte Checksum code LS byte Data Block for Audio DSP Core Data Memory (Following 12-Byte Header) Data byte 1 (LS byte) Data word 1 D7–D0 Data byte 2 12 Data byte 3 Data byte 4 D15–D8 6 bytes D23–D16 D31–D24 Data byte 5 D39–D32 Data byte 6 (MS byte) D47–D40 Data byte 7 Data byte 8 18 Data byte 9 Data byte 10 6 bytes Data 2 6 bytes Data Z Data byte 11 Data byte 12 • • • Data byte 6×(Z – 1) + 1 Data byte 6×(Z – 1) + 2 N+6 Data byte 6×(Z – 1) + 3 Data byte 6×(Z – 1) + 4 Data byte 6×(Z – 1) + 5 Data byte 6×(Z – 1) + 6 = N Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 29 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com Table 6-6. TAS3202 Memory Block Structures (continued) STARTING BYTE DATA BLOCK FORMAT SIZE NOTES 0x00 0x00 0x00 N + 12 6 bytes 0x00 Repeated checksum bytes 2 through N + 11 Checksum code MS byte Checksum code LS byte Data Block for Audio DSP Core Program Memory (Following 12-Byte Header) Program byte 1 (LS byte) 12 Program word 1 (valid data in D53–D0) D7–D0 Program byte 2 D15–D8 Program byte 3 D23–D16 Program byte 4 7 bytes D31–D24 Program byte 5 D39–D32 Program byte 6 D47–D40 Program byte 7 (MS byte) D55–D48 Program byte 8 Program byte 9 Program byte 10 19 Program byte 11 7 bytes Program word 2 7 bytes Program word Z 7 bytes Repeated checksum bytes 2 through N + 11 Program byte 12 Program byte 14 Program byte 15 • • • Program byte 7×(Z – 1) + 1 Program byte 7×(Z – 1) + 2 Program byte 7×(Z – 1) + 3 N+5 Program byte 7×(Z – 1) + 4 Program byte 7×(Z – 1) + 5 Program byte 7×(Z – 1) + 6 Program byte 7×(Z – 1) + 7 = N 0x00 0x00 0x00 N + 12 0x00 0x00 Checksum code MS byte Checksum code LS byte 30 Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Table 6-6. TAS3202 Memory Block Structures (continued) STARTING BYTE DATA BLOCK FORMAT SIZE NOTES 20-Byte Termination Block (Last Block of Entire Load Block) BLAST – 19 BLAST – 17 0x00 0x00 0x00 0x1F 2 bytes First 2 bytes of termination block are always 0x0000. 2 bytes Second 2 bytes are always 0x001F. BLAST – 15 0x00 1 byte BLAST – 14 0x00 1 byte • Last 16 bytes must each be 0x00. • • BLAST 0x00 1 byte Microprocessor Controller Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 31 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com 7 Digital Audio Processor (DAP) Arithmetic Unit The DAP arithmetic unit is a fixed-point computational engine consisting of an arithmetic unit and data and coefficient memory blocks. The primary features of the DAP are: • Two-pipe parallel processing architecture – 48-bit data path with 76-bit accumulator – Hardware single cycle multiplier (28×48) – Three 48-bit general-purpose data registers and one 28-bit coefficient register – Four simultaneous operations per machine cycle – Shift right, shift left, and bimodal clip – Log2/Alog2 – Magnitude Truncation • Hardware acceleration units – Soft volume controller – Delay memory – Dither generator – Log2/2× estimator • 1024 + 768 dual-port ports words of data (24 and 48 bits, respectively) • 1228 words of coefficient memory (28 bits) • 3K word of program RAM (55 bits) • 5.88K words of 24-bits delay memory (1.22 ms) • Coefficient RAM, data RAM, LFSR seed, program counter, and memory pointers are all mapped into the same memory space for convenient addressing by the microcontroller. • Memory interface block contains four pointers, two for data memory and two for coefficient memory. 32 Digital Audio Processor (DAP) Arithmetic Unit Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 28 28 Micro Mem IF 28 48 28 DATA RAM COEF RAM 1022 × 48 1022 × 28 28 48 48 28 VOL (5 lsbs) (EREG4) 48 DI (3 lsbs) (EREG3) 48 48 LFS (LFSR) 2 28 48 48 48 28 48 28 48 48 48 48 B (BREG) 48 L (CREG) 48 MD (AREG) 48 48 28 MC (RREG) 28 Barrel Shift, NEG, ABS, or THRU DLYO (EREG1) 48 76 ACC LOG, ALOG, NEG, ABS, or THRU BR (PREG1) Multiply 48 76 LR (PREG2) MR PREG3 (PREG3) “ZERO” 76 48 48 Operand A 76 Legend 76 Register Operand B 28 ADD 32 76 48 CLIP Delay RAM 5.8K × 24 DLYI (DREG9) 76 28-bit data 32-bit data 48-bit data 76-bit data 48 Output Register File (DO1 – DO8) (DREG1 – DREG8) 32 To Output SAP Figure 7-1. DSP Core Block Diagram Digital Audio Processor (DAP) Arithmetic Unit Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 33 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 7.1 www.ti.com DAP Instructions Set Please see this information in the TAS3xxx DAS Instruction Set Reference Guide, available to those registered to the TAS3xxx-PurePath Studio Extranet. 7.2 DAP Data Word Structure Figure 7-2 shows the data word structure of the DAP arithmetic unit. Eight bits of overhead or guard bits are provided at the upper end of the 48-bit DAP word, and 16 bits of computational precision or noise bits are provided at the lower end of the 48-bit word. The incoming digital audio words are all positioned with the MSB abutting the 8-bit overhead/guard boundary. The sign bit in bit 39 indicates that all incoming audio samples are treated as signed data samples The arithmetic engine is a 48-bit (25.23 format) processor consisting of a general-purpose 76-bit ALU and function-specific arithmetic blocks. Multiply operations (excluding the function-specific arithmetic blocks) always involve 48-bit DAP words and 28-bit coefficients (usually I2C programmable coefficients). If a group of products is to be added together, the 76-bit product of each multiplication is applied to a 76-bit adder, where a DSP-like multiply-accumulate (MAC) operation takes place. Biquad filter computations use the MAC operation to maintain precision in the intermediate computational stages. 40 39 47 32 31 24 23 22 21 20 19 16 15 8 7 0 16-Bit Audio 18-Bit Audio 20-Bit Audio Overhead/ Guard Bits Precision/Noise Bits 24-Bit Audio Figure 7-2. Arithmetic Unit Data Word Structure To maximize the linear range of the 76-bit ALU, saturation logic is not used. In MAC computations, intermediate overflows are permitted, and it is assumed that subsequent terms in the computation flow correct the overflow condition (see Figure 7-3). The DAP memory banks include a dual port data RAM for storing intermediate results, a coefficient RAM, and a fixed program ROM. Only the coefficient RAM, accessible via the I2C bus, is available to the user. + + Rollover + 1 0 1 1 0 1 1 1 (-73) 1 1 0 0 1 1 0 1 (-51) 1 0 0 0 0 1 0 0 (-124) -124 1 1 0 1 0 0 1 1 (-45) + -45 0 1 0 1 0 1 1 1 (57) 57 0 0 1 1 1 0 1 1 (59) 1 0 0 1 0 0 1 0 (-110) -73 + + -51 59 -110 Figure 7-3. DSP ALU Operation With Intermediate Overflow 34 Digital Audio Processor (DAP) Arithmetic Unit Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 D23 D22 - - - - - D1 D0 Input 24-Bit Data 8-Bit Headroom and 16-Bit Noise 0...0 D23 D22 - - - - - D1 D0 0...0 47–40 39 - - - - - - 16 15–0 27–23 Coefficient Representation Scaling Headroom Multiplier Output 75–71 70–63 5 8 22 - - - - - - - - - - - - - - - 0 Data (24 bits) 62 – Fractional Noise 39 12 38–31 12 8 30 – 0 31 48-Bit Clipping POS48 – NEG48 – 0x7F_F 0x80_0 POS40 – NEG40 – 0xXX_ 0xXX_ FFF_FFFF 000_0000 _FF _00 32-Bit Clipping 7FFF_FFFF 8000_0000 _XX _XX 28-Bit Clipping POS20 – NEG20 – 0xXXXXX_ 0xXXXXX_ 7FFF_FFFF 8000_0000 Figure 7-4. DAP Data-Path Data Representation Digital Audio Processor (DAP) Arithmetic Unit Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 35 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com 8 Electrical Specifications Absolute Maximum Ratings (1) 8.1 over operating temperature range (unless otherwise noted) DVDD Digital supply voltage range AVDD Analog supply voltage range –0.5 V to 3.8 V –0.5 V to 3.8 V 3.3-V TTL –0.5 V to DVDD + 0.5 V VI Input voltage range VO Output voltage range IIK Input clamp current (VI < 0 or VI > DVDD) IOK Output clamp current (VO < 0 or VO > DVDD) TA Operating free-air temperature range Tstg Storage temperature range (1) (2) 8.2 1.8 V LVCMOS (XTLI) 3.3 V TTL –0.5 V to DVDD + 0.5 V –0.5 V to 2.3 V (2) 1.8 V LVCMOS (XTLO) ±20 μA ±20 μA 0°C to 70°C –65°C to 150°C Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated under Recommended Operating Conditions is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. Pin XTAL_OUT is the only TAS3202 output that is derived from the internal 1.8-V logic supply. The absolute maximum rating listed is for reference; only a crystal should be connected to XTAL_OUT. Note: • VR_ANA is derived from TAS3202 internal 1.8-V voltage regulator. This terminal must not be used to power external devices. • VR_DIG is derived from TAS3202 internal 1.8-V voltage regulator. This terminal must not be used to power external devices. • VR_PLL is derived from TAS3202 internal 1.8-V voltage regulator. This terminal must not be used to power external devices. Package Dissipation Ratings PACKAGE DESCRIPTION PACKAGE TYPE PIN COUNT PACKAGE DESIGNATOR TQFP 64 PAG 8.3 –0.5 V to 2.3 V TA ≤ 25°C POWER RATING (mW) DERATING FACTOR ABOVE TA = 25°C (mW/°C) TA = 70°C POWER RATING (mW) 1869 23.36 818 Recommended Operating Conditions MIN NOM MAX DVDD Digital supply voltage 3 3.3 3.6 V AVDD Analog supply voltage 3 3.3 3.6 V 3.3-V TTL 2 VIH High-level input voltage VIL Low-level input voltage TA Operating ambient air temperature 0 TJ Operating junction temperature 0 1.8-V LVCMOS (XTL_IN) Analog output load 36 V 1.2 3.3-V TTL 0.8 1.8-V LVCMOS (XTL_IN) 0.5 Analog differential input Resistance Capacitance Electrical Specifications UNIT 25 V 70 °C 105 °C 2 VRMS 10 kΩ 100 pF Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 8.4 SLES208B – JUNE 2009 – REVISED MARCH 2011 Electrical Characteristics over recommended operating conditions (unless otherwise noted) PARAMETER MIN TYP MAX UNIT 3.3-V TTL IOH = –4 mA 1.8-V LVCMOS (XTL_OUT) IOH = –0.55 mA 3.3-V TTL IOL = 4 mA 0.5 1.8-V LVCMOS (XTL_OUT) IOL = 0.75 mA 0.4 3.3-V TTL VI = VIL ±20 3.3-V TTL VI = VIL ±20 1.8-V LVCMOS (XTL_IN) VI = VIL ±20 3.3-V TTL VI = VIH ±20 1.8-V LVCMOS (XTL_IN) VI = VIH ±20 Digital supply current Normal operation MCLK_IN = 24.576 MHz, LRCLK = 48 kHz 130 mA Analog supply current Normal operation MCLK_IN = 24.576 MHz, LRCLK = 48 kHz 60 mA Normal operation MCLK_IN = 24.576 MHz, LRCLK = 48 kHz 627 mW With voltage regulators on 23 mW With voltage regulators off 825 μW 20 mW VOH High-level output voltage VOL Low-level output voltage IOZ High-impedance output current IIL Low-level input current IIH High-level input current IDVDD IAVDD Power Dissipation (Total) TEST CONDITIONS Digital and analog supply current Standby mode 2.4 V 1.44 Reset mode V μA μA μA VR_ANA Internal voltage regulator – analog 1.6 1.8 1.98 V VR_PLL Internal voltage regulator – PLL 1.6 1.8 1.98 V VR_DIG Internal voltage regulator – digital 1.6 1.8 1.98 V Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 37 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 8.5 www.ti.com Audio Specifications TA = 25°C, AVDD = 3.3 V, DVDD = 3.3 V, Fs = 48 kHz, 1-kHz sine wave full scale, over operating free-air temperature range (unless otherwise noted) PARAMETER Overall performance: input ADC – DAP – DAC – line out ADC section ADC decimation filter TEST CONDITIONS MIN UNIT 100 dB THD+N Evaluation module, –3 dB with respect to full scale 101 dB Dynamic range A-weighted, –60 dB with respect to full scale 102 dB THD+N –4 dB with respect to full scale 93 dB Crosstalk One channel = –3 dB, Other channel = 0 V 84 dB Power supply rejection ratio 1 kHz, 100 mVpp on AVDD 57 dB Input resistance 20 kΩ Input capacitance 10 pF Pass-band edge 0.45Fs Hz Pass-band ripple ±0.01 dB Stop-band edge 0.55Fs Hz Group delay Differential full-scale output voltage 100 dB 37÷Fs Sec 2 Dynamic range A-weighted, –60 dB with respect to full scale THD+N VRMS 105 dB –1-dBFS input, 0-dB gain 95 dB DAC to ADC One channel –3 dBFS, Other channel 0 V 84 dB ADC to DAC One channel –3 dB, Other channel 0 V 84 dB DAC to DAC One channel –3 dBFS; Other channel 0 V 84 dB Power-supply rejection ratio 1 kHz, 100 mVpp on AVDD 56 dB DC offset With respect to VREF DAC section Crosstalk mV Pass-band edge 0.45Fs Hz Pass-band ripple ±0.06 dB Transition band 1.45 Fs to 0.55Fs Hz Stop-band edge 7.4Fs Hz -65 dB 21÷Fs Sec Stop-band attenuation Filter group delay 38 MAX Dynamic range Stop-band attenuation DAC interpolation filter TYP Evaluation module, A-weighted, –60 dB with respect to full scale Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 Figure 8-1. Frequency Response (ADC-DAC) Figure 8-2. THD+N (ADC-DAC) Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 39 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 8.6 www.ti.com Timing Characteristics The following sections describe the timing characteristics of the TAS3202. 8.7 Master Clock over recommended operating conditions (unless otherwise noted) TEST CONDITIONS PARAMETER f(XTAL_IN) Frequency, XTAL_IN (1/ tc(1)) tc(1) Cycle time, XTAL_IN f(MCLK_IN) Frequency, MCLK_IN (1/ tc(2)) tw(MCLK_IN) Pulse duration, MCLK_IN high See MIN (1) TYP (2) 0.4 tc(2) 512Fs Hz Sec 0.5 tc(2) Crystal frequency deviation tr(MCLKO) Rise time, MCLKO CL = 30 pF tf(MCLKO) Fall time, MCLKO CL = 30 pF tw(MCLK_IN) Pulse duration, MCLKO high See td(MI-MO) (1) (2) (3) (4) (5) (6) 256Fs (3) ppm Hz ns 15 ns ns 80 ps MCLK_IN master clock source See MCLKO = MCLK_IN See (5) 20 See (5) (6) 20 MCLKO < MCLK_IN ns 15 HMCLKO XTAL_IN master clock source Delay time, MCLK_IN rising edge to MCLKO rising edge Hz 0.6 tc(2) 50 Frequency, MCLKO (1/ tc(3)) UNIT 1÷512Fs 512Fs See f(MCLKO) MCLKO jitter MAX (4) ns Duty cycle is 50/50. Period of MCLK_IN = TMCLK_IN = 1/fMCLK_IN HMCLKO = 1/(2 × MCLKO). MCLKO has the same duty cycle as MCLK_IN when MCLKO = MCLK_IN. When MCLKO = 0.5 MCLK_IN or 0.25 MCLK_IN, the duty cycle of MCLKO is typically 50%. When MCLKO is derived from MCLK_IN, MCLKO jitter = MCLK_IN jitter Only applies when MCLK_IN is selected as master source clock Also applies to MCLKO falling edge when MCLKO = MCLK_IN/2 or MCLK_IN/4 XTALI tc(1) tw(MCLKI) MCLKI tc(2) td(MI-MO) tw(MCLKO) tr(MCLKO) tf(MCLKO) MCLKO tc(3) T0088-01 Figure 8-3. Master Clock Signal Timing Waveforms 40 Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com 8.8 SLES208B – JUNE 2009 – REVISED MARCH 2011 Serial Audio Port, Slave Mode over recommended operating conditions (unless otherwise noted) TEST CONDITIONS PARAMETER fLRCLK Frequency, LRCLK (fS) tw(SCLKIN) Pulse duration, SCLKIN high See (1) fSCLKIN Frequency, SCLKIN See (2) tpd1 Propagation delay, SCLKIN falling edge to SDOUT tsu1 Setup time, LRCLK to SCLKIN rising edge th1 Hold time, LRCLK from SCLKIN rising edge tsu2 Setup time, SDIN to SCLKIN rising edge th2 Hold time, SDIN from SCLKIN rising edge tpd2 Propagation delay, SCLKIN falling edge to SCLKOUT2 falling edge (1) (2) MIN TYP MAX UNIT 48 kHz 0.4 tc(SCLKIN) 0.5 tc(SCLKIN) 0.6 tc(SCLKIN) 64 FS ns MHz 16 ns 10 ns 5 ns 10 ns 5 ns 15 ns Period of SCLKIN = TSCLKIN = 1/fSCLKIN Duty cycle is 50/50. tw(SCLKIN) tc(SCLKIN) SCLKIN th1 tsu1 LRCLK (Input) tpd1 SDOUT th2 tsu2 SDIN tpd2 SCLKOUT2 Figure 8-4. Serial Audio Port Slave Mode Timing Waveforms Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 41 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 8.9 www.ti.com Serial Audio Port, Master Mode (TAS3202) over recommended operating conditions (unless otherwise noted) PARAMETER TEST CONDITIONS MIN MAX Frequency LRCLK tr(LRCLK) Rise time, LRCLK tf(LRCLK) Fall time, LRCLK f(SCLKOUT) Frequency, SCLKOUT CL = 30 pF tr(SCLKOUT) Rise time, SCLKOUT CL = 30 pF 12 ns tf(SCLKOUT) Fall time, SCLKOUT CL = 30 pF 12 ns tpd1(SCLKOUT) Propagation delay, SCLKOUT falling edge to LRCLK edge 5 ns tpd2 Propagation delay, SCLKOUT falling edge to SDOUT 5 ns tsu Setup time, SDIN to SCLKOUT rising edge 25 ns th Hold time, SDIN from SCLKOUT rising edge 30 ns (1) (1) 48 UNIT f(LRCLK) (1) CL = 30 pF TYP kHz CL = 30 pF 12 Duty cycle is 50/50 12 64FS ns ns MHz Rise time and fall time measured from 20% to 80% of maximum height of waveform. tr(SCLKOUT) tf(SCLKOUT) SCLKOUT2 tr(SCLKOUT) tf(SCLKOUT) tsk SCLKOUT1 tpd1(SCLKOUT2) tpd1(SCLKOUT1) LRCLK (Output) tf(LRCLK), tr(LRCLK) tpd2 SDOUT th tsu SDIN Figure 8-5. Serial Audio Port Master Mode Timing Waveforms 42 Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 TAS3202 www.ti.com SLES208B – JUNE 2009 – REVISED MARCH 2011 8.10 Pin-Related Characteristics of the SDA and SCL I/O Stages for F/S-Mode I 2C-Bus Devices PARAMETER STANDARD MODE TEST CONDITIONS UNIT MIN MAX MIN MAX 0.8 –0.5 0.8 VIL LOW-level input voltage –0.5 VIH HIGH-level input voltage 2 Vhys Hysteresis of inputs VOL1 LOW-level output voltage (open drain or open collector) 3-mA sink current tof Output fall time from VIHmin to VILmax Bus capacitance from 10 pF to 400 pF II Input current, each I/O pin tSP(SCL) SCL pulse duration of spikes that must be suppressed by the input filter tSP(SDA) SDA pulse duration of spikes that must be suppressed by the input filter CI Capacitance, each I/O pin (1) (2) (3) FAST MODE N/A N/A V 2 V 0.05 VDD V 0 0.4 V 250 7 + 0.1 Cb (1) 250 ns 10 –10 (2) 10 (2) μA N/A N/A 14 (3) ns N/A N/A 22 (3) ns –10 10 10 pF 2 Cb = capacitance of one bus line in pF. The output fall time is faster than the standard I C specification. The I/O pins of fast-mode devices must not obstruct the SDA and SDL lines if VDD is switched off. These values are valid at the 135-MHz DSP clock rate. If DSP clock is reduced by half, the tSP doubles. 8.11 Bus-Related Characteristics of the SDA and SCL I/O Stages for F/S-Mode I 2C-Bus Devices all values are referred to VIHmin and VILmax (see Section 8.10) STANDARD MODE PARAMETER MIN MAX FAST MODE MIN MAX SCL clock frequency 0 tHD-STA Hold time (repeated) START condition. After this period, the first clock pulse is generated. 4 0.6 μs tLOW LOW period of the SCL clock 4.7 1.3 μs tHIGH HIGH period of the SCL clock 4 0.6 μs tSU-STA Setup time for repeated START 4.7 0.6 μs tSU-DAT Data setup time 250 tHD-DAT Data hold time tr Rise time of both SDA and SCL signals 0 0 400 (1) fSCL (2) (3) 100 UNIT μs 100 0 0.9 μs 20 + 0.1 Cb (4) 300 ns 20 + 0.1 Cb (4) 300 3.45 1000 tf Fall time of both SDA and SCL tSU-STO Setup time for STOP condition tBUF Bus free time between a STOP and START condition Cb Capacitive load for each bus line VnL Noise margin at the LOW level for each connected device (including hysteresis) 0.1VDVDD 0.1VDVDD V VnH Noise margin at the HIGH level for each connected device (including hysteresis) 0.2VDVDD 0.2VDVDD V (1) (2) (3) (4) 300 kHz 4 4.7 μs 1.3 400 ns μs 0.6 400 pF In master mode, the maximum speed is 375 kHz. Note that SDA does not have the standard I2C specification 300-ns internal hold time. SDA must be valid by the rising and falling edges of SCL. TI recommends that a 2-kΩ pullup resistor be used to avoid potential timing issues. A fast-mode I2C-bus device can be used in a standard-mode I2C-bus system, but the requirement tSU-DAT ≥ 250 ns must then be met. This is automatically the case if the device does not stretch the LOW period of the SCL signal. If such a device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line tr-max + tSU-DAT = 1000 + 250 = 1250 ns (according to the standard-mode I2C bus specification) before the SCL line is released. Cb = total capacitance of one bus line in pF Electrical Specifications Copyright © 2009–2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): TAS3202 43 TAS3202 SLES208B – JUNE 2009 – REVISED MARCH 2011 www.ti.com NOTE SDA does not have the standard I2C specification 300-ns internal hold time. SDA must be valid by the rising and falling edges of SCL. SDA tf tSU-DAT tHD-STA tLOW tr tSP tr tBUF tf SCL tHD-DAT tSU-STA tHD-STA tSU-STO tHIGH S Sr P S T0114-01 Figure 8-6. Start and Stop Conditions Timing Waveforms 8.11.1 Recommended I2C Pullup Resistors It is recommended that the I2C pullup resistors RP be 4.7 kΩ (see Figure 8-7). If a series resistor is in the circuit (see Figure 8-8), the series resistor RS should be less than or equal to 300 Ω. DVDD TAS3202 External Microcontroller IP RP SDA SCL IP RP VI(SDA) VI(SCL) Figure 8-7. I2C Pullup Circuit (With No Series Resistor) DVDD TAS3202 External Microcontroller RP SDA or SCL VI RS VS (1) (2) IP (2) RS (2) (1) VS = DVDD × RS/(RS – RP). When driven low, VS
TAS3202PAGR 价格&库存

很抱歉,暂时无法提供与“TAS3202PAGR”相匹配的价格&库存,您可以联系我们找货

免费人工找货