单相复费率数字电能表的软件部分设计
目录
摘要 1
ABSTRACT 2
1. 绪论 3
1.1课题的理论意义和实际应用价值 3
1.2电能表行业发展现状及前景分析 4
1.3复费率计费方法 4
1.3.1 电能计量 4
1.3.2分时计量 4
1.3.3 最大需量计量 5
2. 系统设计 5
2.1 设计要求 5
2.2 系统框图 5
4. 软件设计 7
4. 1主程序 7
4.2动态自检程序 7
4.3数据存储程序 10
4.4通讯中断子程序 10
4. 结论与展望 11
4.1工作总结 11
4.2进一步的工作方向 12
参考文献 12
附录程序 14
摘要
随着经济的迅速发展,用电量日益增加,为电网的稳定运行带来了诸多不良因素。国家采取多费率用电政策,以消峰填谷,平衡用电。复费率电能已经大规模取代了单一费率电能表。随着单片机技术的日益发展,以单片机为主控芯片的电子式电能表的生产已成规模。但是价格低廉、运行稳定、可靠性高、抗干扰能力强的电子式电能表还有待开发。论文在对电能计量和数字信号处理理论研究的基础上,以美国ADI公司生产的ADE7755为电能计量芯片,以8051制芯片,利用单片机技术,设计开发了一款单相复费率智能电子式电能表。硬件外围电路采用模块化设计。其中电压电流采样模块实现了将电网中的不可直接测量的大电压大电流转变成为可以用来处理测量的小电压小电流。电源模块为整个智能电表提供了稳定的电源。数据存储模块,红外通信模块和RS485通信模块的设计完成了电能信息的及时存储和交换。LCD模块为用户提供了清晰,实时的电量信息。软件分为启动前的动态自检程序,计量电量的电能脉冲采集程序,数据信息处理和交换的数据存储程序,通讯中断子程序。在单片机的核心控制下,实现了电子式电能表电能分时段计量、数据通信等功能。
关键词:复费率电能表,ADE7755,电能计量,信号处理。
ABSTRACT
With the development of economy and the increasement of the electrical quantity, the running of the d is threaten heavily.The government of China has adopted the policy of different prices of the electrical power in order to keep balance of the electrical quantity comsuption.Multi-tarif Watt—hour Meter has taken the position of the single-tarif Watt-hour Meter widely With the development of single—chip technology the research of electronic Watt hour Meter is produced in a huge range But the low-price Meter which runs stably and has strong ability to resist interference still need to be designed.
The paper is based on the research of electric energy measurement theory and digital signal processing theory mainly utilizes chip ADE7755 produced by ADI company to measure power ,single chip PIC1 6F877 to control the whole system.The paper finished the design of The Single-phase Intelligent Multi-tarif Watt-hour Meter The peripheral hardware adopted module design.Voltage and electricity module converts the high voltage and electricity to low ones that Can be measured.The source module provides the whole system stable power.Data storage module,infrared communication module and RS485 module can storage and exchange the power information.LCD module provides users with clear and real—time energy information. Software includes dynamic checking module,power pulse collection module,data storing and exchanging module,interrupted Communication module.Under the control of the single chip PIC1 6F877,the whole system Can measure the electrical quantity in different periods of time and finishes the data exchanging. Key Words:electronic Watt-hour Meter,ADE7755,electric energy measurement signal processing