电压监测统计仪的研究(附PCB,程序,实物图,电路原理图)☆(任务书,开题报告,毕业论文18000字,外文翻译)
摘要:本文介绍了一种基于单片机STC89C52的电压监测统计仪器的原理及组成部分。时间由实时时钟芯片PCF8583操控,HD版本内部集成MAX810专用复位电路。采集时间是1秒钟。其最终仪表的技术要求如下:精度等级:1% 存储数据量:每小时一个平均电压,一天采集24次。
关键字:STC89C52 电压监测统计仪 汇编语言 AD转化
Voltage Monitoring Statistics Instrument research
Abstract: This paper introduces a kind of STC89C52 voltage monitoring based on single chip microcomputer principle and statistical instrument component parts. The design of the voltage monitoring statistics instrument not only kept the traditional statistics meter precise stable excellent properties, and revolutionary joined the innovation module. Has been widely applied to our daily life and national economic fields in.
The design of hardware circuit can be divided into eight sections: overall conversion module and single-chip microcomputer control mood-related module, digital display module, &high module, clock module, storage module, keystroke module, serial interface module. Voltage monitoring statistics by single-chip microcomputer chip instrument STC89C52 and AD module implements data acquisition and processing, finally and in six digital tube display. Design every hour collect data once, 24 times a day gathering. Acquisition time is 1 seconds. Time PCF8583 control by real time clock chip, get the data in six digital tube display and feedback to STC89C52. In key module, realize human-machine humanized exchanges by buttons.
This design software module design completed by assembly language, points, data acquisition main routine handling procedures, clock program, storage procedures, keyboard program, show program, send and receive procedures, etc. Cooperate with PC software hunger for grid real-time.according, data statistics, analysis, processing, storage, printing, etc. Can accurately reaction power grid electricity quality for the implementation of scientific management provides favorable basis.
Keywords: STC89C52 Voltage Monitoring Statistics Apparatus Assembly language AD transformation
系统总体设计
2.1系统设计要求
本课题是设计制作基于微处理器的电压监测统计仪﹑完成对110V、220V或380V
交流电在线检测、统计、存储、查询和打印功能。根据能源部颁布的“电压监测记录仪器订货技术条件”的要求,为实施科学的管理提供了有利依据。
4.使用PROTEL、ASM或C51完成对下位机的电路设计,供单片机进行采集和处理。
3.了解电压监测统计仪中控系统的操控流程。
2.根据提出的技术要求完成系统调试。
工作任务包括:
1.完成以STC89C52单片机为操控中心系统的硬件电路设计和制作。能准确反应电网用电质量,其工作原理大致如下:被测交流电压首先经过有效值/直流转换电路,共1个月的数据 采样速度:1次/s 显示:采用6个数码管显示 统计参数包括:停电总时,停电次数,合格时间,超高时间,超低时间,最高电压值, 最高电压出现的时间,最低电压值,最低电压出现的时间,平均电压。配合上位机软件饥渴对电网进行实时监测、数据统计、分析、处理、存储、打印等。
3 系统硬件设计
3.1 单片机的选择
3.1.1 功能特性描述
STC89C52系列单片机是深圳宏晶科技推出的新一代高速/低功耗/超强抗干扰的单片机,创新性的加入了掉电设计,分为主程序、数据采集处理程序、时钟程序、存储程序、键盘程序、显示程序、发送和接收程序等。
5.电路板的设计及制作,即为当前的电压值。这样设计出来的电压监测统计仪不仅在价格上占有一定优势,并在此基础上,将其变换为直流电压信号,实际工作可达48mhz
•用户应用程序空间:4k/8k/13k/16k/32k/64k字节
•片上集成1280字节或512字节RAM
#p#副标题#e#
目 录
1 引言 1
2 系统总体设计 2
2.1 系统设计要求 2
2.2 系统设计思路 2
2.2.1 电压监测统计仪理论分析 2
2.3 系统设计框图 3
3 系统硬件设计 5
3.1 单片机的选择 5
3.1.1 功能性描述 5
3.1.2 电压监测中单片机的关键引脚接口 5
3.1.3 STC89C52系列内部结构框图与其实物图 5
3.1.4 管脚描述 6
3.2 单片机最小系统设计 8
3.3 实时时钟模块 10
3.3.1 PCF8583芯片介绍 10
3.3.2 PCF8583寄存器结构 10
3.3.3 PCF8583与单片机STC89C52接口电路 11
3.4 芯片供电模块 12
3.5 存储模块 13
4 系统软件设计 16
4.1 软件程序设计要求 16
4.2 系统软件程序设计 16
4.2.1工作单元分配和标志位说明 16
4.2.2功能模块设计 18
4.3 数据采集子程序 19
4.4 时钟子程序 20
4.5 存储子程序 21
4.6 键盘和显示子程序 22
4.6.1显示子程序 22
4.6.2键盘子程序 26
5 系统调试 26
5.1 硬件调试 26
5.1.1 最小系统板的调试 26
5.1.2 采样模块的调试 26
5.1.3 单片机读写调试 26
5.1.4 整体调试 26
5.2 软件调试 28
6 故障分析及解决 29
6.1 AD采样模块 29
6.2 AT24C64读写模块 29
6.3 显示模块 29
6.4 PCF8583时钟读写模块 29
7 结论 30
参考文献 31
致谢 32
附录 A 33
附录 B 34
附录 C 35
附录 D 36
附录 E 37
附录 F 38
附录 G 72