INTEGRATED CIRCUITS
DATA SHEET
UDA1325
Universal Serial Bus (USB) CODEC
Preliminary specification |
|
1999 May 10 |
|||||
File under Integrated Circuits, IC01 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Philips Semiconductors |
Preliminary specification |
|||
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FEATURES
General
∙High Quality USB-compliant Audio/HID device
∙Supports 12 Mbits/s serial data transmission
∙Fully USB Plug and Play operation
∙Supports ‘Bus-powered’ and ‘Self-powered’ operation
∙3.3 V power supply
∙Low power consumption with optional efficient power control
∙On-chip clock oscillator, only an external crystal is required.
Audio playback channel
∙One isochronous output endpoint
∙Supports multiple audio data formats (8, 16 and 24 bits)
∙Adaptive sample frequency support from 5 to 55 kHz
∙One master 20-bit I2S digital stereo playback output, I2S and LSB justified serial formats
∙One slave 20-bit I2S digital stereo playback input, I2S and LSB justified serial formats
∙Selectable volume control for left and right channel
∙Soft mute control
∙Digital bass and treble tone control
∙Selectable on-chip digital de-emphasis
∙Low total harmonic distortion (typical 90 dB)
∙High signal-to-noise ratio (typical 95 dB)
∙One stereo Line output.
Audio recording channel
∙One isochronous input endpoint
∙Supports multiple audio data formats (8, 16 and 24 bits)
∙Twelve selectable sample rates (4, 8, 16 or 32 kHz; 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 10 |
2 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
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 I2S output of the digital I/O 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.
ORDERING INFORMATION
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.
TYPE NUMBER |
|
PACKAGE |
|
|
|
|
|
||
NAME |
DESCRIPTION |
VERSION |
||
|
||||
|
|
|
|
|
UDA1325PS |
SDIP42 |
plastic shrink dual in-line package; 42 leads (600 mil) |
SOT270-1 |
|
|
|
|
|
|
UDA1325H |
QFP64 |
plastic quad flat package; 64 leads (lead length 1.95 mm); |
SOT319-2 |
|
|
|
body 14 × 20 × 2.8 mm |
|
|
|
|
|
|
1999 May 10 |
3 |
Philips Semiconductors |
|
|
Preliminary specification |
|||
|
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
|
|
UDA1325 |
|||
|
|
|
|
|
|
|
QUICK REFERENCE DATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
SYMBOL |
PARAMETER |
CONDITIONS |
MIN. |
TYP. |
MAX. |
UNIT |
|
|
|
|
|
|
|
Supplies |
|
|
|
|
|
|
|
|
|
|
|
|
|
VDDE |
supply voltage periphery |
|
4.75 |
5.0 |
5.25 |
V |
VDDI |
supply voltage core |
|
3.0 |
3.3 |
3.6 |
V |
IDD(tot) |
total supply current |
|
− |
60 |
tbf |
mA |
IDD(tot)(ps) |
total supply current in power-saving |
note 1 |
− |
360 |
− |
μA |
|
mode |
|
|
|
|
|
|
|
|
|
|
|
|
Dynamic performance DAC |
|
|
|
|
|
|
|
|
|
|
|
|
|
(THD + N)/S |
total harmonic distortion plus |
fs = 44.1 kHz; RL = 5 kΩ |
|
|
|
|
|
noise-to-signal ratio |
fi = 1 kHz (0 dB) |
− |
−90 |
−80 |
dB |
|
|
|
− |
0.0032 |
0.01 |
% |
|
|
fi = 1 kHz (−60 dB) |
− |
−30 |
−20 |
dB |
|
|
|
− |
3.2 |
10 |
% |
|
|
|
|
|
|
|
S/N |
signal-to-noise ratio at bipolar zero |
A-weighted at code 0000H |
90 |
95 |
− |
dBA |
|
|
|
|
|
|
|
Vo(FS)(rms) |
full-scale output voltage |
VDD = 3.3 V |
− |
0.66 |
− |
V |
|
(RMS value) |
|
|
|
|
|
|
|
|
|
|
|
|
Dynamic performance PGA and ADC |
|
|
|
|
|
|
|
|
|
|
|
|
|
(THD + N)/S |
total harmonic distortion plus |
fs = 44.1 kHz; |
|
|
|
|
|
noise-to-signal ratio |
PGA gain = 0 dB |
|
|
|
|
|
|
fi = 1 kHz; (0 dB); |
− |
−85 |
−80 |
dB |
|
|
Vi = 1.0 V (RMS) |
− |
0.0056 |
0.01 |
% |
|
|
fi = 1 kHz (−60 dB) |
− |
−30 |
−20 |
dB |
|
|
|
− |
3.2 |
10.0 |
% |
|
|
|
|
|
|
|
S/N |
signal-to-noise ratio |
Vi = 0.0 V |
90 |
95 |
− |
dBA |
General characteristics |
|
|
|
|
|
|
|
|
|
|
|
|
|
fi(s) |
audio input sample frequency |
|
5 |
− |
55 |
kHz |
Tamb |
operating ambient temperature |
|
0 |
25 |
70 |
°C |
Note
1. Exclusive the IDDE current which depends on the components connected to the I/O pins.
1999 May 10 |
4 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
BLOCK DIAGRAM |
|
|
|
|
|
|
|
|
|
CLK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D+ |
D− |
|
|
P0.7 to P0.0 |
||||||||||
|
|
|
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 (9) |
|
|
|
|
6 (8) |
|
|
|
7, 5, 3, 64, |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62, 60, 58, 56 |
|||
VSSX |
24 |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(29) 38 |
VDDA1 |
|
(30) 39 |
VSSA1 |
|
(33) 42 |
VDDA2 |
|
(35) 44 |
VSSA2 |
|
(17) 19 |
SCL |
|
MICRO- |
|
|
|
(18) 21 |
SDA |
||
CONTROLLER |
|||
|
|
||
|
|
|
|
(7) 4 |
SHTCB |
|
TEST |
|||
(26) 35 |
TC |
||
CONTROL |
|||
(27) 36 |
RTCB |
||
BLOCK |
|||
|
|
|
− |
(25) 34 |
VOUTL |
|
||
+ |
|
|
+ |
(28) 37 |
VOUTR |
|
||
− |
|
|
|
|
MGM108
The pin numbers given in parenthesis refer to the SDIP42 version.
Fig.1 Block diagram (QFP64 package).
1999 May 10 |
5 |
Philips Semiconductors |
|
|
|
Preliminary specification |
|||
|
|
|
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|||||
|
|
|
|
|
|
|
|
PINNING |
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
SYMBOL |
PIN |
PIN |
I/O |
DESCRIPTION |
|
|
|
QFP64 |
SDIP42 |
|
||||
|
|
|
|
|
|
||
|
|
|
|
|
|
||
GP3/WSO |
1 |
5 |
I/O |
general purpose pin 3 or word select output |
|
||
|
|
|
|
|
|
||
GP4/BCKO |
2 |
6 |
I/O |
general purpose pin 4 or bit clock output |
|
||
|
|
|
|
|
|
||
P0.5 |
3 |
− |
I/O |
Port 0.5 of the microcontroller |
|
||
|
|
|
|
|
|||
SHTCB |
4 |
7 |
I |
shift clock of the test control block (active HIGH) |
|||
|
|
|
|
|
|
||
P0.6 |
5 |
− |
I/O |
Port 0.6 of the microcontroller |
|
||
|
|
|
|
|
|||
D− |
6 |
8 |
I/O |
negative data line of the differential data bus, conforms to the USB |
|||
|
|
|
|
|
|
standard |
|
|
|
|
|
|
|
||
P0.7 |
7 |
− |
I/O |
Port 0.7 of the microcontroller |
|
||
|
|
|
|
|
|||
D+ |
8 |
9 |
I/O |
positive data line of the differential data bus, conforms to the USB |
|||
|
|
|
|
|
|
standard |
|
|
|
|
|
|
|
||
VDDI |
9 |
10 |
− |
digital supply voltage for core |
|
||
|
VSSI |
10 |
11 |
− |
digital ground for core |
|
|
|
VSSE |
11 |
12 |
− |
digital ground for I/O pads |
|
|
|
VDDE |
12 |
13 |
− |
digital supply voltage for I/O pads |
|
|
|
GP1/DI |
13 |
14 |
I/O |
general purpose pin 1 or data input |
|
|
|
|
|
|
|
|
|
|
|
P2.0 |
14 |
− |
I/O |
Port 2.0 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
GP5/WSI |
15 |
15 |
I/O |
general purpose pin 5 or word select input |
|
|
|
|
|
|
|
|
|
|
|
P2.1 |
16 |
− |
I/O |
Port 2.1 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
GP0/BCKI |
17 |
16 |
I/O |
general purpose pin 0 or bit clock input |
|
|
|
|
|
|
|
|
|
|
|
P2.2 |
18 |
− |
I/O |
Port 2.2 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
SCL |
19 |
17 |
I/O |
serial clock line I2C-bus |
|
|
|
P2.3 |
20 |
− |
I/O |
Port 2.3 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
SDA |
21 |
18 |
I/O |
serial data line I2C-bus |
|
|
|
P2.4 |
22 |
− |
I/O |
Port 2.4 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
P2.5 |
23 |
− |
I/O |
Port 2.5 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
VSSX |
24 |
19 |
− |
crystal oscillator ground (48 MHz) |
|
|
|
XTAL1b |
25 |
20 |
I |
crystal input (analog; 48 MHz) |
|
|
|
|
|
|
|
|
|
|
|
XTAL2b |
26 |
21 |
O |
crystal output (analog; 48 MHz) |
|
|
|
|
|
|
|
|
|
|
|
CLK |
27 |
− |
O |
48 MHz clock output signal |
|
|
|
|
|
|
|
|
|
|
|
VDDX |
28 |
22 |
− |
supply crystal oscillator (48 MHz) |
|
|
|
P2.6 |
29 |
− |
I/O |
Port 2.6 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
P2.7 |
30 |
− |
I/O |
Port 2.7 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
− |
I/O |
program store enable (active LOW) |
|
|
PSEN |
|
|
||||
|
|
|
|
|
|
|
|
|
VDDO |
32 |
23 |
− |
supply voltage for operational amplifier |
|
|
|
VSSO |
33 |
24 |
− |
operational amplifier ground |
|
|
|
VOUTL |
34 |
25 |
O |
voltage output left channel |
|
|
|
|
|
|
|
|
|
|
|
TC |
35 |
26 |
I |
test control input (active HIGH) |
|
|
|
|
|
|
|
|
||
|
RTCB |
36 |
27 |
I |
asynchronous reset input of the test control block (active HIGH) |
||
|
|
|
|
|
|
|
|
|
VOUTR |
37 |
28 |
O |
voltage output right channel |
|
|
|
|
|
|
|
|
|
|
1999 May 10 |
6 |
Philips Semiconductors |
|
|
|
Preliminary specification |
|||
|
|
|
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SYMBOL |
PIN |
PIN |
I/O |
DESCRIPTION |
|
|
|
QFP64 |
SDIP42 |
|
||||
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
VDDA1 |
38 |
29 |
− |
analog supply voltage 1 |
|
|
|
VSSA1 |
39 |
30 |
− |
analog ground 1 |
|
|
|
Vref(DA) |
40 |
31 |
O |
reference voltage output DAC |
|
|
|
Vref(AD) |
41 |
32 |
O |
reference voltage output ADC |
|
|
|
VDDA2 |
42 |
33 |
− |
analog supply voltage 2 |
|
|
|
VINL |
43 |
34 |
I |
input signal left channel PGA |
|
|
|
|
|
|
|
|
|
|
|
VSSA2 |
44 |
35 |
− |
analog ground 2 |
|
|
|
n.c. |
45 |
− |
− |
not connected |
|
|
|
|
|
|
|
|
|
|
|
n.c. |
46 |
− |
− |
not connected |
|
|
|
|
|
|
|
|
|
|
|
VINR |
47 |
36 |
I |
input signal right channel PGA |
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
− |
− |
external access (active LOW) |
|
|
EA |
|
|
||||
|
|
|
|
|
|
|
|
|
VRN |
49 |
37 |
I |
negative reference input voltage ADC |
|
|
|
|
|
|
|
|
|
|
|
ALE |
50 |
− |
− |
address latch enable (active HIGH) |
|
|
|
|
|
|
|
|
|
|
|
VRP |
51 |
38 |
I |
positive reference input voltage ADC |
|
|
|
|
|
|
|
|
||
|
VDDA3 |
52 |
39 |
− |
supply voltage for crystal oscillator and analog PLL |
||
|
XTAL2a |
53 |
40 |
O |
crystal output (analog; ADC) |
|
|
|
|
|
|
|
|
|
|
|
XTAL1a |
54 |
41 |
I |
crystal input (analog; ADC) |
|
|
|
|
|
|
|
|
|
|
|
VSSA3 |
55 |
42 |
− |
crystal oscillator and analog PLL ground |
|
|
|
P0.0 |
56 |
− |
I/O |
Port 0.0 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
DA |
57 |
1 |
I |
data Input (digital) |
|
|
|
|
|
|
|
|
|
|
|
P0.1 |
58 |
− |
I/O |
Port 0.1 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
WS |
59 |
2 |
I |
word select Input (digital) |
|
|
|
|
|
|
|
|
|
|
|
P0.2 |
60 |
− |
I/O |
Port 0.2 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
BCK |
61 |
3 |
I |
bit clock Input (digital) |
|
|
|
|
|
|
|
|
|
|
|
P0.3 |
62 |
− |
I/O |
Port 0.3 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
|
GP2/DO |
63 |
4 |
I/O |
general purpose pin 2 or data output |
|
|
|
|
|
|
|
|
|
|
|
P0.4 |
64 |
− |
I/O |
Port 0.4 of the microcontroller |
|
|
|
|
|
|
|
|
|
|
1999 May 10 |
7 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
handbook, full pagewidth
GP3/WSO 1 GP4/BCKO 2 P0.5 3 SHTCB 4 P0.6 5
D− 6
P0.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|
|
|
|
|
|
|
|
|
||||||||||||||||||
|
|
|
|
V |
|
|
|
|
V |
|
|
|
|
V |
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fig.2 Pin configuration (QFP64 package).
1999 May 10 |
8 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
handbook, halfpage |
|
|
|
VSSA3 |
DA |
1 |
|
42 |
|
|
|
|
|
|
WS |
2 |
|
41 |
XTAL1a |
|
|
|
|
|
BCK |
3 |
|
40 |
XTAL2a |
|
|
|
|
VDDA3 |
GP2/DO |
4 |
|
39 |
|
|
|
|
|
|
GP3/WSO |
5 |
|
38 |
VRP |
|
|
|
|
|
GP4/BCKO |
6 |
|
37 |
VRN |
|
|
|
|
|
SHTCB |
7 |
|
36 |
VINR |
D− |
|
|
|
VSSA2 |
8 |
|
35 |
||
D+ |
|
|
|
|
9 |
|
34 |
VINL |
|
VDDI |
|
|
|
VDDA2 |
10 |
|
33 |
||
VSSI |
|
UDA1325 |
|
Vref(AD) |
11 |
32 |
|||
VSSE |
|
|
|
Vref(DA) |
12 |
|
31 |
||
VDDE |
|
|
|
VSSA1 |
13 |
|
30 |
||
|
|
|
|
VDDA1 |
GP1/DI |
14 |
|
29 |
|
|
|
|
|
|
GP5/WSI |
15 |
|
28 |
VOUTR |
|
|
|
|
|
GP0/BCKI |
16 |
|
27 |
RTCB |
|
|
|
|
|
SCL |
17 |
|
26 |
TC |
|
|
|
|
|
SDA |
18 |
|
25 |
VOUTL |
VSSX |
|
|
|
VSSO |
19 |
|
24 |
||
|
|
|
|
VDDO |
XTAL1b |
20 |
|
23 |
|
|
|
|
|
VDDX |
XTAL2b |
21 |
|
22 |
|
|
|
|
|
|
|
|
MGM106 |
|
Fig.3 Pin configuration (SDIP42 package).
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 rejection.
The analog front-end
The analog front-end is an on-chip generic USB transceiver. It is designed to allow voltage levels up to VDD 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.
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).
1999 May 10 |
9 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
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 I2S-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 internal ROM size is 12 kbyte. The internal RAM size is 256 byte. A Watchdog Timer is not integrated.
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 (I2S-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 128fs 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.
1999 May 10 |
10 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
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) |
||
|
||
|
|
|
00 |
11.2896 |
|
|
|
|
01 |
8.1920 |
|
|
|
|
10 |
12.2880 |
|
|
|
|
11 |
11.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 |
DIVIDE FACTOR Q |
ADC CLOCK FREQUENCY (MHz) |
SAMPLE FREQUENCY (kHz) |
||||||||
FREQUENCY (MHz) |
|||||||||||
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|||
8.1920 |
1 |
|
|
4.096 |
|
|
|
32 |
|||
|
|
|
|
|
|
|
|
|
|
||
|
|
2 |
|
|
2.048 |
|
|
|
16 |
||
|
|
|
|
|
|
|
|
|
|
||
|
|
4 |
|
|
1.024 |
|
|
|
8 |
||
|
|
|
|
|
|
|
|||||
|
|
8 |
|
0.512 (not supported) |
4 (not supported) |
||||||
|
|
|
|
|
|
|
|
|
|||
11.2896 |
1 |
|
|
5.6448 |
|
|
|
44.1 |
|||
|
|
|
|
|
|
|
|
|
|
||
|
|
2 |
|
|
2.8224 |
|
|
|
22.05 |
||
|
|
|
|
|
|
|
|
|
|
||
|
|
4 |
|
|
1.4112 |
|
|
|
11.025 |
||
|
|
|
|
|
|
|
|
|
|
||
|
|
8 |
|
|
0.7056 |
|
|
|
5.5125 |
||
|
|
|
|
|
|
|
|
|
|||
12.2880 |
1 |
|
|
6.144 |
|
|
|
48 |
|||
|
|
|
|
|
|
|
|
|
|
||
|
|
2 |
|
|
3.072 |
|
|
|
24 |
||
|
|
|
|
|
|
|
|
|
|
||
|
|
4 |
|
|
1.536 |
|
|
|
12 |
||
|
|
|
|
|
|
|
|
|
|
||
|
|
8 |
|
|
0.768 |
|
|
|
6 |
||
|
|
|
|
|
|
||||||
Table 3 ADC clock frequencies and sample frequencies based upon using the OSCAD as a clock source |
|||||||||||
|
|
|
|
|
|
|
|
|
|
||
OSCAD CLOCK |
DIVIDE FACTOR Q |
ADC CLOCK FREQUENCY (MHz) |
|
SAMPLE FREQUENCY (kHz) |
|||||||
FREQUENCY (MHz) |
|
||||||||||
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
f |
(1) |
Q(2) |
|
f |
osc |
/(2Q) |
|
f |
osc |
/(256Q)(3) |
|
|
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 10 |
11 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
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”.
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 (fs) the DSP knows four frequency domains in which the treble and bass are regulated. The domain is chosen automatically.
Table 4 Frequency domains for audio processing by the DSP
DOMAIN |
SAMPLE FREQUENCY (kHz) |
|
|
1 |
5 to 12 |
|
|
2 |
12 to 25 |
|
|
3 |
25 to 40 |
|
|
4 |
40 to 55 |
|
|
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 128fs.
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.
1999 May 10 |
12 |
Philips Semiconductors |
Preliminary specification |
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|
|
USB ENDPOINT DESCRIPTION
The UDA1325 has following six endpoints:
∙USB control endpoint 0
∙USB control endpoint 1
∙USB status interrupt endpoint 1
∙USB status interrupt endpoint 2
∙Isochronous data sink endpoint
∙Isochronous data source endpoint.
Table 5 Endpoint description
ENDPOINT |
|
ENDPOINT |
ENDPOINT TYPE |
DIRECTION |
MAX. PACKET |
NUMBER |
|
INDEX |
SIZE (BYTES) |
||
|
|
|
|||
|
|
|
|
|
|
0 |
0 |
|
control (default) |
out |
8 |
|
|
|
|
|
|
|
1 |
|
|
in |
8 |
|
|
|
|
|
|
1 |
2 |
|
control |
out |
8 |
|
|
|
|
|
|
|
3 |
|
|
in |
8 |
|
|
|
|
|
|
2 |
4 |
|
interrupt |
in |
8 |
|
|
|
|
|
|
3 |
5 |
|
interrupt |
in |
8 |
|
|
|
|
|
|
4 |
6 |
|
isochronous out |
out |
336 |
|
|
|
|
|
|
5 |
7 |
|
isochronous in |
in |
336 |
|
|
|
|
|
|
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.
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.
ADDRESS MODE
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 10 |
13 |
Philips Semiconductors |
|
|
Preliminary specification |
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
UDA1325 |
|||
|
|
|
|
|
Table 6 Selection of data transfer type |
|
|
||
|
|
|
|
|
BIT1 |
|
BIT0 |
|
DATA TRANSFER TYPE |
|
|
|
|
|
0 |
|
0 |
audio feature registers (volume left, volume right, bass and treble) |
|
|
|
|
|
|
0 |
|
1 |
not used |
|
|
|
|
|
|
1 |
|
0 |
control registers |
|
|
|
|
|
|
1 |
|
1 |
not 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.
DATA 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.
thalt
ndbook, full pagewidth
L3MODE
L3CLOCK
L3DATA
address |
data byte #1 |
|
data byte #2 |
address |
MGD018 |
|
|
|
|
|
|
PROGRAMMING THE SOUND PROCESSING AND OTHER FEATURES
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 10 |
14 |
Philips Semiconductors |
|
|
|
|
|
Preliminary specification |
||
|
|
|
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
|
|
UDA1325 |
|||||
|
|
|
|
|
|
|
|
|
Table 7 ADAC audio feature registers |
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
BIT7 |
BIT6 |
BIT5 |
BIT4 |
BIT3 |
BIT2 |
BIT1 |
BIT0 |
REGISTER |
|
|
|
|
|
|
|
|
|
0 |
0 |
VR5 |
VR4 |
VR3 |
VR2 |
VR1 |
VR0 |
volume right |
|
|
|
|
|
|
|
|
|
0 |
1 |
VL5 |
VL4 |
VL3 |
VL2 |
VL1 |
VL0 |
volume left |
|
|
|
|
|
|
|
|
|
1 |
0 |
X |
BB4 |
BB3 |
BB2 |
BB1 |
BB0 |
bass |
|
|
|
|
|
|
|
|
|
1 |
1 |
X |
TR4 |
TR3 |
TR2 |
TR1 |
TR0 |
treble |
|
|
|
|
|
|
|
|
|
The sequence for controlling the ADAC audio feature registers via the L3-bus is given in the figure below.
dbook, full pagewidth |
DATA_TRANSFER_TYPE |
DEVICE ADDRESS = $5 |
|
|
||||||||
(L3_MODE = LOW) |
|
|
|
|
|
|
|
|
|
|
|
|
L3_DATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
0 |
|
1 |
0 |
|
1 |
0 |
|
0 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bit 0 |
|
|
|
|
|
|
|
|
|
bit 7 |
|
|
|
|
LEFT VOLUME; TREBLE |
|
|
|
REGISTER |
||||
|
|
|
|
RIGHT VOLUME; BASS |
|
|
|
ADDRESS |
||||
|
|
|
|
|
|
|
|
|
|
|
||
(L3_MODE = HIGH) |
|
|
|
|
|
|
|
|
|
|
|
|
L3_DATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
X |
X |
|
X |
X |
|
X |
X |
|
X |
X |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bit 0 |
|
|
|
|
|
|
|
|
|
bit 7 |
L3_CLK
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.
dbook, full pagewidth |
DATA_TRANSFER_TYPE |
|
DEVICE ADDRESS = $5 |
|
|
|
||||||||
(L3_MODE = LOW) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
L3_DATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
1 |
|
1 |
0 |
|
1 |
|
0 |
|
0 |
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bit 0 |
|
|
|
|
|
|
|
|
|
|
|
bit 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
REGISTER |
|
|
|
|
|
DATA OF THE CONTROL REGISTER |
|
|
|
ADDRESS |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
||
(L3_MODE = HIGH) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
L3_DATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
X |
X |
|
X |
X |
|
X |
|
X |
|
X |
|
X |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bit 0 |
|
|
|
|
|
|
|
|
|
|
|
bit 7 |
L3_CLK
MGS269
1999 May 10 |
15 |
Philips Semiconductors |
|
|
|
Preliminary specification |
||
|
|
|
|
|
|
|
Universal Serial Bus (USB) CODEC |
|
|
|
UDA1325 |
||
|
|
|
|
|
|
|
Table 8 ADAC general control registers |
|
|
|
|
||
|
|
|
|
|
|
|
REGISTER |
BIT |
DESCRIPTION |
|
|
VALUE |
COMMENT |
|
|
|
|
|
|
|
Control register 0 |
0 |
reset ADAC |
0 |
= not reset |
|
|
|
|
|
1 |
= reset |
|
|
|
|
|
|
|
|
|
|
1 |
soft mute control |
0 |
= not muted |
|
|
|
|
|
1 |
= mutes |
|
|
|
|
|
|
|
|
|
|
2 |
synchronous/asynchronous |
0 |
= asynchronous |
select 0 |
|
|
|
|
1 |
= synchronous |
|
|
|
|
|
|
|
|
|
|
3 |
channel manipulation |
0 |
= L -> L, R -> R |
|
|
|
|
|
1 |
= L -> R, R -> L |
|
|
|
|
|
|
|
|
|
|
4 |
de-emphasis |
0 |
= de-emphasis off |
|
|
|
|
|
1 |
= de-emphasis on |
|
|
|
|
|
|
|
|
|
|
6 and 5 |
audio mode |
00 |
= flat mode |
|
|
|
|
|
01 |
= min. mode |
|
|
|
|
|
10 |
= min. mode |
|
|
|
|
|
11 = max. mode |
|
||
|
|
|
|
|
|
|
|
7 |
selecting bit |
0 |
|
|
|
|
|
|
|
|
|
|
Control register 1 |
1 and 0 |
serial I2S-bus input format |
00 |
= I2S-bus |
|
|
|
|
|
01 |
= 16-bit LSB justified |
|
|
|
|
|
10 |
= 18-bit LSB justified |
|
|
|
|
|
11 = 20-bit LSB justified |
|
||
|
|
|
|
|
|
|
|
3 and 2 |
digital PLL mode |
00 |
= adaptive |
select 00 |
|
|
|
|
01 |
= fix state 1 |
|
|
|
|
|
10 |
= fix state 2 |
|
|
|
|
|
11 = fix state 3 |
|
||
|
|
|
|
|
|
|
|
4 |
digital PLL lock mode |
0 |
= adaptive |
select 1 |
|
|
|
|
1 |
= fixed |
|
|
|
|
|
|
|
|
|
|
6 and 5 |
digital PLL lock speed |
00 |
= lock after 512 samples |
select 00 |
|
|
|
|
01 |
= lock after 2048 samples |
|
|
|
|
|
10 |
= lock after 4096 samples |
|
|
|
|
|
11 = lock after 16348 samples |
|
||
|
|
|
|
|
|
|
|
7 |
selecting bit |
1 |
|
|
|
|
|
|
|
|
|
|
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 fs = 44.1 kHz. When 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 10 |
16 |