Datasheet
www.ti.com
I
2
C Examples
Single Byte Write
D2Start ACK 01 ACK C0 ACK Stop
TPA5051 Addressand
Write
Register Address Data
Multiple Byte Write
D2Start
ACK
01
00
04
ACK
TPA5051 Addressand
Write
Register Address
(ControlRegister
)DATA1
Data
(RightDelayUpperBits
)DATA1
ACK
ACK
00
ACK
Data
(ControlRegister
)DATA1
Data
(RightDelayLowerBits
)DATA1
08
ACK
00
00
00
ACK
Data
(LeftDelayUpperBits
)DATA1
Data
(RJPacket=0Bits
)DATA1
ACK
ACK
01
ACK
Data
(FrameDelay
)DATA1
Data
(CompleteUpdate
)DATA1
Data
(LeftDelayLowerBits
)DATA1
Stop
10
ACK
00
00
00
ACK
Data
(ControlRegister
)DATA2
Data
(LeftDelayUpperBits
)DATA2
ACK
ACK
00
ACK
Data
(RightDelayLowerBits
)DATA2
Data
(LeftDelayLowerBits
)DATA2
Data
(RightDelayUpperBits
)DATA2
91
ACK
10
01
ACK
Data
(FrameDelay
)DATA2
ACK
Data
(CompleteUpdate
)DATA2
Data
(RJPacket=16Bits
)DATA2
TPA5051
SLOS497A – JUNE 2006 – REVISED JULY 2006
The following are some examples of I
2
C commands used to read or write to the TPA5051. For all conditions,
assume the address of the TPA5051 is set to 001.
In this example, the TPA5051 is set to mute both left and right channels of DATA1, and to operate in I
2
S mode.
NOTE:
Because no complete update command was issued in this example, the stream type
change will not take effect until a 1 is written to the Complete Update register.
In this example, the TPA5051 is set to make both the left and right channels of both DATA1 and DATA2 active.
DATA1 is set to operate in I
2
S mode, delay the right channel by 1024 samples, and delay the left channel by
2048 samples. DATA2 is set to operate in the Right-Justified mode with a packet length of 16 bits. It is to delay
the audio signal by 40 ms using the Frame Delay function. Assume the audio sample rate (fs) = 48 kHz, and the
Frame rate = 50 Hz. This is a sequential write, so all registers must have data written to them.
13
Submit Documentation Feedback