ST AN2148 APPLICATION NOTE

AN2148
APPLICATION NOTE
STOTG04 IN AUDIO CARKIT ENVIRONMENT
1 - INTRODUCTION
This application note describes the application of the STOTG04 full-speed USB-OTG transceiver in an audio carkit environmen t. The paper also illustrates the carkit use and operation, connection b etween cellular phone and the carkit, physical co nnection and external circuitry of the STOTG04 required for a correct operation. Proper setup of the internal registe rs of the STOTG04 ne eded for aud io mode is a lso described. The information in this application note is intended for system design engineers who plan to use the STOTG0 4 transceiver as a USB -OTG physical layer device i n equipment using the un iversal serial bus even for audio signals.
Specification [3] defines a standard method for routing audio and UART signals to an analog carkit and other accessories (chargers and RS232 devices) th rough a phone’s Mini-AB USB receptacle. A carkit consists of a m icrophone, speaker, and Mini-B plug to connect a p hone. It may also c ontain a button, LED, and a cradle for the phone. The carkit may be integrated into a car stereo as shown in Figure 1. The connection between a phone and a carkit can be provided using either a standard Mini-USB cable with four wires plus shield or a captive cable with five wires plus shield.
Figure 1 : Car S ter eo Carkit I m plement ation
Cellular Phone
Mini-B Plug
Mini-A Plug
The carkit interface is intended to enable the following features between a phone and a car stereo: – pho ne charg ing – hands free speakerphone – push-to-talk – ster eo playback – others (like telematics, navigation system, etc.)
As most phones currently support USB signaling, it is planned that car stereos will support USB too. It will allow the transfer of following data using the universal serial bus:
– aud io files – video files – images – data
Car HiFi with Integrated CarkitCar HiFi with Integrated Carkit
Car Stereo with Integrated Carkit
Rev. 1
1/8May 2005
AN2148 - APPLICAT ION NOTE
2 - CARKIT INTERFACE ARCHITECTURE
The phone‘s Mini-AB USB receptacle consists of four signal lines (VBUS, D+, D-, and ID), ground, and a shield. The carkit interface allows the use of these wires in three different signaling modes:
– UART mode – mono m ode – ster eo mode
Alternate functions of the USB signal lines are described in Table 1 for each particular carkit signaling mode.
Table 1 : Alternate Functions of a USB Signal Lines
Line UART Mode Mono Mode Stereo Mode
VBUS VBUS VBUS VBUS
D+ RXD MIC SPKR_R
D- TXD SPKR SPKR_L ID CTL* CTL* CTL*
GND GND GND GND
SHLD SHLD CMR CMR
Note (*) The ID line is not required for 4-wire carkit interface
In all three modes, the VBUS, GND, SHL D, and ID lines perform the same function. T he VBUS line carries a 5V supply voltage from the carkit to the phone. The GND lin e is a common ground carrying return current from the phone t o the carkit. The SHLD acts as an a nalog reference between the pho ne and the carkit. The ID line is used to signal interrupt and control i nfo rmation for the five-wire protocol. If a phone is connected to a carkit using standard Mini-USB cable, it is not possible to use the ID line for signaling. In this case, it is necessary to use the four-wire comm unication protocol between the phone and carkit. When the cark it contains captive cable with an ID wire, then it is p ossible to use either the four-wire or five wire protocol. Both these protocols are defined in the specification [3].
In UART mode, the D- line carries the TXD signal from the phone to the carkit, and the D+ line carries the RXD signal from the carkit to the phone.
In mono mode, the D- line carries the m ono speaker signal from t he phone to the carkit and th e D+ line carries the microphone signal from the carkit to the phone.
In stereo mode, the D- line carries the left speaker signal from the phone to the carkit and the D+ li ne carries the right speaker signal from the phone to the carkit.
2/8
AN2148 - APPLICAT ION NOTE
The carkit connection architecture is shown in the two figures below. Figure 2 shows the interface between a phone and a carkit using standard Mini-USB cable.
Figure 2 : Carkit Four-Wire Interface
Power Management
5V_IN
USB-OTG Controller
SDA
SCL
RCV
OE_N
VP
VM
Phone Pro cessor
RXD TXD
SPKR_MIC
SPKR_L
USB-OTG Transceiver
V
SDA SCL
RCV
OE_TP_INT/ DAT_VP SE0_VM
BUS
D+
D­ID
Mini-AB
Receptable
V
BUS
D+ D­ID GND SHLD
V
BUS
D+
D­ID
GND
SHLD
Standard Mini-USB Cab le
V
BUS
D+ D­ID GND SHLD
Mini-A
Receptable
V
BUS
D+
D­ID
GND
SHLD
Voltage Regulator
5V_OUT
Carkit Amplifier
SPKR_MIC SPKR_L
CMR
RXD_SDA
TXD_SCL
Carkit Control
Figure 3 shows the interface between a phone and a carkit using captive cable with five wires. Figure 3 : Carkit Five-Wire Interface
Power Mana ge m ent
5V_IN
USB-OTG Controller
SDA SCL
RCV
OE_N
VP
VM
USB-OTG Transceiver Mini-AB
SDA SCL
RCV
OE_TP_INT/ DAT_VP SE0_VM
V
BUS
D+
D­ID
Receptable
V
BUS
D+ D­ID GND SHLD
V
GND
SHLD
BUS
D+
D­ID
Voltage Regulator
5V_OUT
Carkit Amplifier
SPKR_MIC SPKR_L
CMR
Phone Processor
RXD TXD
SPKR_MIC
SPKR_L
RXD_SDA
TXD_SCL
Carkit Control
3/8
Loading...
+ 5 hidden pages