5.5125, 11.025, 22.05 or 44.1 kHz; 6, 12, 24 or 48 kHz)
via analog PLL (APLL).
• Selectable sample rate between 5 to 55 kHz via a
second oscillator (optional)
• One slave 20-bit I2S digital stereo recording input,
I2S and LSB justified serial formats
• Programmable Gain Amplifier for left and right channel
• Low total harmonic distortion (typical 85 dB)
• High signal-to-noise ratio (typical 90 dB)
• One stereo Line/Microphone input.
USB endpoints
• 2 control endpoints
• 2 interrupt endpoints
• 1 isochronous data sink endpoint
• 1 isochronous data source endpoint.
Document references
•
“USB Specification”
•
“USB Device Class Definition for Audio Devices”
•
“Device Class Definition for Human Interface Devices
(HID)”
•
“USB HID Usage Table”
•
“USB Common Class Specification”
.
.
1999 May 102
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
APPLICATIONS
• USB monitors
• USB speakers
• USB microphones
• USB headsets
• USB telephone/answering machines
• USB links in consumer audio devices.
GENERAL DESCRIPTION
The UDA1325 is a single chip stereo USB codec
incorporating bitstream converters designed for
implementation in USB-compliant audio peripherals and
multimedia audio applications. It contains a USB interface,
an embedded microcontroller, an Analog-to-Digital
Interface (ADIF) and an Asynchronous Digital-to-Analog
Converter (ADAC).
The USB interface consists of an analog front-end and a
USB processor. The analog front-end transforms the
differential USB data into a digital data stream. The USB
processor buffers the incoming and outgoing data from the
analog front-end and handles all low-level USB protocols.
The USB processor selects the relevant data from the
universal serial bus, performs an extensive error detection
and separates control information and audio information.
The control information is made accessible to the
microcontroller. At playback, the audio information
becomes available at the digital I
module or is fed directly to the ADAC. At recording, the
audio information is delivered by the ADIF or by the digital
I2S input of the I2S-bus interface.
2
S output of the digital I/O
All I2S inputs and I2S outputs support standard I2S-bus
format and the LSB justified serial data format with word
lengths of 16, 18 and 20 bits.
Via the digital I/O module with its I2S input and output, an
external DSP can be used for adding extra sound
processing features for the audio playback channel.
The microcontroller is responsible for handling the
high-level USB protocols, translating the incoming control
requests and managing the user interface via general
purpose pins and an I2C-bus.
The ADAC enables the wide and continuous range of
playback sampling frequencies. By means of a Sample
Frequency Generator (SFG), the ADAC is able to
reconstruct the average sample frequency from the
incoming audio samples. The ADAC also performs the
playback sound processing. The ADAC consists of a
FIFO, an unique audio feature processing DSP, the SFG,
digital filters, a variable hold register, a Noise Shaper (NS)
and a Filter Stream DAC (FSDAC) with line output drivers.
The audio information is applied to the ADAC via the USB
processor or via the digital I2S input of the digital I/O
module.
The ADIF consists of an Programmable Gain Amplifier
(PGA), an Analog-to-Digital Converter (ADC) and a
Decimator Filter (DF). An Analog Phase Lock Loop (APLL)
or oscillator is used for creating the clock signal of the
ADIF. The clock frequency for the ADIF can be controlled
via the microcontroller. Several clock frequencies are
possible for sampling the analog input signal at different
sampling rates.
The wide dynamic range of the bitstream conversion
technique used in the UDA1325 for both the playback and
recording channel guarantees a high audio sound quality.
The pin numbers given in parenthesis refer to the SDIP42 version.
Fig.1 Block diagram (QFP64 package).
1999 May 105
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
PINNING
SYMBOL
PIN
QFP64
PIN
SDIP42
I/ODESCRIPTION
GP3/WSO15I/Ogeneral purpose pin 3 or word select output
GP4/BCKO26I/Ogeneral purpose pin 4 or bit clock output
P0.53−I/OPort 0.5 of the microcontroller
SHTCB47Ishift clock of the test control block (active HIGH)
P0.65−I/OPort 0.6 of the microcontroller
D−68I/Onegative data line of the differential data bus, conforms to the USB
standard
P0.77−I/OPort 0.7 of the microcontroller
D+89I/Opositive data line of the differential data bus, conforms to the USB
standard
V
V
V
V
DDI
SSI
SSE
DDE
910−digital supply voltage for core
1011−digital ground for core
1112−digital ground for I/O pads
1213−digital supply voltage for I/O pads
GP1/DI1314I/Ogeneral purpose pin 1 or data input
P2.014−I/OPort 2.0 of the microcontroller
GP5/WSI1515I/Ogeneral purpose pin 5 or word select input
P2.116−I/OPort 2.1 of the microcontroller
GP0/BCKI1716I/Ogeneral purpose pin 0 or bit clock input
P2.218−I/OPort 2.2 of the microcontroller
SCL1917I/Oserial clock line I
2
C-bus
P2.320−I/OPort 2.3 of the microcontroller
SDA2118I/Oserial data line I
2
C-bus
P2.422−I/OPort 2.4 of the microcontroller
P2.523−I/OPort 2.5 of the microcontroller
V
2822−supply crystal oscillator (48 MHz)
P2.629−I/OPort 2.6 of the microcontroller
P2.730−I/OPort 2.7 of the microcontroller
PSEN31−I/Oprogram store enable (active LOW)
V
V
DDO
SSO
3223−supply voltage for operational amplifier
3324−operational amplifier ground
VOUTL3425Ovoltage output left channel
TC3526Itest control input (active HIGH)
RTCB3627Iasynchronous reset input of the test control block (active HIGH)
VOUTR3728Ovoltage output right channel
1999 May 106
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
SYMBOL
V
DDA1
V
SSA1
V
ref(DA)
V
ref(AD)
V
DDA2
PIN
QFP64
3829−analog supply voltage 1
3930−analog ground 1
4031Oreference voltage output DAC
4132Oreference voltage output ADC
4233−analog supply voltage 2
PIN
SDIP42
I/ODESCRIPTION
VINL4334Iinput signal left channel PGA
V
SSA2
4435−analog ground 2
n.c.45−−not connected
n.c.46−−not connected
VINR4736Iinput signal right channel PGA
EA48−−external access (active LOW)
VRN4937Inegative reference input voltage ADC
ALE50−−address latch enable (active HIGH)
VRP5138Ipositive reference input voltage ADC
V
DDA3
5239−supply voltage for crystal oscillator and analog PLL
XTAL2a5340Ocrystal output (analog; ADC)
XTAL1a5441Icrystal input (analog; ADC)
V
SSA3
5542−crystal oscillator and analog PLL ground
P0.056−I/OPort 0.0 of the microcontroller
DA571Idata Input (digital)
P0.158−I/OPort 0.1 of the microcontroller
WS592Iword select Input (digital)
P0.260−I/OPort 0.2 of the microcontroller
BCK613Ibit clock Input (digital)
P0.362−I/OPort 0.3 of the microcontroller
GP2/DO634I/Ogeneral purpose pin 2 or data output
P0.464−I/OPort 0.4 of the microcontroller
FUNCTIONAL DESCRIPTION
The Universal Serial Bus (USB)
Data and power is transferred via the USB over a 4-wire
cable. The signalling occurs over two wires and
point-to-point segments. The signals on each segment are
differentially driven into a cable of 90 Ω intrinsic
impedance. The differential receiver features input
sensitivity of at least 200 mV and sufficient common mode
The analog front-end is an on-chip generic USB
transceiver. It is designed to allow voltage levels up to V
DD
from standard or programmable logic to interface with the
physical layer of the USB. It is capable of receiving and
transmitting serial data at full speed (12 Mbits/s).
The USB processor
The USB processor forms the interface between the
analog front-end, the ADIF, the ADAC and the
microcontroller. The USB processor consists of:
• A bit clock recovery circuit
• The Philips Serial Interface Engine (PSIE)
• The Memory Management Unit (MMU)
• The Audio Sample Redistribution (ASR) module.
Bit clock recovery
The bit clock recovery circuit recovers the clock from the
incoming USB data stream using four times over-sampling
principle. It is able to track jitter and frequency drift
specified by the USB specification.
Philips Serial Interface Engine (PSIE)
The Philips SIE implements the full USB protocol layer.
It translates the electrical USB signals into data bytes and
control signals. Depending upon the USB device address
and the USB endpoint address, the USB data is directed
to the correct endpoint buffer. The data transfer could be
of bulk, isochronous, control or interrupt type.
Fig.3 Pin configuration (SDIP42 package).
1999 May 109
The functions of the PSIE include: synchronization pattern
recognition, parallel/serial conversion, bit
stuffing/de-stuffing, CRC checking/generation, PID
verification/generation, address recognition and
handshake evaluation/generation.
The amount of bytes/packet on all endpoints is limited by
the PSIE hardware to 8 bytes/packet, except for both
isochronous endpoints (336 bytes/packet).
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
Memory Management Unit (MMU) and integrated RAM
The MMU and integrated RAM handle the temporary data
storage of all USB packets that are received or sent over
the bus.
The MMU and integrated RAM handle the differences
between data rate of the USB and the application allowing
the microcontroller to read and write USB packets at its
own speed.
The audio data is transferred via an isochronous data sink
endpoint or source endpoint and is stored directly into the
RAM. Consequently, no handshaking mechanism is used.
Audio Sample Redistribution (ASR)
The ASR reads the audio samples from the MMU and
integrated RAM and distributes these samples equidistant
over a 1 ms frame period. The distributed audio samples
are translated by the digital I/O module to standard I
2
S-bus
format or 16, 18 or 20 bits LSB-justified I2S-bus format.
The ASR generates the bit clock output (BCKO) and the
Word Select Output signal (WSO) of the I2S output.
The 80C51 microcontroller
The microcontroller receives the control information
selected from the USB by the USB processor. It can be
used for handling the high-level USB protocols and the
user interfaces. The microcontroller does not handle the
audio stream.
The major task of the software process that is mapped
upon the microcontroller, is to control the different modules
of the UDA1325 in such a way that it behaves as a USB
device.
The embedded 80C51 microcontroller is compatible with
the 80C51 family of microcontrollers described in the
80C51 family single-chip 8-bit microcontrollers of “Data
Handbook IC20”, which should be read in conjunction with
this data sheet.
The Analog-to-Digital Interface (ADIF)
The ADIF is used for sampling an analog input signal from
a microphone or line input and sending the audio samples
to the USB interface. The ADIF consists of a stereo
Programmable Gain Amplifier (PGA), a stereo
Analog-to-Digital Converter (ADC) and Decimation Filters
(DFs). The sample frequency of the ADC is determined by
the ADC clock (see Section “The clock source of the
analog-to-digital interface”). The user can also select a
digital serial input instead of an analog input. In this event
the sample frequency is determined by the continuous WS
clock with a range between 5 to 55 kHz. Digital serial input
is possible with four formats (I
2
S-bus, 16, 18 or 20 bits
LSB-justified).
Programmable Gain Amplifier circuit (PGA)
This circuit can be used for a microphone or line input.
The input audio signals can be amplified by seven different
gains (−3 dB, 0 dB, 3 dB, 9 dB, 15 dB, 21 dB and 27 dB).
The gain settings are given in Table 17.
The Analog-to-Digital Converter (ADC)
The stereo ADC of the UDA1325 consists of two 3rd-order
Sigma-Delta modulators. They have a modified
Ritchie-coder architecture in a differential switched
capacitor implementation. The oversampling ratio is 128.
Both ADCs can be switched off in power saving mode (left
and right separate). The ADC clock is generated by the
analog PLL or the ADC oscillator.
The Decimation Filter (DF)
The decimator filter converts the audio data from 128f
s
down to 1fs with a word width of 8, 16 or 24 bits. This data
can be transmitted over the USB as mono or stereo in
1, 2 or 3 bytes/sample. The decimator filters are clocked
by the ADC clock.
The internal ROM size is 12 kbyte. The internal RAM size
is 256 byte. A Watchdog Timer is not integrated.
1999 May 1010
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
The clock source of the analog-to-digital interface
The clock source of the ADIF is the analog PLL or the ADC oscillator. The preferred clock source can be selected.
The ADC clock used for the ADC and decimation filters is obtained by dividing the clock signal coming from the analog
PLL or from the ADC oscillator by a factor Q.
Using the analog PLL the user can select 3 basic APLL clock frequencies (see Table 1).
By connecting the appropriate crystal the user can choose any clock signal between 8.192 and 14.08 MHz via the ADC
oscillator.
Table 1 The analog PLL clock output frequencies
FCODE (1 AND 0)
APLL CLOCK
FREQUENCY (MHz)
0011.2896
018.1920
1012.2880
1111.2896
The dividing factor Q can be selected via the microcontroller. With this dividing factor Q the user can select a range of
ADC clock signals allowing several different sample frequencies (see Table 2).
Table 2 ADC clock frequencies and sample frequencies based upon using the APLL as a clock source
APLL CLOCK
FREQUENCY (MHz)
DIVIDE FACTOR Q ADC CLOCK FREQUENCY (MHz)SAMPLE FREQUENCY (kHz)
Table 3 ADC clock frequencies and sample frequencies based upon using the OSCAD as a clock source
OSCAD CLOCK
FREQUENCY (MHz)
(1)
f
osc
DIVIDE FACTOR Q ADC CLOCK FREQUENCY (MHz)SAMPLE FREQUENCY (kHz)
(2)
Q
f
/(2Q)f
osc
/(256Q)
osc
Notes
1. The oscillator frequency (and therefore the crystal) of OSCAD must be between 8.192 and 14.08 MHz.
2. The Q factor can be 1, 2, 4 or 8.
3. Sample frequencies below 5 kHz and above 55 kHz are not supported.
1999 May 1011
(3)
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
The Asynchronous Digital-to-Analog Converter
(ADAC)
The ADAC receives audio data from the USB processor or
from the digital I/O-bus. The ADAC is able to reconstruct
the sample clock from the rate at which the audio samples
arrive and handles the audio sound processing. After the
processing, the audio signal is upsampled, noise-shaped
and converted to analog output voltages capable of driving
a line output.
The ADAC consists of:
• A Sample Frequency Generator (SFG)
• FIFO registers
• An audio feature processing DSP
• Two digital upsampling filters and a variable hold
register
• A digital Noise Shaper (NS)
• A Filter Stream DAC (FSDAC) with integrated filter and
line output drivers.
The Sample Frequency Generator (SFG)
The SFG controls the timing signals for the asynchronous
digital-to-analog conversion. By means of a digital PLL,
the SFG automatically recovers the applied sampling
frequency and generates the accurate timing signals for
the audio feature processing DSP and the upsampling
filters.
The lock time of the digital PLL can be chosen (see
Table 8). While the digital PLL is not in lock, the ADAC is
muted. As soon as the digital PLL is in lock, the mute is
released as described in Section “Soft mute control”.
Table 4 Frequency domains for audio processing by the
DSP
DOMAINSAMPLE FREQUENCY (kHz)
15to12
212to25
325to40
440to55
The upsampling filters and variable hold function
After the audio feature processing DSP two upsampling
filters and a variable hold function increase the
oversampling rate to 128f
.
s
The noise shaper
A 3rd-order noise shaper converts the oversampled data
to a noise-shaped bitstream for the FSDAC. The in-band
quantization noise is shifted to frequencies well above the
audio band.
The Filter Stream DAC (FSDAC)
The FSDAC is a semi-digital reconstruction filter that
converts the 1-bit data stream of the noise shaper to an
analog output voltage. The filter coefficients are
implemented as current sources and are summed at
virtual ground of the output operational amplifier. In this
way very high signal-to-noise performance and low clock
jitter sensitivity is achieved. A post filter is not needed
because of the inherent filter function of the DAC.
On-board amplifiers convert the FSDAC output current to
an output voltage signal capable of driving a line output.
First-In First-Out (FIFO) registers
The FIFO registers are used to store the audio samples
temporarily coming from the USB processor or from the
digital I/O input. The use of a FIFO (in conjunction with the
SFG) is necessary to remove all jitter present on the
incoming audio signal.
The sound processing DSP
A DSP processes the sound features. The control and
mapping of the sound features is explained in Section
“Controlling the playback features of the ADAC”.
Depending on the sampling rate (f
) the DSP knows four
s
frequency domains in which the treble and bass are
regulated. The domain is chosen automatically.
CONTROLLING THE PLAYBACK FEATURES
Controlling the playback features of the ADAC
The exchange of control information between the microcontroller and the ADAC is accomplished through a serial
hardware interface comprising the following pins:
L3_DATA: microcontroller interface data line
L3_MODE: microcontroller interface mode line
L3_CLK: microcontroller interface clock line.
See also the description of Port 3 of the 80C51 microcontroller.
ENDPOINT
INDEX
1in8
3in8
ENDPOINT TYPEDIRECTION
MAX. PACKET
SIZE (BYTES)
Information transfer through the microcontroller bus is organized in accordance with the so-called ‘L3’ format, in which
two different modes of operation can be distinguished; address mode and data transfer mode.
The address mode is required to select a device communicating via the L3-bus and to define the destination registers
for the data transfer mode. Data transfer for the UDA1325 can only be in one direction, from microcontroller to ADAC to
program its sound processing features and other functional features.
DDRESS MODE
A
The address mode is used to select a device (in this case the ADAC) for subsequent data transfer and to define the
destination registers. The address mode is characterized by L3_MODE being LOW and a burst of 8 pulses on L3_CLK,
accompanied by 8 data bits on L3_DATA. Data bits 0 and 1 indicate the type of the subsequent data transfer as shown
in Table 6.
1999 May 1013
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
Table 6 Selection of data transfer type
BIT1BIT0DATA TRANSFER TYPE
00audio feature registers (volume left, volume right, bass and treble)
01not used
10control registers
11not used
Data bits 7 to 2 represent a 6-bit device address, with bit 7 being the MSB and bit 2 the LSB. The address of the ADAC
is 000101 (bits 7 to 2). In the event that the ADAC receives a different address, it will deselect its microcontroller interface
logic.
D
AT A TRANSFER MODE
The selection preformed in the address mode remains active during subsequent data transfers, until the ADAC receives
a new address command. The data transfer mode is characterized by L3_MODE being HIGH and a burst of 8 pulses on
L3_CLK, accompanied by 8 data bits. All transfers are bitwise, i.e. they are based on groups of 8 bits. Data will be stored
in the ADAC after the eight bit of a byte has been received. The principle of a multibyte transfer is illustrated in the figure
below.
t
dbook, full pagewidth
L3MODE
L3CLOCK
L3DATA
address
ROGRAMMING THE SOUND PROCESSING AND OTHER FEATURES
P
halt
addressdata byte #1data byte #2
MGD018
The sound processing and other feature values are stored in independent registers. The first selection of the registers is
achieved by the choice of data transfer type. This is performed in the address mode, bits 1 and 0 (see Table 6).
The second selection is performed by bit 7 and/or bit 6 of the data byte depending of the selected data transfer type.
Data transfer type ‘audio feature registers’
When the data transfer type ‘audio feature registers’ is selected 4 audio feature registers can be selected depending on
bits 7 and 6 of the data byte (see Table 7).
1999 May 1014
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
Table 7 ADAC audio feature registers
BIT7BIT6BIT5BIT4BIT3BIT2BIT1BIT0REGISTER
00VR5VR4VR3VR2VR1VR0volume right
01VL5VL4VL3VL2VL1VL0volume left
10XBB4BB3BB2BB1BB0bass
11XTR4TR3TR2TR1TR0treble
The sequence for controlling the ADAC audio feature registers via the L3-bus is given in the figure below.
book, full pagewidth
(L3_MODE = LOW)
L3_DATA
(L3_MODE = HIGH)
L3_DATA
L3_CLK
DATA_TRANSFER_TYPE
0
bit 0
X
bit 0
0101
LEFT VOLUME; TREBLE
RIGHT VOLUME; BASS
XXXX
DEVICE ADDRESS = $5
000
X
bit 7
REGISTER
ADDRESS
XX
bit 7
MGS270
Data transfer type ‘control registers’
When the data transfer type ‘control registers’ is selected 2 general control registers can be selected depending on bit 7
of the data byte (see Table 7).
The sequence for controlling the ADAC control registers via the L3-bus is given in the figure below.
book, full pagewidth
(L3_MODE = LOW)
L3_DATA
(L3_MODE = HIGH)
L3_DATA
DATA_TRANSFER_TYPE
0
bit 0
X
bit 0
1101
XXXX
DEVICE ADDRESS = $5
000
X
bit 7
REGISTER
ADDRESSDATA OF THE CONTROL REGISTER
XX
bit 7
L3_CLK
1999 May 1015
MGS269
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB) CODECUDA1325
Table 8 ADAC general control registers
REGISTERBITDESCRIPTIONV ALUECOMMENT
Control register 00reset ADAC0 = not reset
1 = reset
1soft mute control0 = not muted
1 = mutes
2synchronous/asynchronous0 = asynchronous
3channel manipulation0 = L -> L, R -> R
4de-emphasis0 = de-emphasis off
6 and 5 audio mode00 = flat mode
7selecting bit0
Control register 11 and 0 serial I
3 and 2 digital PLL mode00 = adaptive
4digital PLL lock mode0 = adaptive
6 and 5 digital PLL lock speed00 = lock after 512 samples
01 = lock after 2048 samples
10 = lock after 4096 samples
11 = lock after 16348 samples
select 0
select 00
select 1
select 00
Soft mute control
When the mute (bit 1 of control register 0) is active for the playback channel, the value of the sample is decreased
smoothly to zero following a raised cosine curve. There are 32 coefficients used to step down the value of the data, each
one being used 32 times before stepping to the next. This amounts to a mute transition of 23 ms at f
the mute is released, the samples are returned to the full level again following a raised cosine curve with the same
coefficients being used in reversed order.
The mute, on the master channel is synchronized to the sample clock, so that operation always takes place on complete
samples.
1999 May 1016
= 44.1 kHz. When
s
Loading...
+ 36 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.