1、I 单片机在电力系统中的应用单片机在电力系统中的应用 八户电子八户电子单相单相电能表电能表设计与调试设计与调试 II 摘要摘要 本文介绍了一种以 AD7755 的电能脉冲发生器模拟用户用电情况,应用单片 机 C8051F360 编制程序完成脉冲的读取、计数、计算、存储、显示等功能,用 74HC164 及八段译码显示器完成数据的显示,使用 E2PROM 24C16 芯片来实现单 片机的掉电数据保护,使用 74HC175 和键盘搭配实现对每户用电情况清零,并提 供了其硬件和软件设计结构, 该电能表可实现电能计量、 数码管显示、 掉电存储、 清零等功能。 在本电子电能表的前面板上有 8 位数码管显示
2、器,前两位为分户号,后 6 位为分户用电量,所显示的用电量与分户号相对应,分户循环显示,每隔 2 秒切 换一次用户。 八户电子电能表采用单片机 C8051F36 作为中央处理器,每块电能表可对 8 户的用电情况进行集中检测、循环显示并具有掉电保护的功能。该电能表与传统 感应式电能表相比,有效地提高了电能计量的准确性,且具有体积小、质量轻、 安装方便等优点。 关键词:关键词:C8051F360;电量;电能表;电能转化脉冲芯片有 AD7755;硬件设计; 软件设计 III ABSTRACT Eight electronic energy meter with a microcontroller C
3、8051F36 as the central processor, each energy meter eight electricity centralized testing, recycling and power-down protection function. Compared with the traditional induction meter to the power meter, and to improve the accuracy of energy metering, and has a small size, light weight, easy to insta
4、ll. This article describes the function of an AD7755 power pulse generator that simulates user of electricity in the application MCU C8051F360 programming to complete the pulse reading, counting, computing, storage, display, complete data using the 74HC164 and eight out of decoding display, to achie
5、ve single-chip power-down data protection of E2PROM 24C16 chip, 74HC175 and keyboard with the household electricity consumption is cleared, and provides hardware and software design structure, the energy meter energy metering, the digital control display, power-down storage, cleared and functions. 8
6、 digital display of the electronic energy meter front panel, behind the household electricity consumption of household electricity consumption, shown in the last six corresponding to the household, household cycle display every 2 seconds to switch a user. Keywords: C8051F360 microcontroller; AD7755; power; energy meter IV 目录目录 1 前言前言.1 2 设计任务及要求设计任务及要求2 3 设计原理设计原理 .3 3.1 系统方案 3 3.2 设计总论 3 3.3 方案设计框图 . 4 4 硬件电路设计硬件电路设计5 4.1 单片机电路部分 5 4.2 稳压电源 8 4.3 AD7755 相关电路 . 8 5 软件电路设计软件电路设计 . 13 5.1 各模块流