Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
Preliminary specification
Supersedes data of 1998 May 12
File under Integrated Circuits, IC01
1998 Oct 06
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
FEATURES
General
• Universal Serial Bus (USB) stereo Digital-to-Analog
Converter (DAC) system with adaptive (5 to 55 kHz)
20-bits digital-to-analog conversion and filtering
• USB-compliant audio and Human Interface Device
(HID)
• Supports 12 Mbits/s full-speed serial data transmission
• Supports multiple audio data formats (8, 16 and 24 bits)
• Supports headphone and line output
• Fully automatic ‘Plug-and-Play’ operation
• High linearity
• Wide dynamic range
• Superior signal-to-noise ratio (typical 95 dB)
• Low total harmonic distortion (typical 90 dB)
• 3.3 V power supply
• Efficient power management
• Low power consumption
• On-chip master clock oscillator, only an external crystal
is required
• Partly programmable USB descriptors and configuration
2
C-bus.
via I
Sound processing
• Separate digital volume control for left and right channel
• Soft mute
• Digital bass and treble tone control
• External Digital Sound Processor (DSP) option possible
via standard I
• Selectable clipping prevention
• Selectable Dynamic Bass Boost (DBB)
• On-chip digital de-emphasis.
2
S-bus or Japanese digital I/O format
UDA1321
Document references
•
“USB Specification”
•
“USB Common Class Specification”
•
“USB Device Class Definition for Audio Devices”
•
“Device Class Definition for Human Interface Devices
(HID)”
•
“USB HID Usage Table”
APPLICATIONS
• USB monitors
• USB speakers
• USB headsets
• USB telephone/answering machines
• USB links in consumer audio devices.
GENERAL DESCRIPTION
The UDA1321 is a stereo CMOS digital-to-analog
bitstream converter designed for USB-compliant audio
playback devices and multimedia audio
applications.The UDA1321 is an adaptive asynchronous
sink USB audio device with a continuous sampling
frequency (f
interface, an embedded microcontroller and an
Asynchronous Digital-to-Analog Converter (ADAC).
The USB interface is the interface between the USB, the
ADAC and the microcontroller. The USB interface consists
of an analog front-end and a USB processor. The analog
front-end transforms the differential USB data to a digital
data stream. The USB processor buffers the input and
output 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 (input and output) and audio information (input
only).
) range from 5 to 55 kHz. It contains a USB
s
.
1998 Oct 062
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
UDA1321
Digital-to-Analog Converter (DAC)
The control information becomes accessible at the
microcontroller. The audio information becomes available
at the digital I/O output or is fed directly to the ADAC.
The microcontroller handles the high-level USB protocols,
translates the incoming control requests and manages the
user interface via General Purpose (GP) pins and an
I2C-bus.
The ADAC enables the wide and continuous range of input
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 sound processing.
QUICK REFERENCE DATA
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Supplies
V
DD
I
DD(tot)
I
DD(ps)
supply voltagenote 13.03.33.6V
total supply current−50−mA
supply current in power-save
The ADAC consists of FIFO registers, a unique audio
feature processing DSP, the SFG, digital up-sampling
filters, a variable hold register, a Noise Shaper (NS) and a
Filter Stream DAC (FSDAC) with integrated filter and line
output drivers. The audio information is applied to the
ADAC via the USB processor or via the digital I/O input.
An external DSP can be used for adding extra sound
processing features via the digital I/O-bus.
The UDA1321 supports the standard I2S-bus data input
format and the LSB-justified serial data input format with
word lengths of 16, 18 and 20 bits.
The wide dynamic range of the bitstream conversion
technique used in the UDA1321 guarantees a high audio
sound quality.
(2)
−80dB
−0.0032 0.01%
(2)
−20dB
−3.210%
Notes
1. VDD is the supply voltage on pins V
DDA
, V
DDE
, V
DDI
and V
. VSS is the ground on pins V
DDX
All VDD and VSS pins must be connected to the same supply or ground respectively.
2. The audio information from the USB interface is fed directly to the ADAC.
3. The power-save mode (power management) is not supported in the UDA1321/N101;
see Chapter “USB-DAC UDA1321/N101 (Firmware sw 2.1.1.7)”.
body 14 × 20 × 2.8 mm
UDA1321T/N101SO28plastic small outline package; 28 leads; body width 7.5 mmSOT136-1
UDA1321PS/N101SDIP32plastic shrink dual in-line package; 32 leads (400 mil)SOT232-1
PACKAGE
SOT319-2
1998 Oct 064
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
BLOCK DIAGRAM
handbook, full pagewidth
TC
RTCB
SHTCB
GP4/BCKO
GP3/WSO
GP2/DO
GP1/DI
GP0/BCKI
GP5/WSI
TEST
CONTROL
BLOCK
SAMPLE
FREQUENCY
GENERATOR
D+
D−
ANALOG FRONT-END
USB-PROCESSOR
DIGITAL I/O
FIFO REGISTERS
f
s
AUDIO FEATURE
PROCESSING DSP
f
s
UP-SAMPLE FILTERS
MICRO-
CONTROLLER
UDA1321
SCL
SDA
EA
PSEN
ALE
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
64f
s
V
SSX
XTAL1
XTAL2
V
DDX
VOUTL
OSC
TIMING
VARIABLE HOLD REGISTER
128f
s
3rd-ORDER
NOISE SHAPER
LEFT
DAC
REFERENCE
VOLTAGE
V
Fig.1 Block diagram.
1998 Oct 065
ref
RIGHT
DAC
UDA1321H
UDA1321T
UDA1321PS
MGM839
V
DDE
V
SSE
V
SSI
V
DDI
V
DDO
V
SSO
V
DDA
V
SSA
VOUTR
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
UDA1321
Digital-to-Analog Converter (DAC)
PINNING
SYMBOL
PIN
QFP64
GP5/WSI22925I/Ogeneral purpose pin 5 or word select input
SCL33026I/Oserial clock input (I
SDA43127I/Oserial data input/output (I
P0.75n.a.n.a.I/OPort 0.7 of the microcontroller
EA6n.a.n.a.I/Oexternal access (active LOW)
GP1/DI73228I/Ogeneral purpose pin 1 or data input
PSEN8n.a.n.a.I/Oprogram store enable (active LOW)
ALE9n.a.n.a.I/Oaddress latch enable (active HIGH)
GP2/DO1011I/Ogeneral purpose pin 2 or data output for extra DSP
P2.011n.a.n.a.I/OPort 2.0 of the microcontroller
P2.112n.a.n.a.I/OPort 2.1 of the microcontroller
GP3/WSO1322I/Ogeneral purpose pin 3 or master word select output for
GP4/BCKO1433I/Ogeneral purpose pin 4 or master bit clock output for
SHTCB1544Ishift clock TCB input (active HIGH)
D−1765I/Onegative data line of the differential data bus conform
P2.218n.a.n.a.I/OPort 2.2 of the microcontroller
P2.319n.a.n.a.I/OPort 2.3 of the microcontroller
D+2076I/Opositive data line of the differential data bus conform to
P2.421n.a.n.a.I/OPort 2.4 of the microcontroller
P2.522n.a.n.a.I/OPort 2.5 of the microcontroller
P2.623n.a.n.a.I/OPort 2.6 of the microcontroller
P2.724n.a.n.a.I/OPort 2.7 of the microcontroller
V
V
V
V
V
DDI
SSI
SSE
DDE
SSX
2587−digital supply voltage core
2998−digital ground core
30109−digital ground I/O pins
321110−digital supply voltage I/O pins
361311−crystal oscillator ground
XTAL1371412Icrystal oscillator input1
XTAL2381513Ocrystal oscillator output 2
V
V
V
V
DDX
ref
SSA
DDA
391614−crystal oscillator supply voltage
421815Oreference output voltage
441916−analog ground
452017−analog supply voltage
VOUTR462118Oright channel output voltage
V
SSO
492219−operational amplifier ground
PIN
SDIP32
PIN
SO28
I/ODESCRIPTION
2
C-bus)
2
C-bus)
chip
extra DSP chip
extra DSP chip
to the USB-standard
the USB-standard
1998 Oct 066
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
UDA1321
Digital-to-Analog Converter (DAC)
SYMBOL
V
DDO
VOUTL532421Oleft channel output voltage
TC552522Itest control input (active HIGH)
P0.056n.a.n.a.I/OPort 0.0 of the microcontroller
P0.157n.a.n.a.I/OPort 0.1 of the microcontroller
P0.258n.a.n.a.I/OPort 0.2 of the microcontroller
P0.359n.a.n.a.I/OPort 0.3 of the microcontroller
P0.460n.a.n.a.I/OPort 0.4 of the microcontroller
RTCB612623Iasynchronous reset input for test control box (active
P0.562n.a.n.a.I/OPort 0.5 of the microcontroller
P0.663n.a.n.a.I/OPort 0.6 of the microcontroller
GP0/BCKI642724I/Ogeneral purpose pin 0 or master bit clock input
n.c.1, 16, 26,
PIN
QFP64
512320−operational amplifier supply voltage
27, 28, 31,
33, 34, 35,
40, 41, 43,
47, 48, 50,
52, 54
PIN
SDIP32
5, 12, 17,
28
PIN
SO28
n.a.−not connected
I/ODESCRIPTION
HIGH)
1998 Oct 067
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
handbook, full pagewidth
P0.6
P0.5
63
62
n.c.
GP5/WSI
SCL
SDA
P0.7
EA
GP1/DI
PSEN
ALE
GP2/DO
P2.0
P2.1
GP3/WSO
GP4/BCKO
SHTCB
n.c.
D−
P2.2
P2.3
GP0/BCKI
64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
RTCB
61
P0.4
P0.3
60
59
UDA1321H
P0.2
58
P0.1
57
P0.0
56
TC
55
n.c.
54
VOUTL
53
n.c.
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
V
DDO
n.c.
V
SSO
n.c.
n.c.
VOUTR
V
DDA
V
SSA
n.c.
V
REF
n.c.
n.c.
V
DDX
XTAL2
XTAL1
V
SSX
n.c.
n.c.
n.c.
UDA1321
20
21
22
23
24
25
D+
P2.4
P2.5
P2.6
P2.7
V
DDI
Fig.2 Pin configuration QFP64.
1998 Oct 068
26
n.c.
27
n.c.
28
n.c.
29
V
SSI
30
SSE
V
31
n.c.
32
DDE
V
MGM850
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
handbook, halfpage
GP2/DO
GP3/WSO
GP4/BCKO
SHTCB
D−
D+
V
DDI
V
SSI
V
SSE
V
DDE
V
SSX
XTAL1
XTAL2
V
DDX
1
2
3
4
5
6
7
UDA1321T
8
9
10
11
12
13
MGM840
28
27
26
25
24
23
22
21
20
19
18
17
16
1514
GP1/DI
SDA
SCL
GP5/WSI
GP0/BCKI
RTCB
TC
VOUTL
V
DDO
V
SSO
VOUTR
V
DDA
V
SSA
V
ref
handbook, halfpage
GP3/WSOSDA
GP4/BCKOSCL
UDA1321
GP2/DOGP1/DI
SHTCBGP5/WSI
1
2
3
4
n.c.
5
D−GP0/BCKI
6
D+RTCB
7
V
8
DDI
V
SSI
V
SSE
V
DDE
n.c.
V
SSX
XTAL1
XTAL2
V
DDX
UDA1321PS
9
10
11
12
13
14
15
16
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
MGM841
n.c.
TC
VOUTL
V
DDO
V
SSO
VOUTR
V
DDA
V
SSA
V
ref
n.c.
Fig.3 Pin configuration SO28.
1998 Oct 069
Fig.4 Pin configuration SDIP32.
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
FUNCTIONAL DESCRIPTION
All bold-faced parameters given in this data sheet
such as ‘bAlternateSetting’ are part of the USB
specification as described in
Definition for Audio Devices”
The Universal Serial Bus (USB)
Data and power are transferred via the USB by a 4-wire
cable. The signalling occurs via 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 V
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 ADAC and the microcontroller.
The USB processor consists of:
• The Philips Serial Interface Engine (PSIE)
• The Memory Management Unit (MMU)
• The Audio Sample Redistribution (ASR) module.
“USB Device Class
.
DD
UDA1321
The PSIE is the digital front-end of the USB processor.This
module recovers the 12 MHz USB clock, detects the USB
sync word and handles all low-level USB protocols and
error checking.
The MMU is the digital back-end of the USB processor.
It handles the temporary data storage of all USB packets
that are received or sent over the bus. Three types of
packets are defined on the USB. These are:
• Token packets
• Data packets
• Handshake packets.
The token packet contains information about the
destination of the data packet. The audio data is
transferred via an isochronous data sink endpoint and
consequently no handshaking mechanism is used.
The MMU also generates a 1 kHz clock that is locked to
the USB Start-Of-Frame (SOF) token.
T
HE AUDIO SAMPLE REDISTRIBUTION (ASR) MODULE
The ASR module reads the audio samples from the MMU
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
Japanese digital I/O format. The ASR module generates
the bit clock and the word select signal of the digital I/O.
The digital I/O formats the received audio samples to one
of the four specified serial digital audio formats
(standard I2S-bus, 16, 18 or 20 bits LSB-justified).
The microcontroller
T
HE PHILIPS SERIAL INTERFACE ENGINE AND MEMORY
MANAGEMENT UNIT (PSIE AND MMU)
The PSIE and MMU translate the electrical USB signals
into bytes and signals. Depending upon the USB device
address and the USB endpoint address, the USB data is
directed to the correct endpoint buffer on the PSIE and
MMU interface. The data transfer could be of the bulk,
isochronous, control or interrupt type. The USB device
address is configured during the enumeration process.
The UDA1321 has three endpoints. These are:
• Control endpoint 0
• Status interrupt endpoint
• Isochronous data sink endpoint.
The amount of bytes per packet on the control endpoint is
limited by the PSIE and MMU hardware to 8 bytes per
packet.
1998 Oct 0610
The microcontroller receives the control information
selected from the USB by the USB processor. It handles
the high-level USB protocols and the user interfaces.
The major task of the software process, that is mapped
upon the microcontroller, is to control the different modules
of the UDA1321 in such a way that it behaves as a USB
device. Therefore the microcontroller:
• Interprets the USB requests and maps them upon the
UDA1321 application
• Controls the internal operation of the UDA1321 and the
digital I/O pins
• Communicates with the external world (EEPROM) using
2
the I
C-bus facility and the general purpose I/O pins.
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
The Asynchronous Digital-to-Analog Converter
(ADAC)
The ADAC receives USB audio information 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 processing, the audio signal is
up-sampled, noise-shaped and converted to analog output
voltages capable of driving a line output. The ADAC
consists of:
• A Sample Frequency Generator (SFG)
• First-In First-Out (FIFO) registers
• An audio feature processing DSP
• Two digital up-sample filters
• 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 up-sample
filters.
IRST-IN FIRST-OUT (FIFO) REGISTERS
F
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 register (in conjunction
with the SFG) is necessary to remove all jitter present on
the incoming audio signal.
T
HE AUDIO FEATURE PROCESSING DSP
A DSP processes the sound features. The control and
mapping of the sound features is explained in Section
“Controlling the USB Digital-to-Analog Converter (DAC)”.
Depending on the sampling rate (fs) the DSP has four
frequency domains in which the treble and bass are
regulated (see Table 1). The domain is chosen
automatically.
T
HE UP-SAMPLE FILTERS AND VARIABLE HOLD REGISTER
After the audio feature processing DSP two up-sample
filters and a variable hold register increase the
oversampling rate to 128fs.
UDA1321
Table 1Frequency domains for audio processing
DOMAINSAMPLE FREQUENCY (kHz)
15 to 12
212to25
325to40
440to55
HE NOISE SHAPER
T
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.
T
HE 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.
USB Digital-to-Analog Converter (DAC) descriptors
In a typical USB environment the USB host has to know
which kind of devices are connected. For this purpose
each device contains a number of USB descriptors. These
descriptors describe, from different points of view (USB
configuration, USB interface and USB endpoint), the
capabilities of a device. Each of them can be requested by
the host. The collection of descriptors is denoted as a
descriptor map. This descriptor map will be reported to the
USB host during enumeration and on request.
The full descriptor map is implemented in the firmware
exploiting the full functionality of the UDA1321. The USB
descriptors and their most important fields, in relationship
to the characteristics of the UDA1321 are briefly explained
below.
G
ENERAL DESCRIPTORS
The UDA1321 supports one configuration containing a
control interface, an audio interface and a HID interface.
The descriptor map that describes this configuration is
partly fixed and partly programmable.
1998 Oct 0611
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
handbook, full pagewidth
INPUT TERMINAL
IT
Fig.5 Audio function topology.
The programmable part can be retrieved from one of four
configuration maps located in the firmware or from an
I2C-bus EEPROM. At start-up one of four configuration
maps can be selected depending on the logical
combination of GP3 and GP0. It is possible to overwrite
this configuration map with a configuration map loaded
from an I2C-bus EEPROM.
UDIO DEVICE CLASS SPECIFIC DESCRIPTORS
A
The audio device class is partly specified with standard
descriptors and partly with specific audio device class
descriptors. The standard descriptors specify the number
and the type of the interface or endpoint. The UDA1321
supports 7 different audio modes:
• 8-bit Pulse Code Modulation (PCM) mono or stereo
audio data
• 16-bit PCM mono or stereo audio data
• 24-bit PCM mono or stereo audio data
• Zero bandwidth mode.
Each mode is defined as an alternate setting of the audio
interface, selectable with the standard audio streaming
interface descriptor bAlternateSetting field.
The seven alternate settings are described in more detail
by the specific audio device class descriptors.
The UDA1321 supports the Input Terminal (IT), Output
Terminal (OT) and the Feature Unit (FU) descriptors.
The input and output terminals are not controllable via the
USB. The feature unit provides the basic manipulation of
the incoming logical channels.
The maximum number of audio data samples within a USB
packet arriving on the isochronous sink endpoint is
restricted by the buffer capacity of this isochronous
endpoint. The maximum buffer capacity is 336 bytes/ms.
For each alternate setting with audio, a maximum
bandwidth is claimed as indicated in the standard
isochronous audio data endpoint descriptor
wMaxPacketSize field. To allow a small overshoot in the
number of audio samples per packet, the top sample
frequency of 55 kHz is taken in the calculation of the
bandwidth for each alternate setting. For each alternate
setting, with its own isochronous audio data endpoint
descriptor, wMaxPacketSize field is then defined as
described in Table 2.
Although in a specific UDA1321 application no endpoint
control properties can be used upon the isochronous
adaptive sink endpoint, the descriptors are still necessary
to inform the host about the definition of this endpoint:
isochronous, adaptive, sink, continuous sampling
frequency (at input side of this endpoint) with lower bound
of 5 kHz and upper bound of 55 kHz.
The supported sound features are:
• Volume control
• Mute control
• Treble control
• Bass control
• Bass boost control.
1998 Oct 0612
The audio class specific descriptors can be requested with
the ‘Get descriptor: configuration request’, which returns
all the descriptors, except the device descriptor.
UMAN INTERFACE DEVICE SPECIFIC DESCRIPTORS
H
The inputs defined on the UDA1321 are transmitted via the
USB to the host according to the HID class. The host
Philips SemiconductorsPreliminary specification
Universal Serial Bus (USB)
Digital-to-Analog Converter (DAC)
responds with the appropriate settings via the audio device
class for the audio related parts or via the HID class for the
HID related inputs and outputs of the UDA1321.
A HID descriptor is necessary to inform the host about the
conception of the user interface. The host communicates
via the HID device driver using either the control pipe or
the interrupt pipe. The UDA1321 uses USB endpoint 0
(control pipe) to respond to the HID specific ‘Get/set report
request’ to receive or transmit data from or to the
UDA1321. The UDA1321 uses the status interrupt
endpoint as interrupt pipe for polling asynchronous data.
The UDA1321 is a high-speed device. The maximum
transaction size is 64 bytes per USB frame and the polling
rate is defined at a maximum of every 1 ms.
The host requests the configuration descriptor which
includes the standard interface descriptor, the HID
endpoint descriptor and the HID descriptor. The HID
device driver of the host then requests the report
descriptor.
Report descriptors are composed of pieces of information
about the device. Each piece of information is called an
item. All items have a 1-byte prefix that contains the item
tag, type and size. In the UDA1321 only the short item
basic type is used.
The hosts HID device driver will parse the report descriptor
and the defined items. By examining all of these items, the
HID class driver is able to determine the size and
composition of data reports from the device.
The main items of the UDA1321 are input and output
reports. Input reports are sent via the interrupt pipe
(UDA1321 USB address 3). Input and output reports can
be requested by the host via the control endpoint (USB
address 0).
The UDA1321 supports a maximum of three pushbuttons,
which represents a certain feature of the UDA1321. If
pressed by the user the pushbutton will go to its ‘ON’ state,
if not pressed the pushbutton will go back to its ‘OFF’ state.
The UDA1321 supports a maximum of two outputs for e.g.
user LEDs.
For more information about the input and output functions
of the UDA1321 see the application documentation of the
device.
UDA1321
Controlling the USB Digital-to-Analog Converter
(DAC)
This section describes the functionality of the feature unit
of the UDA1321. The mapping of this functionality onto
USB descriptors is as implemented in the firmware.
The sound features as defined in the
Definition for Audio Devices”
specific feature registers by the microcontroller. These
specific sound features are:
• Volume control (separate for left and right stereo
channels, no master channel)
• Mute control (only master channel)
• Treble control (only master channel)
• Bass control (only master channel)
• Dynamic bass boost control (only master channel).
These specific features can be activated via the host
(audio device class requests) or via the GP pins (HID plus
audio device class requests). Via the I2C-bus the user is
able to download the necessary configuration data for
different applications (definition of the function of the GP
pins, with or without digital I/O functionality, etc.).
The mapping and control of the standard USB audio
features and UDA1321 specific features is described
below.
V
OLUME CONTROL
Volume control is possible via the host or via predefined
GP pins. The setting of 0 dB is always referenced to the
maximum available volume setting. Table 3 gives the
mapping of wVolume value (as defined in the
are mapped on the UDA1321
Device Class Definition for Audio Devices”
actual volume setting of the USB DAC. When using the
UDA1321, the range is 0 down to−60 dB (in steps of 1 dB)
and −∞ dB. Independant control of ‘left’/’right’ volume is
possible. It should be noted that wVolume bits B7 to B0
are not used. Values above 0 dB are returned as 0 dB.
The volume value at start-up of the device is defined in the
selected configuration map.
Balance control is possible via the separate volume control
option of both channels. Therefore the characteristics of
the balance control are equal to the volume control
characteristics.
1. The volume control characteristics of this table are in accordance with the latest Audio Device Class Definition.
The volume control characteristics of the UDA1321/N101 are slightly different; see Chapter “USB-DAC
UDA1321/N101 (Firmware sw 2.1.1.7)”
MUTE CONTROL
Mute is one of the sound features as defined in the
Device Class Definition for Audio Devices”
control request data bMute controls the position of the
mute switch. The position can be either on or off. When
bMute is true the feature unit is muted. When bMute is
false the feature unit is not muted.
When the mute is active for the master 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.
. The mute
“USB
This amounts to a mute transition of 23 ms at
= 44.1 kHz. When the mute is released, the samples are
f
s
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.
A mute can be given via the host or by pressing a
predefined GP pin.
1998 Oct 0614
Loading...
+ 30 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.