自动化与仪器仪表
自動化與儀器儀錶
자동화여의기의표
AUTOMATION & INSTRUMENTATION
2014年
4期
71-73
,共3页
电压监测%单片机%C#%串口通信
電壓鑑測%單片機%C#%串口通信
전압감측%단편궤%C#%천구통신
Voltage monitoring%MCU%C#%Serial communication
为了实现电源电压的监测,提出了一种基于单片机和C#的电压监测系统。该系统由电压监测装置和上位机程序两部分组成,它们之间通过串口进行通信。电压监测装置以AT89C51和ADC0832为核心器件构建,实现电压采集、电压显示、电压超限报警、报警电压设置和串口通信等功能;上位机程序采取C#编程语言构建,实现数据采集、实时电压状态显示、电压超限报警、报警电压设置、电压数据存储和历史电压数据显示等功能。系统应用与分析结果表明,设计的系统能实现电压监测的各种功能,运行效果良好。
為瞭實現電源電壓的鑑測,提齣瞭一種基于單片機和C#的電壓鑑測繫統。該繫統由電壓鑑測裝置和上位機程序兩部分組成,它們之間通過串口進行通信。電壓鑑測裝置以AT89C51和ADC0832為覈心器件構建,實現電壓採集、電壓顯示、電壓超限報警、報警電壓設置和串口通信等功能;上位機程序採取C#編程語言構建,實現數據採集、實時電壓狀態顯示、電壓超限報警、報警電壓設置、電壓數據存儲和歷史電壓數據顯示等功能。繫統應用與分析結果錶明,設計的繫統能實現電壓鑑測的各種功能,運行效果良好。
위료실현전원전압적감측,제출료일충기우단편궤화C#적전압감측계통。해계통유전압감측장치화상위궤정서량부분조성,타문지간통과천구진행통신。전압감측장치이AT89C51화ADC0832위핵심기건구건,실현전압채집、전압현시、전압초한보경、보경전압설치화천구통신등공능;상위궤정서채취C#편정어언구건,실현수거채집、실시전압상태현시、전압초한보경、보경전압설치、전압수거존저화역사전압수거현시등공능。계통응용여분석결과표명,설계적계통능실현전압감측적각충공능,운행효과량호。
In order to realize the monitoring of power supply voltage, a design of voltage monitoring system based on MCU and C# is presented. The system consists of voltage monitoring device and host computer procedure, they communicate with each other via serial port. The voltage monitoring device is designed by the core of AT89C51 MCU and ADC0832, it realizes the functions of voltage acquisition, voltage display, voltage alarm, voltage upper limit set and serial communication. The host computer procedure is designed by C# programming language, it realizes the functions of serial communication, real-time voltage state display, voltage alarm, voltage upper limit set, voltage data storing and history voltage data display. The system application and analysis results show that the designed system can realize the voltage monitoring functions and the operation effect is good.