Application of MC68HC11K4 in UPS

Publisher:sky0001Latest update time:2012-05-25 Source: 电源在线网Keywords:68HC11K4  UPS Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

During the operation of UPS, it is very important to accurately grasp the values ​​of input and output voltage, output current and output power (active power and apparent power) to ensure the normal operation of UPS and provide timely protection. The values ​​of input voltage and output voltage are one of the important parameters for UPS mains and inverter conversion and STS conversion; the value of output current is one of the important parameters for UPS to judge overload amplitude and short circuit, which is crucial for protecting power devices; the value of output power (active power and apparent power) is an important parameter for UPS to determine load type, output power factor and load degree. The following introduces how MC68HC11K4 calculates the values ​​of voltage, current and power in UPS, as well as the flowchart and annotations of related programs.

2 Basic calculation methods

MC68HC11K4 calculates the input voltage, output voltage, output current and output power (active power and apparent power) through the interrupt subroutine CALRMS_PRC. It uses Time Output Compare2 to select the next interrupt according to the inverter count, and calls CALRMS_PRC to calculate the relevant values. The basic method is as follows:

(1) The input voltage, output voltage, and current are read from the A/D buffer, squared, and then divided by the number of A/Ds and stored in the corresponding TEMP0.

(2) The active power W is also read from the A/D buffer. The current and voltage are multiplied to determine the positive and negative signs, added up, and then divided by the number of A/Ds and stored in WATTV_TEMP0.

(3) In each cycle, calculate the RMS value of the inverter, take the square root of INVV_TEMP0 and filter it to get INVVOLT. Similarly, calculate LINEVOLT every two cycles and CURVOLT every 32 cycles.

(4) Every 32 cycles, multiply CURVOLT and LINEVOLT or INVVOLT to obtain VOLT_AMP.

(5) Every 32 cycles, multiply WATTV_TEMP0 by 2, take the high byte, filter it, and store it in WATTVOLT.

[page]3 Flowchart and annotations of CALRMS_PRC

The flowchart and annotations of CALRMS_PRC are shown in Figures 1, 2 and 3.

Figure 1 Flowchart and annotations 1

Figure 2 Flowchart and annotation 2

Figure 3 Flowchart and annotation 3

[page]4 Advantages of the calculation method

The advantage of the calculation method is that the UPS CPU calculates the RMS value of the mains voltage every 2 cycles, the RMS value of the inverter voltage every 1 cycle, the RMS value of the inverter current every 32 cycles, and the output power every 32 cycles, so as to timely and accurately understand the input voltage, output voltage, output current and output power of the UPS. It not only ensures the normal operation of the UPS, but also responds quickly to abnormalities, so that the UPS can be transferred to the corresponding working state in time, and safely protect the load and the UPS itself. For example:

(1) Input voltage abnormality protection: The CPU can detect instantaneous power failures and calculate the A/D value of the mains power read in the most recent cycle every 4ms. If it is less than 140V, it is considered a power failure and the UPS immediately switches to battery inverter state.
(2) Output voltage abnormality protection: When the inverter output voltage value is lower than 160V or higher than 280V for 80ms continuously, it is considered an inverter output voltage abnormality and the UPS immediately switches to bypass and alarms.
(3) Output current abnormality protection: When the inverter output current value exceeds 3.6 times the rated value, the current limiting protection circuit immediately shuts down the PWM to protect the power device; only when the output current value is less than 3.6 times the rated value will the PWM work again.
(4) Output power protection: If the UPS detects that the load exceeds 110% before switching from bypass to inverter output, the UPS cannot switch to inverter output, and the CPU controls the buzzer to beep every 0.5s. If the load increases to 110% to 130% after startup, the CPU controls the buzzer to beep every 0.5s, and the UPS switches to bypass after 10s. If the load increases to more than 130% after startup, the UPS will immediately switch to bypass.


5 Conclusion

The calculation method is scientific and reasonable, the program structure is rigorous, and the calculated input voltage, output voltage, output current and output power (active power and apparent power) values ​​have a short cycle and are accurate. It can effectively improve the technical level of UPS. I hope we can learn from it. ■


Keywords:68HC11K4  UPS Reference address:Application of MC68HC11K4 in UPS

Previous article:Enhanced-mode 4th generation CAL diode for high efficiency applications
Next article:Application of Fiber Optic Sensors in Measurement Technology

Recommended ReadingLatest update time:2024-11-16 15:39

High reliability system design based on 32-bit microcontroller MC68HC376
Introduction With the continuous development of industrial technology, the requirements for microcontroller control are becoming higher and higher. Microcontrollers are required to have higher response speed and stronger data processing capabilities. Various high-performance new microcontrollers have been rapidly dev
[Microcontroller]
Design of mobile power supply based on MC32P21 microcontroller
A mobile power bank is a portable charger that integrates power supply and charging functions. It can charge or power standby for mobile phones and other digital devices anytime and anywhere. It usually uses lithium batteries or dry batteries as power storage units. Different from the battery configured inside the pro
[Power Management]
Design of mobile power supply based on MC32P21 microcontroller
Discussion on a kind of UPS leakage protection
0 Introduction   Due to work needs, the power supply system we developed requires both leakage protection and uninterrupted power supply capabilities. Therefore, we use a 3kVA high-frequency online uninterruptible power supply and a 30mA timed leakage protection circuit breaker in each power supply system. During the
[Power Management]
9 suggestions to solve the UPS power selection problem that everyone is generally concerned about
UPS, or uninterruptible power supply, is a constant voltage and frequency uninterruptible power supply with an energy storage device and an inverter as its main component. It is mainly used to provide uninterrupted power supply to a single computer, computer network system or other power electronic equipment. When the
[Power Management]
Design of intelligent sensor system based on MC9S08SH4 and AD7705
In recent years, with the rapid development of sensor technology and information processing technology, higher requirements have been put forward for the measurement accuracy, data transmission distance and information processing ability of sensors in engineering applications. In order to overcome the shortcomings of o
[Industrial Control]
Battery monitoring improves UPS reliability
We have come to rely on electronic devices in many aspects of our work and life. From mobile communications to data centers, a variety of equipment must operate with minimal downtime, making the reliability of power supply a critical issue. Uninterruptible power supplies (UPS) provide backup power during power outag
[Power Management]
Design of speedometer based on stepper motor driver MC33991
    Compared with analog circuit electronic instruments, stepper motor instruments have uniform graduations, good pointer repeatability, fast response speed, small jitter, and fundamentally guaranteed product quality stability and reliability . Therefore, stepper motor automotive instruments are gradually becoming pop
[Microcontroller]
Design of speedometer based on stepper motor driver MC33991
On-screen display device MC141541 and its interface technology
    Abstract: MC141541 is an on-screen display (OSD) chip produced by Motorola. It uses the I2C bus, which has the characteristics of convenient interface and strong versatility, so it can save a lot of system resources. It can be used to display the measured parameters and information prompts of instruments and equi
[Power Management]
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号