家电维修班,手机维修班,电脑维修班,电工班,焊工班,液晶电视维修班,电动工具维修班、电动车摩托车维修班、网络营销培训、网站设计培训、淘宝培训---全国招生 家电维修班,手机维修班,电脑维修班,电工班,焊工班,液晶电视维修班,电动工具维修班、电动车摩托车维修班、网络营销培训、网站设计培训、淘宝培训---全国招生
湖南阳光电子技术学校是经湖南省政府1994年批准建立,由湖南劳动厅领导的一所电子类全日制国家电子技术专业学校。是湖南省知名电子技术教育基地,是教育部批准参加全国电子技术应用专业技能型紧缺人才培养培训工程的学校之一。常年面向全国招生!0731-85579057。
首 页·您想咨询招生情况,请联系我啊·您想咨询招生情况,请联系我啊

使用DS1802按钮数字电位器创建音频放大器-Using a DS1802 Push-Button Digital Potentiometer to Create an Audio Preamp with Attenuator

当前位置:湖南阳光电子技术学校文章资讯电子基础

湖南阳光电子技术学校 简介

学校地址:湖南省 长沙市 雨花区 树木岭路330号
来校路线:长沙火车站售票厅后坪,乘135路公交车到“鼓风站”,即到.
学校电话:0731-85579057,0731-85569651
免费电话:0731-85579057
值班手机:(0)13807313137 杨老师
开课时间:我校常年面向全国招生,月月开班。每月1号,16号开学。
招生范围:凡年满15岁的公民,不限年龄,性别,地区。都欢迎来我校学习。
学校官网:www.hnygpx.com www.hnygpx.net
专业介绍:欢迎查看我校专业课程!
收费标准:欢迎查看我校收费标准!
在线 Q Q:您想咨询招生情况,请联系我啊·您想咨询招生情况,请联系我啊
网上报名:欢迎您报读湖南阳光电子学校!


使用DS1802按钮数字电位器创建音频放大器-Using a DS1802 Push-Button Digital Potentiometer to Create an Audio Preamp with Attenuator

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2011-05-06 00:10:40

Introduction to the DS1802 Dual Logarithmic Audio Potentiometer

The 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 Circuits

The 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 Control

Beyond 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.
Figure 5. Preamp circuit with push-button attenuator.

Analyzing this circuit yields an input impedance of greater than 13.7kW. 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.  ★★★★★ 湖南省阳光电子技术学校常年开设:手机维修培训、家电维修培训、电工培训、电脑维修培训、焊工培训--面向全国火爆招生!网址:http://www.hnygpx.com 报名电话:0731-85579057)。百分百安置就业。颁发全国通用权威证书。采用我校多年来独创的“模块教学法”,理论与实践相结合、原理+图纸+机器三位一体的教学模式,半天理论,半天实践,通俗易懂,确保无任何基础者也能全面掌握维修技能、成为同行业中的佼佼者。包教包会包工作(一期不会,免费学会为止)。

Tags:

作者:佚名

文章评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
Copyright © 2003-2008 hnygpx.com. All Rights Reserved .
页面执行时间:20,328.00000 毫秒
电工培训学校 电动车维修学校 摩托车维修学校 摩托车维修培训 手机维修培训 家电维修培训 电脑维修培训 电动工具维修培训 液晶电视维修培训 安防监控培训 空调维修培训 网络营销培训 网站设计培训 淘宝网店培训 电器维修培训 家电维修学校 电工培训 焊工培训 电工学校
中山市,固原市,银川市,玉树,海东,陇南市,酒泉市,张掖市,天水市,金昌市,兰州市,榆林市,延安市,渭南市,铜川市,阿里,山南,拉萨市,怒江,文山州,楚雄州,普洱市,昭通市,玉溪市,昆明市,毕节,铜仁,遵义市,贵阳市,甘孜州,资阳市,达州市,宜宾市,南充市,遂宁市,绵阳市,泸州市,自贡市,三亚市,崇左市,河池市,玉林市,钦州市,梧州市,柳州市,梅州市,肇庆市,湛江市,佛山市,珠海市,韶关市,湘西州,怀化市,郴州市,张家界市,邵阳市,株洲市,仙桃市,随州市,荆州市,荆门市,襄樊市,黄石市,驻马店市,信阳市,南阳市,漯河市,中卫市,石嘴山市,海西,海南藏州,黄南州,海北,甘南,庆阳市,平凉市,武威市,白银市,嘉峪关市,安康市,汉中市,咸阳市,宝鸡市,林芝,日喀则,昌都,迪庆,德宏,大理,西双版纳,红河州,临沧市,丽江市,保山市,曲靖市,黔东州,黔西州,安顺市,六盘水市,凉山州,阿坝州,雅安市,广安市,眉山市,内江市,广元市,德阳市,攀枝花市,成都市,海口市,来宾市,百色市,贵港市,北海市,桂林市,南宁市,云浮市,揭阳市,潮州市,清远市,阳江市,汕尾市,惠州市,茂名市,江门市,汕头市,深圳市,广州市,娄底市,永州市,益阳市,岳阳市,湘潭市,长沙市,恩施州,黄冈市,孝感市,鄂州市,十堰市,武汉市,周口市,商丘市,三门峡市,许昌市,焦作市,安阳市,鹤壁市,平顶山市,开封市,郑州市,聊城市,滨州市,德州市,莱芜市,日照市,泰安市,烟台市,潍坊市,东营市,淄博市,上饶市,济南市,抚州市,宜春市,赣州市,新余市,九江市,景德镇市,宁德市,南平市,泉州市,莆田市,厦门市,宣城市,亳州市,六安市,宿州市,黄山市,滁州市,安庆市,淮北市,马鞍山市,蚌埠市,芜湖市,合肥市,丽水市,舟山市,衢州市,金华市,湖州市,嘉兴市,宁波市,宿迁市,镇江市,盐城市,连云港市,苏州市,徐州市,南京市,绥化市,牡丹江市,佳木斯市,大庆市,鹤岗市,哈尔滨市,白城市,白山市,辽源市,吉林市,葫芦岛市,铁岭市,盘锦市,阜新市,锦州市,本溪市,鞍山市,沈阳市,锡林郭勒盟,通辽市,乌海市,吕梁市,忻州市,晋中市,晋城市,阳泉市,太原市,廊坊市,承德市,保定市,邯郸市,唐山市,宁夏,甘肃省,西藏,贵州省,重庆市,广西,湖南省,河南省,江西省,安徽省,江苏省,黑龙江省,辽宁省,山西省,天津市,四平市,内蒙古,吴忠市,果洛,西宁市,定西市,商洛市,西安市,那曲,黔南州,巴中市,乐山市,贺州市,防城港市,东莞市,河源市,常德市,衡阳市,咸宁市,宜昌市,濮阳市,新乡市,洛阳市,菏泽市,临沂市,威海市,济宁市,枣庄市,青岛市,吉安市,鹰潭市,萍乡市,南昌市,龙岩市,漳州市,三明市,福州市,池州市,巢湖市,阜阳市,铜陵市,淮南市,台州市,绍兴市,温州市,杭州市,泰州市,扬州市,淮安市,南通市,常州市,无锡市,大兴安岭,黑河市,七台河市,伊春市,双鸭山市,鸡西市,齐齐哈尔市,延边,松原市,通化市,长春市,朝阳市,辽阳市,营口市,丹东市,抚顺市,大连市,阿拉善盟,兴安盟,乌兰察布市,巴彦淖尔市,呼伦贝尔市,鄂尔多斯市,赤峰市,包头市,呼和浩特市,临汾市,运城市,朔州市,长治市,大同市,衡水市,沧州市,张家口市,邢台市,秦皇岛市,石家庄市,青海省,陕西省,云南省,四川省,海南省,广东省,湖北省,山东省,福建省,浙江省,上海市,吉林省,河北省,北京市