基于数字电位器 X9221 的可编程线性稳压电路摘 要数字电位器使用数控方式调节电阻值,与传统的机械电位器相比性能更加优越,因此能够在许多应领域代替机械电位器。数字电位器一般情况下带有总线接口,能够通过单片机或者逻辑电路进行编程。自从 20 世纪 90 年代问世以来,就彰显出强大的生命力。可调线性稳压器通过手动调节电阻值来改变输出电压,不但调节精度低,而且使用不够方便。但是用数字电位器代替可调电阻,即可构成由计算机控制的可编程稳压器,能够有效地解决以上两个问题。本设计通过 STC89C52 单片机控制数字电位器 X9221 的阻值,由此来改变稳压电路的输出电压。采用按键方法控制计数值的增减,进而改变数字电位器的电阻值,并通过数码管显示计数值的大小。且该稳压电路的输出电压线性可调,输出电压的线性度符合一般应用要求。关键词:数字电位器 X9221,单片机 STC89C52,稳压电路iBased on the digital potentiometer X9221 of the programmable linear regulator circuitABSTRACTDigital potentiometers use numerical control method to adjust the resistance value, which own superior performance compared with the traditional mechanical potentiometers.Thus it can replace mechanical potentiometers in many application fields.Digital potentiometers usually take a bus interface and can be programmed by the single chip microcomputer or the logic circuit.Since it appeared in the 1990s,it has been showing the great vitality.Adjustable linear regulator is manually adjusted the resistance value to change the output voltage,which is not only low precision but also inconvenient to use.But using digital potentiometers instead of the adjustable resistance,can constitute a computer-controlled programmable regulator,and is able to solve these two problems above effectively.We can adjust the resistance value of the digital potentiometer X9221 by the single chip microcomputer STC89C52 to change the output voltage of the voltage regulator circuit in this design.We use buttons to control...