Digital Audio Amplifier Gain Control using Logarithmic Intersil Digitally Controlled Potentiontiometers (XDCPs) ® Application Note April 21, 2005 AN49.0 Author: Applications Staff Often the power amplifier stage of a communications device is located some distance from the control panel. The typical solution is to mount the volume control on the front panel and run a pair of shielded cables back to the power amplifier stage. A better solution is to use the Intersil X9314 logarithmic taper digitally controlled potentiometer. This completely eliminates the need for shielded cables since the digital pot can be located on the printed circuit board near the low level input stages of the power amplifier. The up/down volume switches can be located yards away as these are merely low speed TTL signals. Circuit Description Figure 1 shows the X9314 with the low voltage LM386 power amplifier. This circuit will produce 250mW of audio power with only a 5V DC source. Figure 2 is a similar circuit that uses the higher power LM380 and is capable of delivering over 1W of audio if a 12V DC source is available. Either circuit will provide plenty of sound for intercom, communications, or monitoring applications. The 1W circuit would be preferred when higher ambient noise is present, such as in an automobile. A 74HC132 quad Schmitt nand gate (U2) plus a few discretes are all that are required to interface to U1, the X9314W 10kΩ XDCP. When either pushbutton switch, S1 or S2, is depressed, U2A output will be HIGH. This immediately brings U2B output LOW which enables the XDCP. After a short delay determined by R3 and C3, the astable multivibrator (U2C) will begin generating increment pulses. 1 The frequency of the oscillation (and consequently the speed at which the volume can be controlled) is determined by C1 and R1. The values shown will advance the X9314 through all 32 wiper taps in about 5 seconds. R1 can be changed from 5KW to 1MW to suit your preference. When the pushbutton switches are released, R2 and C2 delay the release of the X9314 chip select in order to ensure that the last increment pulse is written. The X9314W needs little else to apply it to most audio circuits, but C9 has been included here to remove any DC component that may be present on the input signal. Also, lowpass filter R7 and C8 removes residual high frequency noise from the digital pots’ internal charge pumps. The LM380 and LM386 power amplifiers have fixed gains of 34dB and 26dB respectively. The gain of the LM386 can be increased to 46dB (X200) by connecting a 10µF capacitor from pins 1 to 8. The positive pole of the capacitor should be connected to pin 1. The output snubber network (R6 and C5) is required for stability and should be located close to the output pin of the power amplifier. These amplifiers have fairly high gain and wide bandwidths, so be careful with PCB trace lengths. All connections to these amplifiers should be as short and direct as possible. CAUTION: These devices are sensitive to electrostatic discharge; follow proper IC Handling Procedures. 1-888-INTERSIL or 1-888-352-6832 | Intersil (and design) is a registered trademark of Intersil Americas Inc. Copyright Intersil Americas Inc. 2005. All Rights Reserved All other trademarks mentioned are the property of their respective owners. Application Note 49 J1 JACK C9 AUDIO INPUT 1µF VCC 7 R5 10K CR1 1N4148 S1 DECREASE 1 R2 27K 2 6 5 1 U/D CS INC 74HC132 C2 1000pF U2A U2B 3 VH VW VL 5 6 X9134 R7 7.5K CR2 1N4148 C4 250µF 4 + 5 R6 2.7 6 C6 .1µF 4 OHM 2.7 SPEAKER C5 .1µF C10 10µF 74HC132 S2 INCREASE 3 C8 470pF 3 2 LM386 2 U1 4 R4 10K C7 .1µF VCC R3 27K 10 U2D 8 9 74HC132 C3 1000pF C1 1µF R1 220K FIGURE 1. Low Voltage Audio Amplifier +VBAT J1 JACK C9 C10 10µF AUDIO INPUT 1µF VCC 7 4 R4 10K R5 10K CR1 1N4148 S1 DECREASE 1 R2 27K U2B 2 6 5 74HC132 C2 1000pF U2A 2 1 U/D CS INC VH VW VL 3 5 R7 7.5K 3 7 + C4 250µF 6 4 6 U3 LM386 5 R6 2.7 C6 .1µF X9134 4-16 2.7 OHM SPEAKER C6 .1µF 3 2 S2 INCREASE C7 .1µF U1 74HC132 CR2 1N4148 R3 27K VCC 10 U2D 8 9 1 VR1 LM78L05AC2 OUT IN +VBAT 8 74HC132 GND C3 1000pF C1 1µF R1 220K U2 2 9V-16V DC 1 C11 .1µF FIGURE 2. 1 Watt Audio Amplifier Intersil Corporation reserves the right to make changes in circuit design, software and/or specifications at any time without notice. Accordingly, the reader is cautioned to verify that the Application Note or Technical Brief is current before proceeding. For information regarding Intersil Corporation and its products, see www.intersil.com 2 AN49.0 April 21, 2005