abstract: the ds1802 audio potentiometer contains two digitally controlled potentiometers and features a logarithmic taper that produces a 1db change per increment. this application note describes using it in a push-button controlled audio preamplifier circuit.
免费注册参加在线研讨会,学习如何分析、测量并最终解决音频系统的设计问题 (english only) 。
introduction to the ds1802 dual logarithmic audio potentiometerthe ds1802 audio potentiometer contains two digitally-controlled potentiometers and features a logarithmic taper that produces a 1db change per increment. the maximum attenuation is 63db, and it also contains a mute function that attenuates the signal greater than 90db. additionally, the ds1802 has four push-button inputs that can be used as either a volume/balance controller for stereo applications or independent position control of the two potentiometers. the part also contains zero-crossing detectors, which when used properly can seamlessly change the volume creating a professional-sounding audio system. the part is available in 20-pin dip, soic, or tssop packages.
the ds1802 is ideal for applications where a pushbutton controllable resistance is desired, however it also has a 3-wire interface that can be used for controlling the potentiometers by a pc or microcontroller. this application note shows how to use the part with a minimal amount of hardware to create a pre-amplifier circuit with a pushbutton controllable volume for two stereo channels.
single power supply audio circuitsthe first step in using the ds1802 is understanding how to bias an ac signal to within the dc supply range. this is required because the ds1802 will clip audio signals that attempt to go below gnd or above vcc. the ds1802 can operate from a 3v or 5v supply, but be aware that selecting the supply voltage also will affect the maximum audio signal swing that the part can handle. since audio signals are generally symmetric, it is best to set the dc bias to vcc/2 to obtain the maximum audio signal swing.
a wheatstone-bridge circuit, shown in figure 1, can be used to set the dc bias of the input signal to vcc/2.
figure 1. a wheatstone-bridge circuit for adding a dc bias to an audio circuit.
this circuit is a classic signaling circuit because it allows an ac signal to be passed across the middle resistor (or potentiometer) with the same dc bias on both sides. this is critical for a digital potentiometer because the zero-crossing detector switches the potentiometer's position when there is zero voltage across the end-to-end resistance of the potentiometer. thus, there is no voltage potential across the digital potentiometer to cause the pop that you will typically hear when a digital potentiometer switches its location instantaneously.
there are three critical performance components to this circuit that can be seen by looking at the ac and dc models shown in figure 2. first, cin must be a good capacitor that will block the dc signal. this will allow your dc bias to be set by the resistor network. additionally, cin must be sufficiently large to allow low-frequency signals to be passed onto your resistor network. if it is large enough, the system will have good performance over the entire audio range. the second point is that r2 must be much smaller than the end-to-end resistance of the potentiometer. the ac signal will be divided across the potentiometer and the two r2 resistors that will be in parallel. if r2 is large, the majority of the ac signal could potentially be lost and this would decrease the signal to noise ratio of the system. it is advisable to make the two r2 resistors relatively small, however it will obviously affect the dc current of the system as well. the last critical component is that the two r1 resistors should be relatively large or the ac input impedance will be too low for practical use. most consumer audio components have relatively high input impedances. the size of the r1 resistors and the end-to-end resistance of the potentiometer have the greatest effect on the ac input impedance of this circuit. the input impedance will not be affected that much by r2 or cin because those impedances must be small with respect to the other two for the circuit to work well.
figure 2. the dc and ac models for the wheatstone bridge circuit.
the dc model of the circuit is easy to analyze because the input capacitor isolates the resistor network from any dc associated with the input, and the two ends of the potentiometer are both at vcc/2, so no dc current will flow through the potentiometer. thus, it is easy to determine the circuit's dc current consumption, which is shown in eq. 4. it is the sum of the current flowing from vcc to gnd through 2r1 and 2r2. the equation has been mathematically simplified to a single fraction. note that this does not account for the current of the ds1802. it will have a small current due to digital portion of the chip that is not accounted for by this equation.
if you consider the ac model for this circuit, vcc will appear as an ac ground, and the resistor is easy to analyze for impedance considerations. the formula for rin is shown in eq. 1, and rin_r (eq. 2) is the impedance of the resistor network without the input capacitor considered. if you look at the loss formula in eq. 3, the losses are proportional to rin_r / rin and rpot / (rpot + r2||r2). the rin_r / rin term accounts for the voltage drop from the input capacitor when feeding the input impedance of the wheatstone-bridge.
the rpot / (rpot + r2||r2) term accounts for the losses associated with voltage divider when the ac signal is divided across the potentiometer and the two resistors bias the low side of the potentiometer. if cin is large and r2 is small, there will be very little signal loss that is created by this circuit. also, the only frequency related signal loss would be caused by the input capacitor, which creates a high-pass filter when coupled with the input resistance of the wheatstone-bridge resistor network. if the impedance of the capacitor is relatively small compared to the input resistance of the wheatstone-bridge, the ac signal will not exhibit frequency-related characteristics. since the circuit has a tendency to filter low-frequency response, it is wise to calculate how much loss you have at 20hz. that is the low end of the audio spectrum, and that will give you a good idea of how well your circuit should handle the entire audio range.
the common mistake that is made when using a digital potentiometer is to attempt to use the part in a way that is normally done with a mechanical potentiometer. figure 3 shows a simple circuit that can be used with a mechanical potentiometer that will cause popping with a digital potentiometer.
figure 3. a simple mechanical potentiometer circuit that does not work with a digital potentiometer.
the reason that this circuit works with a mechanical potentiometer is that the dc level of the output signal changes when the potentiometer is changed. the input side of the circuit will remain at a constant vcc/2 dc level (assuming r1 = end-to-end resistance of the potentiometer). when you change a mechanical pot, the change is usually continuously variable. the dc output level changes slowly and continuously. thus, cout will allow the ac output signal to remain on dc ground. a digital potentiometer changes potentiometer position instantaneously. the step change in the dc level of the output will momentarily pass current through cout, and this will cause the popping sound that you will typically hear with a poorly designed circuit. this phenomenon can also be heard with cheap audio circuits that use poor quality mechanical potentiometers that have inadvertent breaks in the resistance during resistance changes. the other issue with this circuit is that it does not enable the zero-crossing detector to work because the high side of the potentiometer (h) is bias to vcc/2, and the low side of the potentiometer (l) is tied to ground. thus, unless the magnitude of the ac signal is vcc/2, h and l will never be at the same potential, and the zero-crossing detector will always timeout and switch when there is potential across the potentiometer.
although the above circuit's problems are relatively easy to find, many designs that are very robust mechanical potentiometer designs are often modified to incorporate a digital potentiometer. these types of errors are typical when a circuit is converted. an example of a typical mechanical potentiometer design that may require converting is shown in figure 4. a couple of things could be potential problems when converting this circuit to a digital potentiometer. the input signal is referenced to ground via the potentiometer. if the input was an audio signal with 0v dc bias, negative signal voltages will be applied to the high side of the potentiometer. the ds1802 would clip signals below ground with its esd structures. the maximum ratings of the ds1802 would imply that a -0.5v signal would not be a problem. however, the ds1802's esd-protection circuits are active whenever below gnd or above vcc. although it will not hurt the part, this causes distortion of the audio signal. this circuit would work fine for the zero-crossing detector if both ends of the potentiometer are biased to 0v dc. however, the lack of negative signal swing could cause the circuit designer to decide to bias the input to vcc/2.
figure 4. mechanical potentiometer circuit for conversion to a digital potentiometer.
once the input is re-biased, you then have the same zero-crossing problem that the circuit of figure 3 did. the high and low side of the potentiometer are now at different dc potentials, and the instantaneous dc level change at the wiper will propagate through c1 to the output.
the moral of this example is to think through all of the dc operating points and ac signal paths when using a digital potentiometer. the parts are easy to use; however, they are not mechanical potentiometers. they are active components, and must be intelligently used according to the datasheet specifications to achieve good results.
example stereo preamp with push-button volume controlbeyond the biasing of the audio signal to a dc level of vcc/2, and keeping the high and low side of the potentiometer at the same dc potential, there are few difficulties in making the audio attenuator using a ds1802. the input impedance of the wheatstone bridge must be large enough that an external source can drive the signal into the pre-amplifier. the input capacitor must be large enough that it does not attenuate your low-end frequency response, and r2 must be small enough that it does not attenuate your signal across the digital potentiometer.
the circuit shown in figure 5 has minimal signal loss and good frequency response.
figure 5. preamp circuit with push-button attenuator.
analyzing this circuit yields an input impedance of greater than 13.7kω. the signal loss due to the wheatstone-bridge circuit and the input capacitor at 20hz is 1.2db. since most full-range speakers at best have a frequency response down to 50hz, the input attenuation at 50hz is 0.6db. also notice that momentary switches are simply connected to ground since the ds1802 internally debounces input switches. the switching configuration shown provides only the volume up, volume down, and mute control for the audio signal. the ds1802 data sheet shows how to configure the part for a stereo controller and how to independently control the potentiometers using the push-buttons if that functionality is desired. also note that vcc is de-coupled with a capacitor near both the ds1802 and the max4167 operation amplifier. this improves the system's audio performance by limiting supply fluctuations. the operational amplifiers are required in this circuit because the ds1802 has a relatively high wiper (output) resistance. without buffering, the ds1802 can only drive a 1ma load. additionally, if the load is capacitive, the high output resistance will cause the attenuator to filter out high frequencies. since the operational amplifier has a high input impedance, it does not load down the potentiometer and it is capable of providing a reasonable amount of drive current to the next amplifier stage. the two c3 capacitors are required to allow the next stage of the amplifier to re-bias the dc level of the audio signal. they are not required if an input capacitor is present at the next stage, or if the next stage operates at the same dc bias level.
三星智能手机新专利:正反面双屏和无“下巴”
泰克公司推出下一代高性能任意波形发生器AWG70000
基于LCSLM的相移数字全息原理详解
全球网络设备市场规模持续提升,交换机市场份额最大
三星Galaxy S20系列全面曝光 Galaxy S20+将搭载高通骁龙865
使用DS1802按钮数字电位器创建音频放大器-Using a
索尼正在豪赌3D成像和增强现实技术 并认为人类将进入3D交互时代
飞兆半导体TinyLogic 系列担当节能新角色
分析石头科技最新推出的T7S Plus
AFPM100消防设备电源状态监控器是电源监控系统的核心
微型自动增益控制分类的红外接收器AGC5
推动机器人质量的提升 向中高端行业迈进
美国开发便携式口罩消毒器:全球首款UVC光消毒设备
以阿里的名义 互联网刮反腐风
云服务将会给智能门禁系统带来一些什么影响
Nuro获9.4亿美元融资 软银表露出了要购买自动驾驶赛道的倾向
电容器在电路中的起到什么样的作用
航拍倾斜摄影Web 3D GIS 数字孪生智慧火电厂
区块链智能合约是什么?它是真的智能吗?
三本毕业的工程师写师弟师妹的感悟