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.
2-3Terminal Assignments for Codec Port Interface AC '97 1.0 Mode ........................................................ 37
2-4Terminal Assignments for Codec Port Interface AC '97 2.0 Mode ........................................................ 38
2-5Terminal Assignments for Codec Port Interface I
2-6SLOT Assignments for Codec Port Interface I
2-7SLOT Assignments for Codec Port Interface I
2-8Channel Order for 6-Channel Application in I
2-9Terminal Assignments for Codec Port Interface General-Purpose Mode................................................. 40
The TUSB3200A integrated circuit (IC) is a universal serial bus (USB) peripheral interface device
designed specifically for applications that require isochronous data streaming. Applications include digital
speakers, which require the streaming of digital audio data between the host PC and the speaker system
via the USB connection. The TUSB3200A device is fully compatible with the USB Specification Version
1.1 and the USB Audio Class 1.0 Specification.
The TUSB3200A uses a standard 8052 microcontroller unit (MCU) core with on-chip memory. The MCU
memory includes 4K bytes of program memory ROM that contains a boot loader program. At initialization,
the boot loader program downloads the application program code to an 8K RAM from a nonvolatile
memory on the printed-circuit board (PCB). The MCU handles all USB control, interrupt and bulk endpoint
transactions. In addition, the MCU can handle USB isochronous endpoint transactions.
The USB interface includes an integrated transceiver that supports 12 Mb/s (full speed) data transfers. In
addition to the USB control endpoint, support is provided for up to seven in endpoints and seven out
endpoints. The USB endpoints are fully configurable by the MCU application code using a set of endpoint
configuration blocks that reside in on-chip RAM. All USB data transfer types are supported.
The TUSB3200A device also includes a codec port interface (C-Port) that can be configured to support
several industry standard serial interface protocols. These protocols include the audio codec (AC) '97
Revision 1.X, the audio codec (AC) '97 Revision 2.X and several Inter-IC sound (I2S) modes.
SLES018A–OCTOBER 2001–REVISED JULY 2010
USB Streaming Controller (STC)
Check for Samples: TUSB3200A
A direct memory access (DMA) controller with four channels is provided for streaming the USB
isochronous data packets to/from the codec port interface. Each DMA channel can support one USB
isochronous endpoint.
An on-chip phase lock loop (PLL) and adaptive clock generator (ACG) provide support for the USB
synchronization modes, which include asynchronous, synchronous and adaptive.
Other on-chip MCU peripherals include an Inter-IC control (I2C) serial interface, two general-purpose
input/output (GPIO) ports, and a pulse width modulation (PWM) output.
The TUSB3200A device is implemented in a 3.3-V 0.25 µm CMOS technology. In addition, the use of 5-V
compatible input/output buffers for the codec port interface allows the TUSB3200A device to be connected
to either 3.3-V or 5-V codec devices.
1
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.
• Universal Serial Bus (USB)• DMA Controller
– USB Specification version 1.1 compatible– Four DMA channels to support streaming
– USB Audio Class Specification 1.0
compatible
– Integrated USB transceiver
– Supports 12 Mb/s data rate (full speed)
– Supports suspend/resume and remote
wake-up
– Supports control, interrupt, bulk and
isochronous data transfer types
– Supports up to a total of 7 in endpoints and
7 out endpoints in addition to the control
endpoint
– Data transfer type, data buffer size, single or
double buffering is programmable for each
endpoint
– On-chip adaptive clock generator (ACG)
supports asynchronous, synchronous and– Master only interface
adaptive synchronization modes for
isochronous endpoints
– To support synchronization for streaming
USB audio data, the ACG can be used to
generate the master clock for the codec
• Micro-Controller Unit (MCU)
– Standard 8052 8-bit core
– 4K Bytes of program memory ROM that
contains a boot loader program that loads
the application firmware from external
EEPROM
– 8K Bytes of program memory RAM which is
loaded by the boot loader program
– 256 Bytes of internal data memory RAM
– Two GPIO ports
– MCU handles all USB control, interrupt and
bulk endpoint transfers
USB audio data to/from the codec port
interface
– Each channel can support a single USB
isochronous endpoint
– For I2S modes, either a single or multiple
USB isochronous endpoints can be used to
support multiple DACs/ADCs
• Codec Port Interface
– Configurable to support AC'97 1.X, AC'97 2.X
or I2S serial interface formats
– I2S modes can support a combination of up
to 4 DACs and/or 3 ADCs
– Can be configured as a general-purpose
serial interface
• I2C Interface
– Does not support a multimaster bus
environment
– Programmable to 100 kbit/s or 400 kbit/s
data transfer speeds
• Pulse Width Modulation (PWM) Output
– Programmable frequency range from 732.4
Hz to 93.75 kHz
– Programmable duty cycle
• General Characteristics
– Available in a 52-Pin TQFP Package
– On-chip phase-locked loop (PLL) with
internal oscillator is used to generate
internal clocks from a 6 MHz crystal input
P3.014I/OGeneral-purpose I/O port 3 bit 0: A bidirectional I/O port. This signal uses a 5-V compatible
P3.115I/OGeneral-purpose I/O port 3 bit 1: A bidirectional I/O port. This signal uses a 5-V compatible
P3.318I/OGeneral-purpose I/O port 3 bit 3: A bidirectional I/O port. This signal uses a 5-V compatible
P3.419I/OGeneral-purpose I/O port 3 bit 4: A bidirectional I/O port. This signal uses a 5-V compatible
P3.520I/OGeneral-purpose I/O port 3 bit 5: A bidirectional I/O port. This signal uses a 5-V compatible
PLLFILI52IPLL loop filter input: Input to on-chip PLL from external filter components.
PLLFILO1OPLL loop filter output: Output from on-chip PLL to external filter components.
PLLO4OPLL output: The 48-MHz output of the PLL used for diagnostic purposes only. This signal uses a 3.3-V
PLLOEN23IPLL output enable: An input used to enable the PLLO output signal. This signal uses a 5-V compatible
PWMO3OPWM output: Output of the pulse width modulation circuit. PWMO This signal uses a 3.3-V to 5-V
PUR6OUSB data signal plus pullup resistor connect: PUR is used to connect the pullup resistor on the DP
RSTO13OReset output: Output that is active while the master reset input or the USB reset is active. This signal
SCL42OI2C interface serial clock: SCL is the clock signal for the I2C serial interface. This signal uses a 3.3-V to
SDA41I/OI2C interface serial data input/output: SDA is the bidirectional data signal for the I2C serial interface.
TEST11ITest mode enable: Input used to enable the device for the factory test mode. This signal uses a 3.3-V
XINT17IExternal interrupt: An active low input used by external circuitry to interrupt the on-chip 8052 MCU.
XTALI51ICrystal input: Input to the on-chip oscillator from an external 6-MHz crystal.
XTALO50OCrystal Output: Output from the on-chip oscillator to an external 6-MHz crystal.
I/ODESCRIPTION
TTL/LVCMOS input/output buffer with an internal 100-µA active pullup. Can also be used as UART
RxD.
TTL/LVCMOS input/output buffer with an internal 100-µA active pullup. Can also be used as UART
TxD.
TTL/LVCMOS input/output buffer with an internal 100-µA active pullup.
TTL/LVCMOS input/output buffer with an internal 100-µA active pullup.
TTL/LVCMOS input/output buffer with an internal 100-µA active pullup.
TTL/LVCMOS output buffer.
input buffer.
CMOS level shifting output buffer.
signal to 3.3-V or a 3-state. When the DP signal is connected to 3.3-V the host PC should detect the
connection of the TUSB3200A device to the universal serial bus. This signal uses a 3.3-V
TTL/LVCMOS output buffer.
uses a 3.3-V TTL/LVCMOS output buffer.
5-V TTL level shifting open drain output buffer.
This signal uses a 3.3-V to 5-VTTL level shifting open drain output buffer and a 5-V to 3.3-V TTL level
shifting input buffer.
MCUA1018IMCU address bit 10: Multiplexed address bit 10 for external MCU access to the TUSB3200A external
MCUALE19IMCU address latch enable: Address latch enable for external MCU access to the TUSB3200A external
MCUINTO20OMCU interrupt output: Interrupt output to be used for external MCU INTO input signal. All internal
MCURD23IMCU read strobe: Read strobe for external MCU read access to the TUSB3200A external data
MCUWR22IMCU write strobe: Write strobe for external MCU write access to the TUSB3200A external data
MRESET10IMaster reset: An active low asynchronous reset for the device that resets all logic to the default state.
Not Used4OThis pin is not used in the external MCU mode.
PLLFILI52IPLL loop filter input: Input to on-chip PLL from external filter components.
PLLFILO1OPLL loop filter output: Output to on-chip PLL from external filter components.
PUR6OUSB data signal plus pullup resistor connect: PUR is used to connect the pullup resistor on the DP
PWMO3OPWM output: Output of the pulse width modulation circuit. This signal uses a 3.3-V to 5-V CMOS level
RSTO13OReset output: Output that is active while the master reset input or the USB reset is active. This signal
SCL42OI2C interface serial clock: SCL is the clock signal for the I2C serial interface. This signal uses a 3.3-V
SDA41I/OI2C interface serial data input/output: SDA is the bidirectional data signal for the I2C serial interface.
TEST11ITest mode enable: Input used to enable the device for the factory test mode. This signal uses a 3.3-V
XINT17IExternal interrupt: An active low input used by external circuitry to interrupt the on-chip 8052 MCU.
XTALI51ICrystal input: Input to the on-chip oscillator from an external 6-MHz crystal.
XTALO50OCrystal output: Output from the on-chip oscillator to an external 6-MHz crystal.
I/ODESCRIPTION
data memory space.
data memory space.
TUSB3200A interrupt sources are ORed together to generate this output signal.
memory space.
memory space.
This signal uses a 3.3-V TTL/LVCMOS input buffer.
signal to 3.3-V or a 3-state. When the DP signal is connected to 3.3-V the host PC should detect the
connection of the TUSB3200A device to the universal serial bus. This signal uses a 3.3-V
TTL/LVCMOS output buffer.
shifting output buffer.
uses a 3.3-V TTL/LVCMOS output buffer.
to 5-V TTL level shifting open drain output buffer.
This signal uses a 3.3-V to 5-V TTL level shifting open drain output buffer and a 5-V to 3.3-V TTL level
shifting input buffer.
TTL/LVCMOS input buffer.
This signal uses a 5-V compatible input buffer.
SLES018A–OCTOBER 2001–REVISED JULY 2010
1.8Device Operation Modes
The EXTEN and TEST pins define the mode that the TUSB3200A will be in after reset.
1.9Terminal Assignments for Codec Port Interface Modes
The codec port interface has eight modes of operation that support AC97, I2S, and AIC codecs. There is
also a general-purpose mode that is not specific to a serial interface. The mode is programmed by writing
to the mode select field of the codec port interface configuration register 1 (CPTCNF1). The codec port
interface terminals CSYNC, CSCLK, CDATO, CDATI, CRESET, and CSCHNE take on functionality
appropriate to the mode programmed as shown in the following tables.
Using an external 6-MHz crystal, the TUSB3200A derives the fundamental 48-MHz internal clock signal
using an on-chip oscillator and PLL. Using the PLL output, the other required clock signals are generated
by the clock generator and adaptive clock generator.
2.1.2Clock Generator and Sequencer Logic
Utilizing the 48-MHz input from the PLL, the clock generator logic generates all internal clock signals,
except for the codec port interface master clock (MCLK) and serial clock (CSCLK) signals. The
TUSB3200A internal clocks include the 48-MHz clock, a 24-MHz clock, a 12-MHz clock and a USB clock.
The USB clock also has a frequency of 12-MHz. The USB clock is the same as the 12-MHz clock when
the TUSB3200A is transmitting data and is derived from the data when the TUSB3200A is receiving data.
To derive the USB clock when receiving USB data, the TUSB3200A utilizes an internal digital PLL (DPLL)
that uses the 48-MHz clock.
The sequencer logic controls the access to the SRAM used for the USB endpoint configuration blocks and
the USB endpoint buffer space. The SRAM can be accessed by the MCU, USB buffer manager (UBM) or
DMA channels. The sequencer controls the access to the memory using a round robin fixed priority
arbitration scheme. This basically means that the sequencer logic generates grant signals for the MCU,
UBM and DMA channels at a predetermined fixed frequency.
SLES018A–OCTOBER 2001–REVISED JULY 2010
2.1.3Adaptive Clock Generator (ACG)
The adaptive clock generator is used to generate a master clock output signal (MCLKO) to be used by the
codec port interface and the codec device. To synchronize the sample rate conversion of data by the
codec to the USB frame rate, the MCLKO signal generated by the adaptive clock generator must be used.
The synchronization of the MCLKO signal to the USB frame rate is controlled by the MCU by
programming the adaptive clock generator frequency value. The MCLKO frequency is monitored by the
MCU and updated as required. For asynchronous operation, an external source can be used to generate
a master clock input signal (MCLKI) to be used by the codec port interface. In this scenario, the codec
device should also use the same master clock signal (MCLKI).
2.1.4USB Transceiver
The TUSB3200A provides an integrated transceiver for the USB port. The transceiver includes a
differential output driver, a differential input receiver and two single ended input buffers. The transceiver
connects to the USB DP and DM signal terminals.
2.1.5USB Serial Interface Engine (SIE)
The serial interface engine logic manages the USB packet protocol requirements for the packets being
received and transmitted on the USB by the TUSB3200A device. For packets being received, the SIE
decodes the packet identifier field (PID) to determine the type of packet being received and to ensure the
PID is valid. For token packets and data packets being received, the SIE calculates the packet cycle
redundancy check (CRC) and compares the value to the CRC contained in the packet to verify that the
packet was not corrupted during transmission. For token packets and data packets being transmitted, the
SIE generates the CRC that is transmitted with the packet. For packets being transmitted, the SIE also
generates the synchronization field (SYNC) that is an eight bit filed at the beginning of each packet. In
addition, the SIE generates the correct PID for all packets being transmitted. Another major function of the
SIE is the overall serial-to-parallel conversion of the data packets being received and the parallel-to-serial
conversion of the data packets being transmitted.
The USB buffer manager provides the control logic that interfaces the SIE to the USB endpoint buffers.
One of the major functions of the UBM is to decode the USB function address to determine if the host PC
is addressing the TUSB3200A device USB peripheral function. In addition, the endpoint address field and
direction signal are decoded to determine which particular USB endpoint is being addressed. Based on
the direction of the USB transaction and the endpoint number, the UBM will either write or read the data
packet to/from the appropriate USB endpoint data buffer.
2.1.7USB Frame Timer
The USB frame timer logic receives the start of frame (SOF) packet from the host PC each USB frame.
Each frame, the logic stores the 11-bit frame number value from the SOF packet in a register and asserts
the internal SOF signal. The frame number register can be read by the MCU and the value can be used
as a time stamp. For USB frames in which the SOF packet is corrupted or not received, the frame timer
logic will generate a pseudo start of frame (PSOF) signal and increment the frame number register.
2.1.8USB Suspend and Resume Logic
The USB suspend and resume logic detects suspend and resume conditions on the USB. This logic also
provides the internal signals used to control the TUSB3200A device when these conditions occur. The
capability to resume operation from a suspend condition with a locally generated remote wake-up event is
also provided.
www.ti.com
2.1.9MCU Core
The TUSB3200A uses an 8-bit microcontroller core that is based on the industry standard 8052. The MCU
is software compatible with the 8052, 8032, 80C52, 80C53, and 87C52 MCUs. The 8052 MCU is the
processing core of the TUSB3200A and handles all USB control, interrupt and bulk endpoint transfers. In
addition, the MCU can also be the source or sink for USB isochronous endpoint transfers.
2.1.10 MCU Memory
In accordance with the industry standard 8052, the TUSB3200A MCU memory is organized into program
memory, external data memory and internal data memory. A 4K byte boot ROM is used to download the
application code to an 8K byte RAM that is mapped to the program memory space. The external data
memory includes the USB endpoint configuration blocks, USB data buffers, and memory mapped
registers. The total external data memory space used is 2K bytes. A total of 256 bytes are provided for the
internal data memory.
2.1.11 USB Endpoint Configuration Blocks and Endpoint Buffer Space
The USB endpoint configuration blocks are used by the MCU to configure and operate the required USB
endpoints for a particular application. In addition to the control endpoint, the TUSB3200A supports a total
of seven in endpoints and seven out endpoints. A set of six bytes is provided for each endpoint to specify
the endpoint type, buffer address, buffer size, and data packet byte count.
The USB endpoint buffer space provided is a total of 1832 bytes. The space is totally configurable by the
MCU for a particular application. Therefore, the MCU can configure each buffer based on the total number
of endpoints to be used, the maximum packet size to be used for each endpoint, and the selection of
single or double buffering.
2.1.12 DMA Controller
Four DMA channels are provided to support the streaming of data for USB isochronous endpoints. Each
DMA channel can support one USB isochronous endpoint, either in or out. The DMA channels are used to
stream data between the USB endpoint data buffers and the codec port interface. The USB endpoint
number and direction can be programmed for each DMA channel. Also, the codec port interface time slots
to be serviced by each DMA channel can be programmed.
The TUSB3200A provides a configurable full-duplex bidirectional serial interface that can connect to a
codec or another device for streaming USB Isochronous data. The interface can be configured to support
several different industry standard protocols, including AC '97 1.X, AC '97 2.X, and I2S.
2.1.14 I2C Interface
The I2C interface logic provides a two-wire serial interface that can be used by the 8052 MCU to access
other ICs. The TUSB3200A is an I2C master device only and supports single byte or multiple byte read
and write operations. The interface can be programmed to operate at either 100 kbps or 400 kbps. The
protocol supports 8-bit or 16-bit addressing for accessing the I2C slave device memory locations.
2.1.15 Pulse Width Modulation (PWM) Output
The TUSB3200A provides a pulse width modulation output with programmable frequency and pulse width.
The frequency can be programmed from 732 Hz to 93.7 kHz with an 8-bit register. The pulse width of the
output signal is set with a 16-bit register.
2.1.16 General-Purpose IO Ports (GPIO)
The TUSB3200A provides two general-purpose IO ports that are controlled by the internal 8052 MCU. The
two ports, port 1 and port 3, are 8-bits and 5-bits, respectively. Note that port 3 bit locations 2, 6, and 7
have been used in the TUSB3200A for other functionality. Therefore these three bit locations are not
available for GPIO use. Port 3 bit location 2 has been used as the external interrupt (XINT) input to the
TUSB3200A. Port 3 bit locations 6 and 7 have been used as the external MCU write strobe and read
strobe inputs for the external MCU mode of operation.
SLES018A–OCTOBER 2001–REVISED JULY 2010
Each bit of both ports can be independently used as either an input or output. Hence each port bit consists
of an output buffer, an input buffer, and a pullup resistor (the pullups are not, strictly speaking, resistors;
they are 100-µA pullup active terminators). The pullup resistors on the GPIO pins can be disabled using
the PUDIS bit in the global control register.
2.1.16.1 External Pullup Macro
This is the equivalent circuit of the pullup "resistor", from the silicon library used to implement the
TUSB3200A.
Logic Symbol (Positive Logic)
Table 2-1. Electrical Characteristics of Pullup Resistors
PARAMETERTEST CONDITIONSMINTYPMAX UNIT
I
FIInput loading factor TAP1.65pF
FIInput loading factor PWRDN2.50SL
C
(1) When PWRDN = H, the current source is turned off.
The interrupt logic monitors the various conditions that can cause an interrupt and asserts the interrupt 0
(INT0) input to the 8052 MCU accordingly. All of the TUSB3200A internal interrupt sources and the
external interrupt (XINT) input are ORed together to generate the INT0 signal. An interrupt vector register
is provided that is used by the MCU to identify the interrupt source.
2.1.18 Reset Logic
An external master reset (MRESET) input signal that is asynchronous to the internal clocks is used to
reset the TUSB3200A logic. In addition to the master reset, the TUSB3200A logic can be reset with the
USB reset from the host PC. The TUSB3200A also provides a reset output (RSTO) signal that can be
used by external devices. This signal is asserted when either a master reset or USB reset occurs.
2.2Device Operation
The operation of the TUSB3200A is explained in the following sections. For additional information on USB,
see the universal serial bus Specification version 1.1.
2.2.1Clock Generation
The TUSB3200A requires an external 6-MHz crystal and PLL loop filter components connected as shown
in Figure 4-1 to derive all the clocks needed for both USB and codec operation. Using the low frequency
6-MHz crystal and generating the required higher frequency clocks internal to the IC is a major advantage
regarding EMI.
www.ti.com
2.2.2Device Initialization
After a power-on reset is applied to the TUSB3200A device, the 8052 MCU will execute a boot loader
program from the 4k or 8k byte boot ROM mapped to the program memory space. During device
initialization, the boot loader program downloads the application program code from an external EEPROM
through the I2C interface. This requires that a binary image of the application code be written to the 8K
byte code RAM in the TUSB3200A device.
All memory mapped registers are initialized to a default value as defined in Section A, MCU Memory andMemory- Mapped Registers. The TUSB3200A device powers up with a default function address of zero
and disconnected from the USB.
2.2.2.1Boot Load from EEPROM
Loading the application code from an external serial EEPROM requires a preprogrammed memory device
containing an informative header and the application code. While the application code is being
downloaded, the TUSB3200A will remain disconnected from the USB. When the code download is
complete, execution of the application code should connect the TUSB3200A to the USB. In this situation,
the TUSB3200A will enumerate using the vendor ID and product ID contained in the application code.
An EEPROM header precedes the application code in the EEPROM device. The bootloader uses the
information in the header as it loads the application code into RAM. Table 2-2 shows the format and
information contained in the header.
OFFSETTYPESIZEVALUE
0Signature40x04513200
4Header size1Header size
5Version1Firmware version
61
EEPROM type
71
Data type
8Data size2Data payload only size
102Check sum of the data payload beginning at location Check Sum
The signature field is used for the detection of a EEPROM device connected to the TUSB3200A. The
header size field supports future updates of the header. Data begins right after the header. The version
field identifies the header version. The EEPROM type field identifies the specific EEPROM device being
used. The data type field describes the nature of data stored in the EEPROM (application code). The datasize field holds the length of the data payload starting from the end of the header. The check sum field
contains the check sum for the data payload portion of the EEPROM.
2.2.2.3Application Code
Application firmware is stored as a binary image of the code. The binary image is mapped to the MCU
program memory space starting at address zero and is stored in the EEPROM as a continuous linear
block starting after the header information. A utility program is available that converts a file in Intel
hexidecimal format to a binary image data file and appends it to the header.
2.2.2.4EEPROM Device Type
The TUSB3200A boot loader program supports several different types of serial EEPROM devices. The
boot loader program will automatically identify the EEPROM type from the header information and use the
correct serial interface protocol accordingly. The boot loader program uses an I2C slave device address of
A0h for the serial EEPROM device.
These EEPPROM devices require an I2C device address in addition to a two byte data word address.
These devices require the full 7-bit I2C device address. Depending on the memory size of the EEPROM
device being used, the most significant three or four bits of the two byte data word address are don't care
bits. The EEPROM types supported are: 24C32 and 24C64
All of these EEPROM devices can be used for storing and loading application code. However most
applications will use devices which are capable of storing up to 8K bytes of program code.
2.2.3USB Enumeration
USB enumeration is accomplished by interaction between the host PC software and the TUSB3200A
code. After power-on reset the boot loader code first reads the information from the EEPROM, then runs
the application code. The application code connects the TUSB3200A to the USB. During the enumeration,
the application code identifies the device as an application specific device and the host loads the
appropriate host driver(s). The boot loader and application code both use the CONT, SDW, and FRSTE
bits to control the enumeration process. The function connect (CONT) bit is set to a 1 by the MCU to
connect the TUSB3200A device to the USB. When this bit is set to a 1, the USB data plus pullup resistor
(PUR) output signal is enabled, which will connect the pullup on the PCB to the TUSB3200A 3.3-V digital
supply voltage. When this bit is cleared to a 0, the PUR output is in the 3-state mode. This bit is not
affected by a USB reset. The shadow the boot ROM (SDW) bit is set to a 1 by the MCU to switch the
MCU memory configuration from boot loader mode to normal operating mode. The function reset enable
(FRSTE) bit is set to a 1 by the MCU to enable the USB reset to reset all internal logic including the MCU.
However, the shadow the ROM (SDW) and the USB function connect (CONT) bits will not be reset. When
this bit is set, the reset output (RSTO) signal from the TUSB3200A device will also be active when a USB
reset occurs. This bit is not affected by USB reset.
www.ti.com
2.2.4USB Reset
The TUSB3200A can detect a USB reset condition. When the reset occurs, the TUSB3200A responds by
setting the function reset (RSTR) bit in the USB status register (USBSTA). If the corresponding function
reset bit in the USB interrupt mask register is set, an MCU interrupt will be generated and the USB
function reset (0x17) vector will appear in the interrupt vector register (VECINT).
The function reset enable bit (FRSTE) in the USB control register (USBCTL) is used to control the extent
to which the internal logic is reset. The function reset enable bit is set to a 1 by the MCU to enable the
USB reset to reset all internal logic including the MCU. However, the shadow the ROM (SDW) and the
USB function connect (CONT) bits will not be reset. When this bit is set, the reset output (RSTO) signal
from the device will also be active when a USB reset occurs. This bit is not affected by USB reset.
2.2.5USB Suspend and Resume Modes
All USB devices must support the suspend and resume modes. During the suspend mode, USB devices
that are bus powered must enter a low power suspend state. If the USB peripheral device is not bus
powered, then entering the low power suspend state is not required. A suspend condition is defined as a
constant idle state on the bus for more than 3.0ms. A USB device must actually be in the suspend state
no more than 10 ms after the suspend condition is detected. There are two ways for the TUSB3200A
device to exit the suspend mode, which are 1) detection of USB resume signaling and 2) detection of a
local remote wake-up event.
2.2.5.1USB Suspend Mode
When a suspend condition is detected on the USB, the suspend/resume logic will set the function suspend
request bit (SUSR) in the USB status register. As a result, the function suspend request interrupt (SUSR)
will be generated. To enter the low power suspend state and disable all TUSB3200A device clocks, the
MCU firmware should set the idle mode bit (IDL), which is bit 0 in the MCU power control (PCON) register.
The instruction that sets the IDL bit will be the last instruction executed before the MCU goes to idle mode.
In idle mode, the MCU status is preserved. Note that the low power suspend state is a state in which the
TUSB3200A clocks are disabled and the IC will consume the least amount of power possible.
When the TUSB3200A is in a suspend state, any non-idle signaling on the USB will be detected by the
suspend/resume logic and device operation will be resumed. As a result of the resume signaling being
detected, the TUSB3200A clocks will be enabled, the function resume request bit (RESR) will be set, and
the function resume request interrupt (RESR) will be generated. The function resume request interrupt to
the MCU will automatically clear the idle mode bit in the PCON register. As a result, MCU operation will
resume with servicing the new interrupt. After the RETI from the ISR, the next instruction to be executed
will be the one following the instruction that set the IDL bit. Note that if the low power suspend state was
not entered by setting the IDL bit, the clocks will already be enabled and the IDL bit will already be
cleared.
2.2.5.3USB Remote Wake-Up Mode
The TUSB3200A device has the capability to remotely wake-up the USB by generating resume signaling
upstream. Note that this feature must be enabled by the host software with the SET_FEATURE
DEVICE_REMOTE_WAKEUP request. The remote wake-up resume signaling should not be generated
until the suspend state has been active for at least 5 ms. In addition, the remote wake-up resume
signaling must be generated for at least 1ms but for no more than 15 ms. When the TUSB3200A is in the
low power suspend state, asserting the external interrupt input (XINT) to the device will enable the clocks
and generate the XINT interrupt. The XINT interrupt to the MCU will automatically clear the idle mode bit
in the PCON register. As a result, MCU operation will resume with servicing the new interrupt. After the
RETI from the ISR, the next instruction to be executed will be the one following the instruction that set the
IDL bit. Please note that if the low power suspend state was not entered by setting the IDL bit, the clocks
will already be enabled and the IDL bit will already be cleared. When the firmware sets the remote
wake-up request bit (RWUP) in the USB control register, the suspend/resume logic will generate the
resume signaling upstream on the USB.
SLES018A–OCTOBER 2001–REVISED JULY 2010
2.2.6Power Supply Sequencing
Turning power supplies on and off with a mixed 5-V/3.3-V system is an important consideration. To avoid
possible damage to the TUSB3200A device, proper power sequencing is required. The turnon
requirement is that the 5-V and 3.3-V power supplies should start ramping from 0 volts and reach 95
percent of the final voltage values within 25 ms of each other. The turnoff requirement is that the 5-V and
3.3-V power supplies should start ramping from the steady-state voltage and reach 5 percent of these
values within 25 ms of each other. In addition, the difference between the two voltages should never
exceed 3.6-V while turning on or off. Normally, in a mixed voltage system, the 3.3-V supply is generated
from a voltage regulator running from the 5-V supply. A voltage regulator, such as the Texas Instrument's
TP7133, can be used to meet these power sequencing requirements.
2.2.7USB Transfers
The TUSB3200A device supports all the USB data transfer types, which are control, bulk, interrupt, and
isochronous. In accordance with the USB specification, endpoint zero is reserved for the control endpoint
and is bidirectional. In addition to the control endpoint, the TUSB3200A is capable of supporting up to 7 in
endpoints and 7 out endpoints. These additional endpoints can be configured as bulk, interrupt, or
isochronous endpoints. The MCU handles all control, bulk, and interrupt endpoint transactions. In addition
the MCU can handle isochronous endpoint transactions, such as a rate feedback endpoint to the host PC.
However, for streaming isochronous data between the host PC and the codec interface port, the DMA
channels are provided.
2.2.7.1Controls Transfers
Control transfers are used for configuration, command, and status communication between the host PC
and the TUSB3200A device. Control transfers to the TUSB3200A device use in endpoint 0 and out
endpoint 0. The three types of control transfers are control write, control write with no data stage, and
control read. Note that the control endpoint must be initialized before connecting the TUSB3200A device
to the USB.
The host PC uses a control write transfer to write data to the USB function. A control write transfer
consists of a setup stage transaction, at least one out data stage transaction, and an in status stage
transaction.
The steps to be followed for a control write transfer are as follows:
1. MCU initializes in endpoint 0 and out endpoint 0 by programming the appropriate USB endpoint
configuration blocks. This entails programming the buffer size and buffer base address, selecting the
buffer mode, enabling the endpoint interrupt, initializing the TOGGLE bit, enabling the endpoint, and
clearing the NACK bit for both in endpoint 0 and out endpoint 0.
Setup Stage Transaction:
2. The host PC sends a setup token packet followed by the setup data packet addressed to out endpoint
0. If the data is received without an error, then the UBM will write the data to the setup data packet
buffer, set the setup stage transaction (SETUP) bit to a 1 in the USB status register, return an ACK
handshake to the host PC, and assert the setup stage transaction interrupt. Note that as long as the
setup transaction (SETUP) bit is set to a 1, the UBM will return a NAK handshake for any data stage or
status stage transactions regardless of the endpoint 0 NACK or STALL bit values.
3. The MCU services the interrupt and reads the setup data packet from the buffer then decodes the
command. If the command is not supported or valid, the MCU should set the STALL bit in the out
endpoint 0 configuration byte and the in endpoint 0 configuration byte before clearing the setup stage
transaction (SETUP) bit. This will cause the device to return a STALL handshake for any data stage or
status stage transactions. After reading the data packet and decoding the command, the MCU should
clear the interrupt, which will automatically clear the setup stage transaction status bit. The MCU
should also set the TOGGLE bit in the out endpoint 0 configuration byte to a 1. For control write
transfers, the PID used by the host for the first out data packet will be a DATA1 PID and the TOGGLE
bit must match.
www.ti.com
Data Stage Transaction(s):
1. The host PC sends an out token packet followed by a data packet addressed to out endpoint 0. If the
data is received without an error, then the UBM will write the data to the endpoint buffer, update the
data count value, toggle the TOGGLE bit, set the NACK bit to a 1, return an ACK handshake to the
host PC, and assert the endpoint interrupt.
2. The MCU services the interrupt and reads the data packet from the buffer. To read the data packet,
the MCU first needs to obtain the data count value. After reading the data packet, the MCU should
clear the interrupt and clear the NACK bit to allow the reception of the next data packet from the host
PC.
3. If the NACK bit is set to a 1 when the data packet is received, the UBM simply returns a NAK
handshake to the host PC. IF the STALL bit is set to a 1 when the data packet is received, the UBM
simply returns A STALL handshake to the host PC. If a CRC or bit stuff error occurs when the data
packet is received, then no handshake is returned to the host PC.
Status Stage Transaction:
1. For in endpoint 0, the MCU updates the data count value to zero, sets the TOGGLE bit to 1, then
clears the NACK bit to a 0 to enable the data packet to be sent to the host PC. Note that for a status
stage transaction a null data packet with a DATA1 PID is sent to the host PC.
2. The host PC sends an in token packet addressed to in endpoint 0. After receiving the in token, the
UBM transmits a null data packet to the host PC. If the data packet is received without errors by the
host PC, then an ACK handshake is returned. The UBM will then toggle the TOGGLE bit, set the
NACK bit to a 1, and assert the endpoint interrupt.
3. If the NACK bit is set to a 1 when the in token packet is received, the UBM simply returns a NAK
handshake to the host PC. IF the STALL bit is set to a 1 when the in token packet is received, the
UBM simply returns a STALL handshake to the host PC. If no handshake packet is received from the
host PC, then the UBM prepares to retransmit the same data packet again.
2.2.7.1.2 Control Write With No Data Stage Transfer (Out Transfer)
The host PC uses a control write transfer to write data to the USB function. A control write with no data
stage transfer consists of a setup stage transaction and an in status stage transaction. For this type of
transfer, the data to be written to the USB function is contained in the two byte value field of the setup
stage transaction data packet.
The steps to be followed for a control write with no data stage transfer are as follows:
1. MCU initializes in endpoint 0 and out endpoint 0 by programming the appropriate USB endpoint
configuration blocks. This entails programming the buffer size and buffer base address, selecting the
buffer mode, enabling the endpoint interrupt, initializing the TOGGLE bit, enabling the endpoint, and
clearing the NACK bit for both in endpoint 0 and out endpoint 0.
Setup Stage Transaction:
2. The host PC sends a setup token packet followed by the setup data packet addressed to out endpoint
0. If the data is received without an error then the UBM will write the data to the setup data packet
buffer, set the setup stage transaction (SETUP) bit to a 1 in the USB status register, return an ACK
handshake to the host PC, and assert the setup stage transaction interrupt. Note that as long as the
setup transaction (SETUP) bit is set to a 1, the UBM will return a NAK handshake for any data stage or
status stage transactions regardless of the endpoint 0 NACK or STALL bit values.
3. The MCU services the interrupt and reads the setup data packet from the buffer then decodes the
command. If the command is not supported or valid, the MCU should set the STALL bit in the out
endpoint 0 configuration byte and the in endpoint 0 configuration byte before clearing the setup stage
transaction (SETUP) bit. This will cause the device to return a STALL handshake for an data stage or
status stage transactions. After reading the data packet and decoding the command, the MCU should
clear the interrupt, which will automatically clear the setup stage transaction status bit.
SLES018A–OCTOBER 2001–REVISED JULY 2010
Data Stage Transaction:(s): N/A
Status Stage Transaction:
1. For in endpoint 0, the MCU updates the data count value to zero, sets the TOGGLE bit to 1, then
clears the NACK bit to a 0 to enable the data packet to be sent to the host PC. Note that for a status
stage transaction a null data packet with a DATA1 PID is sent to the host PC.
2. The host PC sends an in token packet addressed to in endpoint 0. After receiving the in token, the
UBM transmits a null data packet to the host PC. If the data packet is received without errors by the
host PC, then an ACK handshake is returned. The UBM will then toggle the TOGGLE bit, set the
NACK bit to a 1 and assert the endpoint interrupt.
3. If the NACK bit is set to a 1 when the in token packet is received, the UBM simply returns a NAK
handshake to the host PC. IF the STALL bit is set to a 1 when the in token packet is received, the
UBM simply returns a STALL handshake to the host PC. If no handshake packet is received from the
host PC, then the UBM prepares to retransmit the same data packet again.
2.2.7.1.3 Control Read Transfer (In Transfer)
The host PC uses a control read transfer to read data to the USB function. A control read transfer consists
of a setup stage transaction, at least one in data stage transaction and an out status stage transaction.
The steps to be followed for a control read transfer are as follows:
1. MCU initializes in endpoint 0 and out endpoint 0 by programming the appropriate USB endpoint
configuration blocks. This entails programming the buffer size and buffer base address, selecting the
buffer mode, enabling the endpoint interrupt, initializing the TOGGLE bit, enabling the endpoint, and
clearing the NACK bit for both in endpoint 0 and out endpoint 0.
2. The host PC sends a setup token packet followed by the setup data packet addressed to out endpoint
0. If the data is received without an error then the UBM will write the data to the setup data packet
buffer, set the setup stage transaction (SETUP) bit to a 1 in the USB status register, return an ACK
handshake to the host PC and assert the setup stage transaction interrupt. Note that as long as the
setup transaction (SETUP) bit is set to a 1, the UBM will return a NAK handshake for any data stage or
status stage transactions regardless of the endpoint 0 NACK or STALL bit values.
3. The MCU services the interrupt and reads the setup data packet fro the buffer then decodes the
command. If the command is not supported or valid, the MCU should set the STALL bit in the out
endpoint 0 configuration byte and the in endpoint 0 configuration byte before clearing the setup stage
transaction (SETUP) bit. This will cause the device to return a STALL handshake for any data stage or
status stage transactions. After reading the data packet and decoding the command, the MCU should
clear the interrupt, which will automatically clear the setup stage transaction status bit. The MCU
should also set the TOGGLE bit in the in endpoint 0 configuration byte to a 1. For control read
transfers, the PID used by the host for the first in data packet will be a DATA1 PID.
Data Stage Transaction:(s):
1. The data packet to be sent to the host PC is written to the in endpoint 0 buffer by the MCU. The MCU
also updates the data count value then clears the in endpoint 0 NACK bit to a 0 to enable the data
packet to be sent to the host PC.
2. The host PC sends an in token packet addressed to the in endpoint 0. After receiving the in token, the
UBM transmits the data packet to the host PC. IF the data packet is received without errors by the host
PC, then an ACK handshake is returned. The UBM will then toggle the TOGGLE bit, set the NACK bit
to a 1 and assert the endpoint interrupt.
3. The MCU services the interrupt and prepares to send the next data packet to the host PC.
4. If the NACK bit is set to a 1 when the in token packet is received, the UBM simply returns a NAK
handshake to the host PC. IF the STALL bit is set to a 1 when the in token packet is received, the
UBM simply returns a STALL handshake to the host PC. If a no handshake packet is received from the
host PC, then the UBM prepares to retransmit the same data packet again.
5. MCU continues to send data packets until all data has been sent to the host PC.
www.ti.com
Status Stage Transaction:
1. For out endpoint 0, the MCU sets the TOGGLE bit to 1, then clears the NACK bit to a 0 to enable the
data packet to be sent to the host PC. Note that for a status stage transaction a null data packet with a
DATA1 PID is sent to the host PC.
2. The host PC sends an out token packet addressed to out endpoint 0. If the data packet is received
without an error then the UBM will update the data count value, toggle the TOGGLE bit, set the NACK
bit to a 1, return an ACK handshake to the host PC and assert the endpoint interrupt.
3. The MCU services the interrupt. If the status stage transaction completed successfully, then the MCU
should clear the interrupt and clear the NACK bit.
4. If the NACK bit is set to a 1 when the in data packet is received, the UBM simply returns a NAK
handshake to the host PC. If the STALL bit is set to a 1 when the in data packet is received, the UBM
simply returns a STALL handshake to the host PC. If a CRC or bit stuff error occurs when the data
packet is received, then no handshake is returned to the host PC.
2.2.7.2Interrupt Transfers
The TUSB3200A supports interrupt data transfers both to and from the host PC. Devices that need to
send or receive a small amount of data with a specified service period should use the interrupt transfer
type. In endpoints 1 through 7 and out endpoints 1 through 7 can all be configured as interrupt endpoints.
2.2.7.2.1 Interrupt Out Transaction
The steps to be followed for an interrupt out transaction are as follows:
1. MCU initializes one of the out endpoints as an out interrupt endpoint by programming the appropriate
2. The host PC sends an out token packet followed by a data packet addressed to the out endpoint. If the
3. The MCU services the interrupt and reads the data packet from the buffer. To read the data packet,
4. If the NACK bit is set to a 1 when the data packet is received, the UBM simply returns a NAK
SLES018A–OCTOBER 2001–REVISED JULY 2010
USB endpoint configuration block. This entails programming the buffer size and buffer base address,
selecting the buffer mode, enabling the endpoint interrupt, initializing the toggle bit, enabling the
endpoint, and clearing the NACK bit.
data is received without an error then the UBM will write the data to the endpoint buffer, update the
data count value, toggle the toggle bit, set the NACK bit to a 1, return an ACK handshake to the host
PC and assert the endpoint interrupt.
the MCU first needs to obtain the data count value. After reading the data packet, the MCU should
clear the interrupt and clear the NACK bit to allow the reception of the next data packet from the host
PC.
handshake to the host PC. If the STALL bit is set to a 1 when the data packet is received, the UBM
simply returns a STALL handshake to the host PC. If a CRC or bit stuff error occurs when the data
packet is received, then no handshake is returned to the host PC.
NOTE
In double buffer mode for interrupt out transactions, the UBM selects between the X and Y
buffer based on the value of the toggle bit. If the toggle bit is a 0, the UBM will write the data
packet to the X buffer. If the toggle bit is a 1, the UBM will write the data packet to the Y
buffer. When a data packet is received, the MCU could determine which buffer contains the
data packet by reading the toggle bit. However, when using double buffer mode, the
possibility exists for data packets to be received and written to both the X and Y buffer before
the MCU responds to the endpoint interrupt. In this case, by simply using the toggle bit to
determine which buffer contains the data packet would not work. Hence, in double buffer
mode, the MCU should read the X buffer NACK bit, the Y buffer NACK bit and the toggle bit
to determine the status of the buffers.
2.2.7.2.2 Interrupt In Transaction
The steps to be followed for an interrupt in transaction are as follows:
1. MCU initializes one of the in endpoints as an in interrupt endpoint by programming the appropriate
USB endpoint configuration block. This entails programming the buffer size and buffer base address,
selecting the buffer mode, enabling the endpoint interrupt, initializing the toggle bit, enabling the
endpoint, and setting the NACK bit.
2. The data packet to be sent to the host PC is written to the buffer by the MCU. The MCU also updates
the data count value then clears the NACK bit to a 0 to enable the data packet to be sent to the host
PC.
3. The host PC sends an in token packet addressed to the in endpoint. After receiving the in token, the
UBM transmits the data packet to the host PC. If the data packet is received without errors by the host
PC, then an ACK handshake is returned. The UBM will then toggle the toggle bit, set the NACK bit to a
1 and assert the endpoint interrupt.
4. The MCU services the interrupt and prepares to send the next data packet to the host PC.
5. If the NACK bit is set to a 1 when the in token packet is received, the UBM simply returns a NAK
handshake to the host PC. If the STALL bit is set to a 1 when the In token packet is received, the UBM
simply returns a STALL handshake to the host PC. If no handshake packet is received from the host
PC, then the UBM prepares to retransmit the same data packet again.
In double buffer mode for interrupt in transactions, the UBM selects between the X and Y
buffer based on the value of the toggle bit. If the toggle bit is a 0, the UBM will read the data
packet from the X buffer. If the toggle bit is a 1, the UBM will read the data packet from the Y
buffer.
2.2.7.3Bulk Transfers
The TUSB3200A supports bulk data transfers both to and from the host PC. Devices that need to send or
receive a large amount of data without a suitable bandwidth should use the bulk transfer type. In
endpoints 1 through 7 and out endpoints 1 through 7 can all be configured as bulk endpoints.
2.2.7.3.1 Bulk Out Transaction
The steps to be followed for a bulk out transaction are as follows:
1. MCU initializes one of the out endpoints as an out bulk endpoint by programming the appropriate USB
endpoint configuration block. This entails programming the buffer size and buffer base address,
selecting the buffer mode, enabling the endpoint interrupt, initializing the toggle bit, enabling the
endpoint, and clearing the NACK bit.
2. The host PC sends an out token packet followed by a data packet addressed to the out endpoint. If the
data is received without an error then the UBM will write the data to the endpoint buffer, update the
data count value, toggle the toggle bit, set the NACK bit to a 1, return an ACK handshake to the host
PC and assert the endpoint interrupt.
3. The MCU services the interrupt and reads the data packet from the buffer. To read the data packet,
the MCU first needs to obtain the data count value. After reading the data packet, the MCU should
clear the interrupt and clear the NACK bit to allow the reception of the next data packet from the host
PC.
4. If the NACK bit is set to a 1 when the data packet is received, the UBM simply returns a NAK
handshake to the host PC. If the STALL bit is set to a 1 when the data packet is received, the UBM
simply returns a STALL handshake to the host PC. If a CRC or bit stuff error occurs when the data
packet is received, then no handshake is returned to the host PC.
www.ti.com
NOTE
NOTE
In double buffer mode for bulk out transactions, the UBM selects between the X and Y buffer
based on the value of the toggle bit. If the toggle bit is a 0, the UBM will write the data packet
to the X buffer. If the toggle bit is a 1, the UBM will write the data packet to the Y buffer.
When a data packet is received, the MCU could determine which buffer contains the data
packet by reading the toggle bit. However, when using double buffer mode, data packets
may be received and written to both the X and Y buffer before the MCU responds to the
endpoint interrupt. In this case, simply using the toggle bit to determine which buffer contains
the data packet would not work. Hence, in double buffer mode, the MCU should read the X
buffer NACK bit, the Y buffer NACK bit, and the toggle bit to determine the status of the
buffers.
2.2.7.3.2 Bulk In Transaction
The steps to be followed for a bulk in transaction are as follows:
1. MCU initializes one of the in endpoints as an in bulk endpoint by programming the appropriate USB
endpoint configuration block. This entails programming the buffer size and buffer base address,
selecting the buffer mode, enabling the endpoint interrupt, initializing the toggle bit, enabling the
endpoint, and setting the NACK bit.
2. The data packet to be sent to the host PC is written to the buffer by the MCU. The MCU also updates
the data count value then clears the NACK bit to a 0 to enable the data packet to be sent to the host
PC.