Application Information (Continued)
I
2C INTERFACE
The LM4832 uses a serial bus, which conforms to the I
2C
protocol, to control the chip’s functions with two wires: clock
and data. The clock line is uni-directional. The data line is
bi-directional(open-collector) with a pullup resistor (typically
10 k
).The maximum clock frequency specified by the I2C
standard is 400 kHz. In this discussion, the master is the
controlling microcontroller and the slave is the LM4832.
The I
2C address for the LM4832 is determined using the
Address Bit 1 and Address Bit 2 TTL/CMOS inputs on the
chip. The LM4832’s four possible I
2C chip addresses are of
the form 10000X
2X10 (binary), where the X2 and X1bits are
determined by the voltage levels at the Address Bit 2 and
Address Bit 1 pins, respectively. If the I
2C interface is used to
address a number of chips in a system and the LM4832’s
chip address can be changed to avoid address conflicts.
The timing diagram for the I
is latched in on the stable high level of the clock and the data
line should be held high when not in use. The timing diagram
is broken up into six major sections:
The “start” signal is generated by lowering the data signal
while the clock signal is high. The start signal will alert all
devices attached to the I
2C bus to check the incoming ad-
dress against their own chip address.
The 8-bit chip address is sent next, most significant bit first.
Each address bit must be stable while the clock level is high.
After the last bit of the address is sent, the master checks for
the LM4832’s acknowledge. The master releases the data
line high (through a pullup resistor). Then the master sends
a clock pulse. If the LM4832 has received the address
correctly, then it holds the data line low during the clock
pulse. If the data line is not low, then the master should send
a “stop” signal (discussed later) and abort the transfer.
The 8 bits of data are sent next, most significant bit first.
Each data bit should be valid while the clock level is stable
high.
After the data byte is sent, the master must generate another
acknowledge to see if the LM4832 received the data.
If the master has more data bytes to send to the LM4832,
then the master can repeat the previous two steps until all
data bytes have been sent.
The “stop” signal ends the transfer. To signal “stop”, the data
signal goes high while the clock signal is high.
3D AUDIO ENHANCEMENT
The LM4832 has a 3D audio enhancement effect that helps
improve the apparent stereo channel separation when, be-
cause of cabinet or equipment limitations, the left and right
speakers are closer to each other than optimal.
An external RC network, shown in
Figure 3, is required to
enable the effect. The amount of the effect is set by the 20
k
resistor. A 0.1 F capacitor is used to reduce the effect at
frequencies below 80 Hz. Decreasing the resistor size will
make the 3D effect more pronounced and decreasing the
capacitor size will raise the cutoff frequency for the effect.
The 680 k
resistor across the 0.1 F capacitor reduces
switching noise by discharging the capacitor when the effect
is not in use.
TONE CONTROL RESPONSE
Bass and treble tone controls are included in the LM4832.
The tone controls use two external capacitors for each ste-
reo channel. Each has a corner frequency determined by the
value of C2 and C3 (see
Figure 4) and internal resistors in
the feedback loop of the internal tone amplifier.
Typically, C2 = C3 and for 100 Hz and 10 kHz corner
frequencies, C2 = C3 = 0.0082 F. Altering the ratio between
C2 and C3, changes the midrange gain. For example, if C2
= 2(C3), then the frequency response will be flat at 20 Hz
and 20 kHz, but will havea6dB peak at 1 kHz.
WithC=C2=C3, the treble turn-over frequency is nominally
f
TT = 1/(2
πC(14 k))
and the bass turn-over frequency is nominally
f
BT = 1/(2
πC(30.4 k)),
when maximum boost is chosen. The inflection points (the
frequencies where the boost or cut is within 3 dB of the final
value) are, for treble and bass respectively,
f
TI = 1/(2
πC(1.9 k))
f
BI = 1/(2
πC(169.6 k))
Increasing the values of C2 and C3 decreases the turnover
and inflection frequencies: i.e., the Tone Control Response
Curves shown in Typical Performance Section will shift left
when C2 and C3 are increased and shift right when C2 and
C3 are decreased. With C2 = C3 = 0.0082 F, 2 dB steps are
achieved at 100 Hz and 10 kHz. Changing C2 and C3 to
0.01 F shifts the 2 dB step frequency to 72 Hz and 8.3
kHz.If the tone control capacitors’ size is decreased these
frequencies will increase.With C2 = C3 = 0.0068 F the 2 dB
steps take place at 130 Hz and 11.2 kHz.
10001428
FIGURE 5. 3D Effect Components
LM4832
www.national.com
16