2002 Sep 16
22
Philips Semiconductors
Product specification
Stereo audio coder-decoder
for MD, CD and MP3
UDA1380
9.1
Introduction
The exchange of data and control information between the
microcontroller and the UDA1380, is accomplished
through a serial hardware interface comprising the
following pins:
L3DATA/SDA: microcontroller interface data line
L3MODE: microcontroller interface mode line
L3CLOCK/SCL: microcontroller interface clock line.
Information transfer via the microcontroller bus is
organized LSB first, and in accordance with the so called
‘L3’ format, in which two different modes of operation can
be distinguished: address mode and data transfer mode.
Inside the microcontroller there is a hand-shake
mechanism which takes care of proper data transfer from
the microcontroller clock, to the destination clock domains.
This means that when data is sent to the microcontroller
interface, the system clock must be running.
9.2
Device addressing
The device addressing mode is used to select a device for
subsequent data transfer. The address mode is
characterized by the signal on pin L3MODE being LOW
and a burst of 8 pulses on pin L3CLOCK/SCL,
accompanied by 8 bits. The fundamental timing is shown
in Figs 14 and 15.
Basically, two types of transfer can be defined:
data transfer to the device, and data transfer from the
device, as given in Table 6.
Table 6
Selection of data transfer
Table 6 shows that there are two types of data transfers:
DATA and STATUS which can be read and written.
Table 6 also shows that the DATA and STATUS read and
write actions are combined.
The device address consists of one byte, which is split-up
in two parts:
Bits 7 to 2 represent a 6-bit device address. In the
UDA1380 this is 000001
Bits 1 to 0 called Data Operation Mode, or DOM bits,
represent the type of data transfer according to Table 6.
9.3
Slave address
The UDA1380 acts as a slave receiver or a slave
transmitter.ThereforethesignalsL3CLOCKandL3MODE
are only input signals. The data signal L3DATA is a
bidirectional line. The UDA1380 slave address is shown in
Table 7.
Table 7
L3 slave address
9.4
Register addressing
After sending the device address, including the flags (the
DOM bits) whether information is read or written, one byte
is sent with the destination register address using 7 bits,
and one bit which signals whether information will be read
or written. The fundamental timing for L3 is given in Fig.19.
Basically there are three forms for register addressing:
Register addressing for L3 write: the first bit is a logic 0
indicating a write action to the destination register,
followed by seven register address bits
Prepare read addressing: the first bit of the byte is
logic 1; signalling data will be read from the register
indicated
The read action itself: in this case the device returns a
register address prior to sending data from that register.
When the first bit of the byte is logic 0, the register
address was valid, in case the first bit is a logic 1 the
register address was invalid.
Remarks
:
Each time a new destination address needs to be
written, the device address must be sent again
When addressing the device for the first time after
power-up of the device, at least one L3 clock-cycle must
be given to enable the L3 interface.
DOM
BIT 1
DOM
BIT 0
TRANSFER
0
0
1
1
0
1
0
1
not used
not used
DATA and STATUS write or pre-read
DATA and STATUS read
(MSB)
BIT
(LSB)
0
0
0
0
0
1