[go: up one dir, main page]

CN201173949Y - Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor - Google Patents

Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor Download PDF

Info

Publication number
CN201173949Y
CN201173949Y CNU2008200795899U CN200820079589U CN201173949Y CN 201173949 Y CN201173949 Y CN 201173949Y CN U2008200795899 U CNU2008200795899 U CN U2008200795899U CN 200820079589 U CN200820079589 U CN 200820079589U CN 201173949 Y CN201173949 Y CN 201173949Y
Authority
CN
China
Prior art keywords
electric energy
module
phase
signal
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNU2008200795899U
Other languages
Chinese (zh)
Inventor
袁慧梅
关永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Capital Normal University
Original Assignee
Capital Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Capital Normal University filed Critical Capital Normal University
Priority to CNU2008200795899U priority Critical patent/CN201173949Y/en
Application granted granted Critical
Publication of CN201173949Y publication Critical patent/CN201173949Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

本实用新型一种基于NIOSII微处理器的三相电能表,具体包括:传感器,输出端与信号调理模块连接;信号调理模块,输入端与传感器输出端连接;信号采集模块,输入端与信号调理模块输出端相连;电能计量SOPC芯片,与信号采集模块连接,是整个电能表系统的核心;锁相倍频,与信号调理模块和信号采集模块相连;通用异步收发器,采用RS-232接口方式实现电能表与上位机或抄表系统的通信;LCD显示/键盘模块,连接电能计量SOPC芯片;日历时钟模块,与电能计量SOPC芯片连接;IIC存储器,与电能计量SOPC芯片连接。该电能表体积小、集成度高,可靠性强,具有可重构性。

Figure 200820079589

The utility model is based on a NIOSII microprocessor-based three-phase electric energy meter, which specifically includes: a sensor, the output end of which is connected with a signal conditioning module; a signal conditioning module, whose input end is connected with the sensor output end; a signal acquisition module, whose input end is connected with a signal conditioning module The output terminal of the module is connected; the energy metering SOPC chip is connected with the signal acquisition module, which is the core of the entire electric energy meter system; the phase-locked frequency multiplier is connected with the signal conditioning module and the signal acquisition module; the universal asynchronous transceiver adopts the RS-232 interface mode Realize the communication between the electric energy meter and the upper computer or meter reading system; LCD display/keyboard module, connected to the electric energy metering SOPC chip; calendar clock module, connected to the electric energy metering SOPC chip; IIC memory, connected to the electric energy metering SOPC chip. The electric energy meter is small in size, high in integration, strong in reliability and reconfigurable.

Figure 200820079589

Description

基于NIOSⅡ微处理器的三相电能表 Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor

(一)技术领域: (1) Technical field:

本实用新型一种基于NIOS II微处理器的三相电能表,属于仪器仪表技术领域。The utility model relates to a three-phase electric energy meter based on a NIOS II microprocessor, which belongs to the technical field of instruments and meters.

(二)背景技术: (two) background technology:

2003年城乡电网改造结束后,电力系统对三相多功能表的需求量迅速增长。由此,国际、国内电表企业纷纷看好商机,抓紧新技术开发,不断推出三相多功能表的新产品,以满足电能表市场的应用需求。据不全完统计,国家电网和南方电网拥有计费电能表总量为19500万台。其中,两网直接管理用于计费的11800万台,非直接管理用于计费的7700万台。After the transformation of urban and rural power grids in 2003, the demand for three-phase multi-function meters in the power system increased rapidly. As a result, international and domestic electric meter companies are optimistic about business opportunities, pay close attention to the development of new technologies, and continuously introduce new products of three-phase multi-function meters to meet the application needs of the electric energy meter market. According to incomplete statistics, the State Grid and China Southern Power Grid have a total of 195 million billing electric energy meters. Among them, the two networks directly manage 118 million units for billing, and indirectly manage 77 million units for billing.

这几年国内电子电能表的需求稳中有升,造成市场增长的原因有三:一是电子电能表将逐步替代机械式电能表;二是前几年安装的电子电能表功能简单,目前已经开始更新换代;三是近年来国外电子电能表市场有所扩大,使国内企业出口量增加。In recent years, the domestic demand for electronic energy meters has risen steadily. There are three reasons for the market growth: first, electronic energy meters will gradually replace mechanical energy meters; The third is that the foreign electronic energy meter market has expanded in recent years, which has increased the export volume of domestic enterprises.

业内人士分析,电子电表将成为未来电表市场的主角。有资料表明,目前全球至少已经安装了10亿块电表(电子电表和机械电表总和)。未来10年,中国电表市场可能占全球电表市场的40%,而且这个比例还在不断攀升。Industry insiders analyzed that electronic meters will become the leading role in the future meter market. Some data show that at least 1 billion electric meters (the sum of electronic electric meters and mechanical electric meters) have been installed in the world. In the next 10 years, China's electricity meter market may account for 40% of the global electricity meter market, and this proportion is still rising.

在中国的电能表市场上,电子式电能表约占30~40%,其中单相电子式电能表的年需求量稳定为2000万只左右,三相电子式电能表已增长到600万只以上。电子式电能表具有精度高、功能强、寿命长等优点,剩余60~70%的传统机械表正逐渐被电子式电能表所替代。In China's electric energy meter market, electronic electric energy meters account for about 30-40%. Among them, the annual demand for single-phase electronic electric energy meters is stable at about 20 million, and the annual demand for three-phase electronic electric energy meters has increased to more than 6 million. . Electronic energy meters have the advantages of high precision, strong functions, and long life. The remaining 60-70% of traditional mechanical meters are gradually being replaced by electronic energy meters.

目前在国内,单、三相电能表的设计规范还不是很严格。各个电能表制造厂家在对三相电能表的功能设计上都没有明确的标准,基本上是按照客户提出的要求,选择市场上已有的CPU、电能计量芯片及外围硬件模块进行具体的设计。这样,每次不同功能要求的设计项目都需要对原有的软硬件设计方案做出相应的调整。其中,对硬件设计方案的改变可能会对产品安全可靠性造成很大的影响,同时也会给设计制造厂家带来更多的投资及不便。At present, in China, the design specifications for single-phase and three-phase electric energy meters are not very strict. Various electric energy meter manufacturers have no clear standards for the functional design of three-phase electric energy meters, basically according to the requirements of customers, select the existing CPU, electric energy metering chip and peripheral hardware modules on the market for specific design. In this way, each design project with different functional requirements needs to make corresponding adjustments to the original software and hardware design scheme. Among them, changes to the hardware design scheme may have a great impact on the safety and reliability of the product, and at the same time bring more investment and inconvenience to the design and manufacturer.

如果能够将电能表所需的全部核心电路(例如微处理器,电能计量芯片、各种控制器与通信接口等)放在同一芯片上,就可以大幅缩小整个系统所占的面积,同时还会减少外围驱动接口单元及电路板间的信号传递,加快微处理器数据处理的速度,内嵌的线路还可以避免外部电路板上信号传递所造成的系统干扰。If all the core circuits required by the energy meter (such as microprocessors, energy metering chips, various controllers and communication interfaces, etc.) can be placed on the same chip, the area occupied by the entire system can be greatly reduced. Reduce the signal transmission between the peripheral drive interface unit and the circuit board, speed up the data processing speed of the microprocessor, and the embedded circuit can also avoid the system interference caused by the signal transmission on the external circuit board.

(三)实用新型内容: (3) Contents of utility model:

本实用新型的目的在于提供一种基于NIOS II微处理器的三相电能表。该电能表将所需的全部核心电路(微处理器,电能计量芯片、各种控制器与通信接口等)放在同一芯片上,从而可以大幅缩小整个系统所占的面积,电能表的体积小,可靠性高。设计者可以根据用户需求对其硬件结构、功能特点、资源占用等进行灵活构建,从而在相当短的周期内用很低的成本就可以开发出目标产品,而不是被动地跟随和使用市场上已有的MCU进行“僵硬的硬件连结和拼装”。The purpose of this utility model is to provide a kind of three-phase electric energy meter based on NIOS II microprocessor. The energy meter puts all the required core circuits (microprocessor, energy metering chip, various controllers and communication interfaces, etc.) on the same chip, so that the area occupied by the entire system can be greatly reduced, and the energy meter is small. , high reliability. Designers can flexibly construct its hardware structure, functional characteristics, resource occupation, etc. according to user needs, so that the target product can be developed in a relatively short period of time at a very low cost, instead of passively following and using existing products in the market. Some MCUs carry out "rigid hardware connection and assembly".

本实用新型一种基于NIOS II微处理器的三相电能表,该电能表采用Altera公司的推出的NIOS II软核微处理器做为CPU,采用三相电能计量片上可编程系统(即SOPC,System On Programmable Chip)芯片作为计量单元,外配相应的外围电路。The utility model is a three-phase electric energy meter based on the NIOS II microprocessor. The electric energy meter adopts the NIOS II soft-core microprocessor released by Altera Company as the CPU, and adopts a three-phase electric energy measurement on-chip programmable system (SOPC, System On Programmable Chip) chip is used as a metering unit, and the corresponding peripheral circuits are externally equipped.

该三相电能表具体包括传感器、信号调理、信号采集、电能计量SOPC芯片、锁相倍频、LCD显示/键盘、通用异步收发器、IIC存储器和日历时钟等模块。The three-phase electric energy meter specifically includes modules such as sensors, signal conditioning, signal acquisition, electric energy metering SOPC chips, phase-locked frequency multiplication, LCD display/keyboard, universal asynchronous transceiver, IIC memory, and calendar clock.

传感器,输出端与信号调理模块连接,将电力线上的三相电压和三相电流转为小信号送给信号调理模块。三相电压是通过电阻分压网络降为小信号的,三相电流信号是通过电流互感器转为小信号的。The output end of the sensor is connected to the signal conditioning module, and the three-phase voltage and three-phase current on the power line are converted into small signals and sent to the signal conditioning module. The three-phase voltage is reduced to a small signal through a resistor divider network, and the three-phase current signal is converted to a small signal through a current transformer.

信号调理模块,输入端与传感器输出端连接,该信号调理模块具体包含:抗混叠低通滤波器、参考电压电平和A/D转换模块;传感器送来的小电压信号经过抗混叠低通滤波器滤波后偏置到A/D转换模块的参考电压电平上,供A/D转换模块电流。Signal conditioning module, the input terminal is connected to the output terminal of the sensor. The signal conditioning module specifically includes: anti-aliasing low-pass filter, reference voltage level and A/D conversion module; the small voltage signal sent by the sensor is passed through the anti-aliasing low-pass After the filter is filtered, it is biased to the reference voltage level of the A/D conversion module to supply current to the A/D conversion module.

信号采集模块,输入端与信号调理模块输出端相连,把信号调理模块送来的电压信号转为数字信号后送给电能计量SOPC芯片。The input terminal of the signal acquisition module is connected to the output terminal of the signal conditioning module, and the voltage signal sent by the signal conditioning module is converted into a digital signal and then sent to the electric energy metering SOPC chip.

电能计量SOPC芯片,与信号采集模块连接,是整个电能表系统的核心,主要包含两大部分:电能计量和NIOS II软核微处理器;电能计量部分完成电压电流有效值计算,有功/无功/视在功率计算,有功/无功/视电能计量等,部分功能由硬件实现;NIOS II软核微处理器完成整个电能表的调度工作,如实现费率时段切换,响应串口命令,冻结历史电量数据,LCD显示刷新,故障记录报警等功能。该电能计量SOPC芯片作为一项单独的实用新型另案申请。The energy metering SOPC chip, connected with the signal acquisition module, is the core of the entire electric energy meter system. It mainly includes two parts: electric energy metering and NIOS II soft-core microprocessor; the electric energy metering part completes the calculation of voltage and current effective value, active/reactive power /Apparent power calculation, active/reactive power/apparent energy measurement, etc., some functions are realized by hardware; NIOS II soft-core microprocessor completes the scheduling work of the entire electric energy meter, such as realizing the switching of tariff periods, responding to serial port commands, and freezing history Power data, LCD display refresh, fault record alarm and other functions. The electric energy metering SOPC chip is applied for as a separate utility model.

锁相倍频,与信号调理模块和信号采集模块相连,用于控制A/D转换模块的采样频率。由于该三相电能表具有谐波分析功能,考虑到谐波分析时要作FFT变换(即快速傅立叶变换),为了使频谱不泄漏要确保同步采样;当电网电压频率波动时需要对电网每个周波的采样点数一致,从而设计了锁相倍频电路以控制A/D采样。The phase-locked frequency multiplier is connected with the signal conditioning module and the signal acquisition module, and is used to control the sampling frequency of the A/D conversion module. Since the three-phase watt-hour meter has the function of harmonic analysis, FFT transformation (that is, fast Fourier transform) is required for harmonic analysis, and synchronous sampling must be ensured in order to prevent the spectrum from leaking; when the grid voltage frequency fluctuates, each The number of sampling points of the cycle is consistent, so a phase-locked frequency multiplication circuit is designed to control A/D sampling.

通用异步收发器,即UART(Universal Asynchronous Receiver Transmitter),采用RS-232接口方式实现电能表与上位机或抄表系统的通信。Universal Asynchronous Receiver Transmitter, UART (Universal Asynchronous Receiver Transmitter), uses RS-232 interface to realize the communication between the energy meter and the host computer or meter reading system.

LCD显示/键盘模块,连接电能计量SOPC芯片,是整个电能表系统人机交互的界面,LCD显示模块显示当前三相电压有效值,三相电流有效值,有功电能,无功电能,视在电能,上月历史电量数据等;通过键盘可以设置电表的数据,加快LCD刷新频率等,同时也可以方便系统调试。LCD display/keyboard module, connected to the energy metering SOPC chip, is the human-computer interaction interface of the entire energy meter system. The LCD display module displays the current effective value of three-phase voltage, effective value of three-phase current, active energy, reactive energy, and apparent energy , the historical power data of the last month, etc.; through the keyboard, you can set the data of the meter, speed up the LCD refresh frequency, etc., and it is also convenient for system debugging.

日历时钟模块,与电能计量SOPC芯片连接,选用美国达拉斯公司的涓流充电时间芯片DS1302,主要用来产生一个包括年、月、日、时、分、秒的时钟。The calendar clock module is connected with the electric energy metering SOPC chip, and the trickle charging time chip DS1302 from Dallas Company of the United States is selected, which is mainly used to generate a clock including year, month, day, hour, minute and second.

IIC存储器,与电能计量SOPC芯片连接,选用的是美国ATMEL公司的二线串行电擦写可编程只读存储器存储器AT24C256,用来存储程序信息。The IIC memory is connected with the electric energy metering SOPC chip, and the two-wire serial EEPROM memory AT24C256 of ATMEL Company of the United States is selected to store program information.

本实用新型一种基于NIOS II微处理器的三相电能表,其优点及功效在于:该电能表采用Altera公司的推出的NIOS II软核微处理器做为CPU,采用三相电能计量SOPC(System On Programmable Chip)芯片作为计量单元,外配相应的外围电路。使用者可以根据需要对三相电能计量芯片的硬件结构、功能特点、资源占用等进行灵活构建与编程,从而在相当短的周期内用很低的成本就可以开发出目标产品。由于三相电能计量芯片集成了三相电能表所需的全部核心电路(微处理器,计量芯片、各种控制器与通信接口等),可以大幅缩小三相电能表的体积,同时还会减少外围驱动接口单元及电路板间的信号传递,加快微处理器数据处理的速度,内嵌的线路还可以避免外部电路板上信号传递所造成的系统干扰;电能表体积小、集成度高,可靠性强,具有可重构性。The utility model is a three-phase electric energy meter based on the NIOS II microprocessor. Its advantages and effects are: the electric energy meter adopts the NIOS II soft-core microprocessor released by Altera Company as the CPU, and adopts the three-phase electric energy measurement SOPC ( System On Programmable Chip) chip is used as a metering unit, and the corresponding peripheral circuits are externally equipped. Users can flexibly construct and program the hardware structure, functional characteristics, resource occupation, etc. of the three-phase electric energy metering chip according to their needs, so that the target product can be developed at a very low cost in a relatively short period. Since the three-phase electric energy metering chip integrates all the core circuits (microprocessor, metering chip, various controllers and communication interfaces, etc.) required by the three-phase electric energy meter, it can greatly reduce the volume of the three-phase electric energy meter The signal transmission between the peripheral drive interface unit and the circuit board speeds up the data processing speed of the microprocessor, and the embedded circuit can also avoid the system interference caused by the signal transmission on the external circuit board; the electric energy meter is small in size, highly integrated and reliable Strong and reconfigurable.

(四)附图说明: (4) Description of drawings:

图1所示为三相电能表设计总体框图。Figure 1 shows the overall block diagram of the three-phase electric energy meter design.

图2所示为电能计量SOPC芯片内部框图。Figure 2 shows the internal block diagram of the energy metering SOPC chip.

(五)具体实施方式: (5) Specific implementation methods:

下面结合附图和实施例,对本实用新型的技术方案做进一步阐述。Below in conjunction with accompanying drawing and embodiment, the technical solution of the present utility model is described further.

本实用新型一种基于NIOS II微处理器的三相电能表,提出了一个完整的三相电能计量的设计方案。该设计方案同样可以应用到单相电能表SOPC芯片设计中,只是需要修改相应的计量算法和调整系统软件中相应的模块就可以了。The utility model is a three-phase electric energy meter based on the NIOS II microprocessor, and proposes a complete design scheme for three-phase electric energy measurement. This design scheme can also be applied to the SOPC chip design of the single-phase electric energy meter, only need to modify the corresponding measurement algorithm and adjust the corresponding modules in the system software.

1.本实用新型采用NIOS II软核微处理器的原因1. The utility model adopts the reason of NIOS II soft-core microprocessor

Altera公司的推出的NIOS II软核微处理器主要特性包括:高效灵活的处理器模块,可以通过软件配置成16位或32位的中央处理单元(RISC,即RelegateImportant Stuff to the Compiler结构),并可选择不同的内部存储器大小,其最高执行速度可达50MHz;具有多种其它功能模块的选择(同步动态随机存储器、UART、PCI接口模块、LCD接口模块、MAC接口模块等多种功能模块)。The main features of the NIOS II soft-core microprocessor launched by Altera include: an efficient and flexible processor module, which can be configured as a 16-bit or 32-bit central processing unit (RISC, Relegate Important Stuff to the Compiler structure) by software, and Different internal memory sizes can be selected, and its maximum execution speed can reach 50MHz; it has a variety of other functional modules to choose from (synchronous dynamic random access memory, UART, PCI interface module, LCD interface module, MAC interface module and other functional modules).

目前,基于FPGA(Field Programmable Gate Array)设计片上系统即SOC(System On Chip),有两种方案:基于FPGA嵌入IP硬核以及基于FPGA嵌入IP软核。IP硬核(例如ARM核,Power PC核,以及单片机核),IP软核(Altera公司的NIOSII软核以及Xilinx公司的MicroBlaze软核)。At present, based on FPGA (Field Programmable Gate Array) design system on chip (SOC (System On Chip), there are two schemes: FPGA-based embedding IP hard core and FPGA-based embedding IP soft core. IP hard core (such as ARM core, Power PC core, and microcontroller core), IP soft core (Altera's NIOSII soft core and Xilinx's MicroBlaze soft core).

●IP软核相对于IP硬核植入FPGA的优越性:The advantages of IP soft core implanted in FPGA compared to IP hard core:

(1)硬核一般来自第3方公司,FPGA厂商通常无法直接控制其知识产权费用,从而导致FPGA器件价格相对偏高。软核是FPGA厂商推出的非第3方产品,通常用户无需支付知识产权费用。(1) Hard cores generally come from third-party companies, and FPGA manufacturers usually cannot directly control their intellectual property costs, resulting in relatively high prices for FPGA devices. Soft cores are non-third-party products launched by FPGA manufacturers, and users generally do not need to pay for intellectual property rights.

(2)硬核是预先植入的,设计者无法根据实际需要改变处理器的结构。软核则是用户可随意配置和构建的嵌入式系统微处理器IP核。(2) The hard core is pre-implanted, and the designer cannot change the structure of the processor according to actual needs. The soft core is an embedded system microprocessor IP core that users can configure and build at will.

(3)硬核无法裁减处理器硬件资源以降低FPGA成本。而软核则可以随意裁减。(3) The hard core cannot reduce processor hardware resources to reduce FPGA cost. The soft core can be cut at will.

●NIOSII软核与MicroBlaze软核的对比:●Comparison between NIOSII soft core and MicroBlaze soft core:

(1)NIOSII可植入的FPGA系列几乎没有限制。(1) There are almost no restrictions on the implantable FPGA series of NIOSII.

(2)在开发工具的完备性、对常用的嵌入式操作系统支持方面,NIOSII都优于MicroBlaze。(2) NIOSII is superior to MicroBlaze in terms of completeness of development tools and support for commonly used embedded operating systems.

(3)就成本而言,NIOSII是Altera推出的非第3方产品,故用户通常无需支付知识产权费用。NIOSII的使用费用仅仅是其占用的FPGA逻辑资源。(3) In terms of cost, NIOSII is a non-third-party product launched by Altera, so users usually do not need to pay for intellectual property rights. The cost of using NIOSII is only the FPGA logic resources it occupies.

2.电能计量SOPC芯片设计方案2. Design scheme of SOPC chip for electric energy measurement

如图2所示,该芯片内部包括AD控制器,FIFO(First In First Out,即先进先出数据缓存器),电能计量、配置寄存器、NIOSII软核微处理器、日历时钟接口,DFC(Digital to Frequency Converter,即数字频率变换器),IIC接口,以及LCD控制器等部分。As shown in Figure 2, the chip includes AD controller, FIFO (First In First Out, first-in-first-out data buffer), energy metering, configuration registers, NIOSII soft-core microprocessor, calendar clock interface, DFC (Digital to Frequency Converter, that is, digital frequency converter), IIC interface, and LCD controller and other parts.

其中,AD控制器的输入为信号采集板上采集到的三相电压和三相电流(6个通道的串行数据),AD控制器是按照美国AD公司16位的∑-ΔA/D芯片AD73360的时序,将输入的6个通道的串行数据转换成并行数据并存储在相应的FIFO中;6通道的FIFO保存AD控制器送来的6通道1个周波的AD数据,以便后面的运算使用,这样做还有一个好处就是电能计量模块可以实现流水线结构,加快运算速度;电能计量模块主要是利用FPGA实现电能的有功、无功和视在功率的计量。配置寄存器中保存配置数据、历史电量数据、冻结数据等等;NIOS II软核微处理器完成整个电能计量芯片的调度工作;日历时钟接口与外部的日历时钟芯片相连,为芯片提供时钟信息,供NIOS II软核微处理器使用,从而构成复费率电能表。日历时钟芯片选用美国达拉斯公司的涓流充电时间芯片DS1302;DFC变换就是将计量后的电能值转换成脉冲的个数输出,以便校表;IIC接口控制外部的IIC只读存储器AT24C256,AT24C256是美国ATMEL公司的二线串行电擦写可编程只读存储器存储器;LCD控制器实现外部LCD的驱动功能,LCD选用北京青云的LCM128645ZK。3.三相电能表总体设计Among them, the input of the AD controller is the three-phase voltage and three-phase current (serial data of 6 channels) collected on the signal acquisition board. The AD controller is based on the 16-bit Σ-ΔA/D chip AD73360 of the American AD company The serial data of the input 6 channels is converted into parallel data and stored in the corresponding FIFO; the 6-channel FIFO saves the AD data of 6 channels and 1 cycle sent by the AD controller for subsequent calculations. Another advantage of doing this is that the electric energy metering module can realize the pipeline structure and speed up the calculation speed; the electric energy metering module mainly uses FPGA to realize the metering of active power, reactive power and apparent power of electric energy. Configuration data, historical power data, frozen data, etc. are saved in the configuration register; the NIOS II soft-core microprocessor completes the scheduling work of the entire electric energy metering chip; the calendar clock interface is connected with the external calendar clock chip to provide clock information for the chip. The NIOS II soft-core microprocessor is used to form a multi-rate electric energy meter. The calendar clock chip selects the trickle charging time chip DS1302 from Dallas Company in the United States; DFC conversion is to convert the measured electric energy value into the number of pulses for output, so as to calibrate the meter; the IIC interface controls the external IIC read-only memory AT24C256, AT24C256 is an American ATMEL's two-wire serial EEPROM memory; LCD controller realizes the driving function of the external LCD, and the LCD uses LCM128645ZK from Beijing Qingyun. 3. Overall design of three-phase electric energy meter

3、三相电能表设计总体框图如附图1所示。3. The overall block diagram of the design of the three-phase electric energy meter is shown in Figure 1.

基于NIOS II微处理器的三相电能表,包括传感器、信号调理、信号采集、电能计量SOPC芯片、锁相倍频、LCD显示/键盘、通用异步收发器、IIC存储器和日历时钟等模块。Three-phase energy meter based on NIOS II microprocessor, including sensors, signal conditioning, signal acquisition, energy metering SOPC chip, phase-locked frequency multiplier, LCD display/keyboard, universal asynchronous transceiver, IIC memory and calendar clock and other modules.

传感器输出端与信号调理模块连接,将电力线上的三相电压和三相电流转为小信号送给信号调理模块。三相电压是通过电阻分压网络降为小信号的,三相电流信号是通过电流互感器转为小信号的。The output terminal of the sensor is connected with the signal conditioning module, and the three-phase voltage and three-phase current on the power line are converted into small signals and sent to the signal conditioning module. The three-phase voltage is reduced to a small signal through a resistor divider network, and the three-phase current signal is converted to a small signal through a current transformer.

信号调理模块,输入端与传感器输出端连接,该信号调理模块具体包含:抗混叠低通滤波器、参考电压电平和A/D转换模块;传感器送来的小电压信号经过抗混叠低通滤波器滤波后偏置到A/D转换模块的参考电压电平上,供A/D转换模块电流。Signal conditioning module, the input terminal is connected to the output terminal of the sensor. The signal conditioning module specifically includes: anti-aliasing low-pass filter, reference voltage level and A/D conversion module; the small voltage signal sent by the sensor is passed through the anti-aliasing low-pass After the filter is filtered, it is biased to the reference voltage level of the A/D conversion module to supply current to the A/D conversion module.

信号采集模块,输入端与信号调理模块输出端相连,把信号调理模块送来的6路电压信号转为数字信号后送给电能计量SOPC芯片。The input terminal of the signal acquisition module is connected to the output terminal of the signal conditioning module, and the 6 voltage signals sent by the signal conditioning module are converted into digital signals and then sent to the power metering SOPC chip.

电能计量SOPC芯片,与信号采集模块连接,是整个电能表系统的核心,主要包含两大部分:电能计量和NIOS II软核微处理器;电能计量部分完成电压电流有效值计算,有功/无功/视在功率计算,有功/无功/视电能计量等,部分功能由硬件实现;NIOS II软核微处理器完成整个电能表的调度工作,如实现费率时段切换,响应串口命令,冻结历史电量数据,LCD显示刷新,故障记录报警等功能。该电能计量SOPC芯片作为一项单独的实用新型另案申请。The energy metering SOPC chip, connected with the signal acquisition module, is the core of the entire electric energy meter system. It mainly includes two parts: electric energy metering and NIOS II soft-core microprocessor; the electric energy metering part completes the calculation of voltage and current effective value, active/reactive power /Apparent power calculation, active/reactive power/apparent energy measurement, etc., some functions are realized by hardware; NIOS II soft-core microprocessor completes the scheduling work of the entire electric energy meter, such as realizing the switching of tariff periods, responding to serial port commands, and freezing history Power data, LCD display refresh, fault record alarm and other functions. The electric energy metering SOPC chip is applied for as a separate utility model.

锁相倍频,与信号调理模块和信号采集模块相连,用于控制A/D转换模块的采样频率。由于该三相电能表具有谐波分析功能,考虑到谐波分析时要作FFT变换(即快速傅立叶变换),为了使频谱不泄漏要确保同步采样;当电网电压频率波动时需要对电网每个周波的采样点数一致,从而设计了锁相倍频电路以控制A/D采样。The phase-locked frequency multiplier is connected with the signal conditioning module and the signal acquisition module, and is used to control the sampling frequency of the A/D conversion module. Since the three-phase watt-hour meter has the function of harmonic analysis, FFT transformation (that is, fast Fourier transform) is required for harmonic analysis, and synchronous sampling must be ensured in order to prevent the spectrum from leaking; when the grid voltage frequency fluctuates, each The number of sampling points of the cycle is consistent, so a phase-locked frequency multiplication circuit is designed to control A/D sampling.

通用异步收发器,即UART(Universal Asynchronous Receiver Transmitter),采用RS-232接口方式实现电能表与上位机或抄表系统的通信。Universal Asynchronous Receiver Transmitter, UART (Universal Asynchronous Receiver Transmitter), uses RS-232 interface to realize the communication between the energy meter and the host computer or meter reading system.

LCD显示/键盘模块,连接电能计量SOPC芯片,是整个电能表系统人机交互的界面,LCD显示模块显示当前三相电压有效值,三相电流有效值,有功电能,无功电能,视在电能,上月历史电量数据等;通过键盘可以设置电表的数据,加快LCD刷新频率等,同时也可以方便系统调试。LCD display/keyboard module, connected to the energy metering SOPC chip, is the human-computer interaction interface of the entire energy meter system. The LCD display module displays the current effective value of three-phase voltage, effective value of three-phase current, active energy, reactive energy, and apparent energy , the historical power data of the last month, etc.; through the keyboard, you can set the data of the meter, speed up the LCD refresh frequency, etc., and it is also convenient for system debugging.

日历时钟模块,与电能计量SOPC芯片连接,选用美国达拉斯公司的涓流充电时间芯片DS1302,主要用来产生一个包括年、月、日、时、分、秒的时钟。The calendar clock module is connected with the electric energy metering SOPC chip, and the trickle charging time chip DS1302 from Dallas Company of the United States is selected, which is mainly used to generate a clock including year, month, day, hour, minute and second.

IIC存储器,与电能计量SOPC芯片连接,选用的是美国ATMEL公司的二线串行电擦写可编程只读存储器存储器AT24C256,用来存储程序信息。The IIC memory is connected with the electric energy metering SOPC chip, and the two-wire serial EEPROM memory AT24C256 of ATMEL Company of the United States is selected to store program information.

Claims (2)

1, a kind of three-phase electric energy meter based on NIOS II microprocessor is characterized in that: this three-phase electric energy meter specifically comprises programmable chip system, phase locking frequency multiplying, LCD demonstration/keyboard, UART Universal Asynchronous Receiver Transmitter, IIC storer and calendar clock module on sensor, signal condition, signals collecting, the electric energy metrical sheet;
Sensor, output terminal is connected with the signal condition module, transfers the three-phase voltage on the line of electric force and three-phase current to small-signal and gives the signal condition module;
The signal condition module, input end is connected with the sensor output terminal, and this signal condition module specifically comprises: anti-aliasing low-pass filter, reference voltage level and A/D modular converter;
Signal acquisition module, input end links to each other with signal condition module output terminal, gives electric energy metrical SOPC chip after the voltage signal that the signal condition module is sent here transfers digital signal to;
Electric energy metrical SOPC chip is connected with signal acquisition module, is the core of whole electric energy system, mainly comprises the two large divisions: the soft nuclear microprocessor of electric energy metrical and NIOS II;
Phase-locked letter links to each other with signal acquisition module with the signal condition module frequently, is used to control the sample frequency of A/D modular converter.
UART Universal Asynchronous Receiver Transmitter adopts the RS-232 interface mode to realize communicating by letter of electric energy meter and host computer or kilowatt meter reading-out system.
LCD demonstration/Keysheet module connects electric energy metrical SOPC chip, is the interface of whole electric energy system man-machine interaction;
The calendar clock module is connected with electric energy metrical SOPC chip, selects the trickle charge time chip DS1302 of dallas, u.s.a company for use;
The IIC storer is connected with electric energy metrical SOPC chip, and that select for use is the two-wire serial eeprom storer AT24C256 of American ATMEL.
2, the three-phase electric energy meter based on NIOS II microprocessor according to claim 1, it is characterized in that: the small voltage signal that described signal condition module is sent sensor here is biased on the reference voltage level of A/D modular converter through after the anti-aliasing low-pass filter filtering, for A/D modular converter electric current.
CNU2008200795899U 2008-03-26 2008-03-26 Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor Expired - Fee Related CN201173949Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008200795899U CN201173949Y (en) 2008-03-26 2008-03-26 Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008200795899U CN201173949Y (en) 2008-03-26 2008-03-26 Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor

Publications (1)

Publication Number Publication Date
CN201173949Y true CN201173949Y (en) 2008-12-31

Family

ID=40201077

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008200795899U Expired - Fee Related CN201173949Y (en) 2008-03-26 2008-03-26 Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor

Country Status (1)

Country Link
CN (1) CN201173949Y (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680838A (en) * 2012-05-31 2012-09-19 重庆大学 Electric energy quality monitoring and distinguishing method and electric energy quality monitoring and distinguishing system based on dual-tree complex wavelet transform
WO2018014750A1 (en) * 2016-07-21 2018-01-25 中国恩菲工程技术有限公司 Low-voltage power distribution system and multi-function instrument for the low-voltage power distribution system
CN112362960A (en) * 2021-01-14 2021-02-12 武汉海奥电气有限公司 High-speed high-precision large-dynamic-range electrical parameter measuring system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680838A (en) * 2012-05-31 2012-09-19 重庆大学 Electric energy quality monitoring and distinguishing method and electric energy quality monitoring and distinguishing system based on dual-tree complex wavelet transform
CN102680838B (en) * 2012-05-31 2014-08-13 重庆大学 Electric energy quality monitoring and distinguishing method and electric energy quality monitoring and distinguishing system based on dual-tree complex wavelet transform
WO2018014750A1 (en) * 2016-07-21 2018-01-25 中国恩菲工程技术有限公司 Low-voltage power distribution system and multi-function instrument for the low-voltage power distribution system
CN112362960A (en) * 2021-01-14 2021-02-12 武汉海奥电气有限公司 High-speed high-precision large-dynamic-range electrical parameter measuring system and method

Similar Documents

Publication Publication Date Title
CN101256210A (en) Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor
CN101231320B (en) Detection device of low-voltage centralized reading system based on virtual electric energy meter module
CN101876693B (en) Electric energy metering chip-based terminal calibration system
CN201327515Y (en) Distributed electrical energy quality online monitoring instrument based on dual-CPU
CN201352235Y (en) Three-phase multifunctional electric energy meter
CN101419251A (en) Three phase electric energy meter based on C8051F310SOC single-chip
CN102435838A (en) A basic power type energy efficiency data acquisition terminal
CN107202919B (en) Intelligent electric energy meter with communication interface
CN201173949Y (en) Three-phase Electric Energy Meter Based on NIOSⅡ Microprocessor
CN102436733A (en) A thermal power type energy efficiency data acquisition terminal
CN205228803U (en) Isolator state test device
CN203786168U (en) Three-phase high-precision multifunctional electric energy meter
CN103675441A (en) Watt hour meter for DC600V train power supply device
CN206096259U (en) Two -way electric energy metering device of wind generating set and wind generating set
CN102928805B (en) Multi-epitope digitalized electrical energy meter tester
CN101256209A (en) Three-phase Electric Energy Metering Chip Based on NIOSⅡ Microprocessor
CN201828608U (en) Three-phase intelligent electric energy meter
CN205160205U (en) Terminal is optimized in distribution transformer operating mode monitoring and power consumption monitoring
CN105699932B (en) High-precision intelligent substation digital electric energy meter calibration device
CN200996971Y (en) Composite electric-energy managing system of load control and multiplexing time-sharing charging
CN100535951C (en) Loading control and multi-channel time-shared charge electric energy combined management system and its implementing method
CN102506932A (en) Thermodynamic type energy-efficiency data acquisition terminal
CN202304874U (en) Thermotechnical type energy efficiency data acquisition terminal
CN202330695U (en) Electric energy meter calibrating device capable of conducting dual-track error calculation
CN202305789U (en) Sampling system of electric energy meter calibrating device for performing dual-track system error calculation

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081231

Termination date: 20110326