2000 Mar 29
15
Philips Semiconductors
Preliminary specification
Audio CODEC
UDA1342TS
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.
Important:
When the device is powered-up, at least one L3CLOCK
pulse must be sent to the L3-bus interface to wake-up
the interface prior to sending information to the device.
This is only needed once after the device is powered-up.
Inside the microcontroller there is a hand-shake
mechanism which handles proper data transfer from the
microcontroller clock to destination clock domains. This
means that when data is sent to the microcontroller
interface, the system clock must be running.
The L3-bus interface is designed in such a way that data
is clocked into the device (write mode) on the positive
clock edge, while the device starts the output data (read
mode) on the negative clock edge. The microcontroller
must read the data from the device on the positive clock
edge to ensure the data is always stable.
8.15.2
D
EVICE ADDRESSING
The device address mode is used to select a device for
subsequent data transfer. The address mode is
characterized by L3MODE being LOW and a burst of
8 pulses on L3CLOCK, accompanied by 8 bits. The
fundamental timing in the address mode is shown in
Fig.13.
The device address consists of one byte, which is split up
in two parts (see Table 10):
Bits 0 and 1 are called Data Operation Mode (DOM) bits
and represent the type of data transfer
Bits 2 to 7 represent a 6-bit device address.
Table 10
L3-bus interface slave address
The UDA1342TS can be set to different addresses
(00 1000 or 10 1000) by setting pin IPSEL to HIGH or
LOW level. In the event that the device receives a different
address, it will deselect its microcontroller interface logic.
Basically, 2 types of data transfer can be defined: data
transfer to the device and data transfer from the device
(see Table 11).
Table 11
Selection of data transfer
8.15.3
R
EGISTER ADDRESSING
After sending the device address, including the flags
(DOM bits) whether the information is read or written, the
data transfer mode is entered and one byte is sent with the
destination register address (see Table 12) using 7 bits,
and one bit which signals whether information will be read
or written.
The fundamental timing for the data transfer mode is given
in Fig.14.
Table 12
L3-bus register address
Basically there are 3 cases for register addressing:
1.
Register addressing for L3-bus write: the first bit is at
logic 0 indicating a write action to the destination
register,andisfollowedby7 bitsindicatingtheregister
address.
Prepare read addressing: the first bit of the byte is at
logic 1, signalling data will be read from the register
indicated.
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 at logic 0, the
registeraddresswasvalidandifthefirstbitisatlogic 1
the register address was invalid.
2.
3.
Important:
1.
Each time a new destination address needs to be
written, the device address must be sent again.
2.
When addressing the device for the first time after
power-up of the device, at least one L3CLOCK cycle
must be given to enable the L3-bus interface.
DOM
DEVICE ADDRESS
LSB BIT 1
BIT 2
BIT 3 BIT 4 BIT 5 BIT 6 MSB
R/W
1
IPSEL
0
1
0
0
0
DOM
TRANSFER
BIT 0
BIT 1
0
1
0
1
0
0
1
1
not used
not used
data write or prepare read
data read
LSB BIT 1 BIT 2 BIT 3 BIT 4 BIT 5 BIT 6 MSB
R/W
A6
A5
A4
A3
A2
A1
A0