2000 Jul 31 19
NXP Semiconductors Product specification
Audio CODEC UDA1342TS
8.16.4 WRITE CYCLE
The write cycle is used to write data from the microcontroller to the internal registers. The I
2
C-bus format for a write cycle is shown in Table 17.
The device and register addresses are one byte each, data is always two bytes (2-bytes data).
The format of the write cycle is as follows:
1. The microcontroller starts with a START condition S.
2. The first byte (8 bits) contains the device address 0011 01X and a write command (bit R/W
=0).
3. This is followed by an acknowledge (A) from the UDA1342TS.
4. The microcontroller then writes the register address (8 bits) where writing of the register content of the UDA1342TS must start.
5. The UDA1342TS acknowledges this register address.
6. The microcontroller sends 2-bytes data with the Most Significant Data (MSD) byte first and then the Least Significant Data (LSD) byte, where each
byte is acknowledged by the UDA1342TS.
7. After the last acknowledge the UDA1342TS frees the I
2
C-bus and the microcontroller can generate a STOP condition (P).
Table 17 Master transmitter writes to UDA1342TS registers
Note
1. Auto increment of the register address is carried out if repeated groups of 2 bytes are transmitted.
ACKNOWLEDGE FROM UDA1342TS
DEVICE
ADDRESS
R/W
REGISTER
ADDRESS
DATA
(1)
S 0011 01X 0 A 0XXX XXXX A MSD1 A LSD1 A MSD2 A LSD2 A MSDn A LSDn A P
8bits 8bits 8bits 8bits 8bits 8bits 8bits 8bits
2000 Jul 31 20
NXP Semiconductors Product specification
Audio CODEC UDA1342TS
8.16.5 READ CYCLE
The read cycle is used to read data from the internal registers of the UDA1342TS to the microcontroller. The I
2
C-bus format for a read cycle is shown
in Table 18.
The format of the read cycle is as follows:
1. The microcontroller starts with a START condition S.
2. The first byte (8 bits) contains the device address 0011 01X and a write command (bit R/W
=0).
3. This is followed by an acknowledge (A) from the UDA1342TS.
4. The microcontroller then writes the register address where reading of the register content of the UDA1342TS must start.
5. The UDA1342TS acknowledges this register address.
6. Then the microcontroller generates a repeated START (Sr).
7. Again the device address 0011 01X is given, but this time followed by a read command (bit R/W
=1).
8. The UDA1342TS sends the two-byte data with the Most Significant Data (MSD) byte first and then the Least Significant Data (LSD) byte, where
each byte is acknowledged by the microcontroller (master).
9. The microcontroller stops this cycle by generating a negative acknowledge (NA).
10. The UDA1342TS then frees the I
2
C-bus and the microcontroller can generate a STOP condition (P).
Table 18 Master transmitter reads from UDA1342TS registers
Note
1. Auto increment of the register address is carried out if repeated groups of 2 bytes are transmitted.
ACKNOWLEDGE FROM UDA1342TS ACKNOWLEDGE FROM MASTER
DEVICE
ADDRESS
R/W
REGISTER
ADDRESS
DEVICE
ADDRESS
R/W
DATA
(1)
S 0011 01X 0 A 0XXX XXXX A Sr 0011 01X 1 A MSD1 A LSD1 A MSD2 A LSD2 A MSDn A LSDn NA P
8bits 8bits 8bits 8bits 8bits 8bits 8bits 8bits 8bits
2000 Jul 31 21
NXP Semiconductors Product specification
Audio CODEC UDA1342TS
9 REGISTER MAPPING
The addresses of the control registers with default values at Power-on reset are shown in Table 19. Functions of the registers are shown in
Tables 20 to 45.
Table 19 Register map
ADDRESS FUNCTION D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0
00H system RST QS MDC DC AM2 AM1 AM0 PAD 0 SC1 SC0 IF2 IF1 IF0 DP PDA
001101000000010
01H sub system −−−−−−−OS1 OS0 MPS MIX SD1 SD0 MP1 MP0
−−−−−−−00000000
02H to 0FH reserved −−−−−−−−−−−−−−
10H DAC features M1 M0 BB3 BB2 BB1 BB0 TR1 TR0 SDS MTB MTA MT QM DE2 DE1 DE0
0000000000000000
11H DAC master volume VL7 VL6 VL5 VL4 VL3 VL2 VL1 VL0 VR7 VR6 VR5 VR4 VR3 VR2 VR1 VR0
0000000000000000
12H DAC mixer volume VB7 VB6 VB5 VB4 VB3 VB2 VB1 VB0 VA7 VA6 VA5 VA4 VA3 VA2 VA1 VA0
0000000000000000
13H to 1FH reserved −−−−−−−−−−−−−−
20H ADC input and mixer
gain channel 1
0 0 0 0 IA3 IA2 IA1 IA0 MA7 MA6 MA5 MA4 MA3 MA2 MA1 MA0
0000000000000000
21H ADC input and mixer
gain channel 2
0 0 0 0 IB3 IB2 IB1 IB0 MB7 MB6 MB5 MB4 MB3 MB2 MB1 MB0
0000000000000000
22H to 2FH reserved −−−−−−−−−−−−−−
30H evaluation 0000000000000000
31H to FFH reserved −−−−−−−−−−−−−−

UDA1342TS/N1,518

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC AUDIO CODEC 24BIT 28SSOP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet