基于C语言的直流数字电压表设计 |
| |
引用本文: | 李思嘉,;刘秋朋,;张继学,;张爱丽.基于C语言的直流数字电压表设计[J].计算机与网络,2014(16):54-56. |
| |
作者姓名: | 李思嘉 ;刘秋朋 ;张继学 ;张爱丽 |
| |
作者单位: | [1]河南师范大学物理与电子工程学院,河南新乡453007; [2]河南师范大学计算机与信息工程学院,河南新乡453007; [3]新乡市国营第七六零厂,河南新乡453000 |
| |
基金项目: | 河南师范大学大学生创新创业训练计划项目(20130012);教育厅科学技术研究重点项目(13A5111533) |
| |
摘 要: | 针对传统数字电压表结构复杂、成本高、寿命短和不便升级等问题,提出来一种基于C语言以P89V51单片机为控制核心的数字电压表,硬件电路采用正负双积分型A/D转换器;电源电路用稳压芯片LM7805和LM7905来处理,电压负荷在+5 V和-5 V电压之间;数字信号处理采用CD4052B,由LM324构成量程自动转换电路。控制功能用C语言编程实现。测量范围:10 mV-2 V,分辨率1 mV(2 V档);测量误差小于±0.5 V;输入电阻大于1 MΩ。实验结果表明,该电压表能够抑制工频干扰且测量精度高,具有自动校零、量程自动切换功能和便于自动升级等优点。
|
关 键 词: | 数字电压表 自动转换 控制 单片机 |
Design on DC Digital Voltage Meter Based on C Language |
| |
Affiliation: | LI Si-jia, LIU Qiu-peng, ZHANG Ji-xue, ZHANG Ai-li (1 College of Physics and Electronic Engineering, Henan Nomlal University, Xinxiang He'nan 453(107, China) (2 College of Computer &lntbmlation Engineering, Henan Normal University, Xinxiang He'nan 4530(17, China) (3 Nationalized Seventh Six Zero Factory, Xinxiang He' nan 453000. China) |
| |
Abstract: | Aiming at the shortconfings of traditional digital voltage meter such as complex structure, high cost, short service life and difficult upgrade, a digital voltage meter is proposed, which is based on C language and uses P89V51 single chip nficrocomputer as control core. The hardware circuit uses dual integrating A/l) converter; the power supply circuit is handled by steady voltage chip LM781)5 and LM7905; the voltage load ranges from +5 V to -5 V; the digital signal processing adopts CD4052B, and the automatic range conversion circuit is constituted by LM324. The control thnction is implemented by C language programing. The measurement range is from 10 mV to 2 V, the resolution ratio is 1 mV (2V gear); the measurement error is less than + 0.5 V; the input resistance is greater than 1 MΩ The experimental results show that the voltage meter can restrain the power interference, has high measurement accuracy and such advantages as automatic zero, automatic range switching and automatic upgrade. |
| |
Keywords: | digital voltage meter automatic switching control single chip microcomputer |
本文献已被 维普 等数据库收录! |
|