Abstract: In view of the need for efficient, low-pollution green power design, a highly reliable, easy-to-maintain, fully functional, and compact power monitoring system is very necessary. This paper introduces the design principle of a bus-based measurement and control technology in an intelligent power monitoring system, and provides the hardware circuit and software design of the bus measurement and control interface.
Keywords: power supply; bus-type measurement and control; single-chip microcomputer
How to measure and control power products reliably and conveniently is the core issue of intelligent high-frequency switching power supplies. Power supply measurement and control involves data measurement, control, communication, and human-computer dialogue. The rationality of the measurement and control scheme is the key to the reliability of the power supply system. In view of this, this article focuses on the specific application of a bus-type measurement and control scheme in intelligent high-frequency switching combination power supplies.
Intelligent high-frequency switching combined power supply generally uses dual-circuit mains as AC input through electrical interlocking, and provides lightning protection measures and user AC shunts. The input AC is rectified by the high-frequency switching rectifier module to generate the DC power required by the user (usually 12V, 24V, 48V, 110V, 220V and other voltage levels), and then the output DC is connected to the battery pack and the user DC shunt. This is the basic principle of the intelligent high-frequency switching combined power supply, as shown in Figure 1.
2 Design Principles
The power supply monitoring system needs to accurately measure various analog quantities and switch quantities of the power supply, including: the voltage, current, frequency of the AC unit, the working status of the lightning protection module and the AC branch; the system closing bus voltage, control bus voltage, and the current and working status of each control bus branch of the DC unit; the battery pack voltage and current, single battery voltage, battery temperature, and charging and switch quantity (door and window switches, air conditioning switches, fire alarms, water alarms, smoke alarms, and unattended) of the battery unit; the insulation status of each bus branch of the insulation detection unit; the transient changes in the operating parameters of each rectifier module; and real-time control of the mains switching, step-down silicon stack voltage regulation, battery management (equalizing charge, floating charge, current limiting, steady current, discharge test, battery temperature compensation, feeder resistance compensation), multi-stage battery deep discharge protection, user alarm nodes, etc.; classify and set various operating parameters to respond to various requirements of centralized monitoring of remote users in a timely manner; at the same time, the rationality of the system electrical design, the operability of assembly and commissioning, and the maintainability of engineering services must also be considered. According to the above functional conditions, the following measurement and control scheme is proposed, as shown in Figure 2.
Figure 1 Schematic diagram of intelligent high-frequency switching power supply
Figure 2 Schematic diagram of bus measurement and control principle of power supply monitoring system
The obvious feature of this power monitoring test solution is that AC detection board, DC detection board, battery detection board, insulation detection board, environment detection board and electrical control board are externally mounted on the measurement and control bus BUS. These 6 boards can be selected according to user needs, and in the electrical design of the whole machine, these boards can be arbitrarily arranged according to the needs of designers, overcoming the disadvantage of connecting all signal lines to various interfaces on the back of the monitor, thereby greatly improving the work efficiency of assembly and debugging and engineering service personnel, and at the same time overcoming the weakness that the real-time and reliability of measurement and control are greatly reduced due to data exchange between various detection and control boards and monitors in a communication manner.
3 Hardware Design
3.1 Measurement and control main board
The measurement and control main board is based on PCF80C552, and the INS8250A universal asynchronous receiver and transmitter UART chip is expanded as the communication interface for centralized monitoring or remote monitoring of the power supply system. In Figure 3, PWM0 and PWM1 of PCF80C552 are used as the control signal interface of the internal feedback link of the rectifier module, MAX813 is used as the automatic reset circuit of the microcontroller, ATMEL93C66 is used as the EEPROM to save the system operation parameters, and a 4×4 row-column keyboard interface and a 240×128 dot-matrix LCD display interface are expanded on the 8-bit data bus of the P0 port. In addition, the 8-bit data drive interface composed of D flip-flop SN74HC574, inverter SN74HC04, and Schmitt trigger SN74HC14 is expanded as the 8-bit input control signal (DC0-DC7) of the bus measurement and control interface (pins 9-16 of socket X1). Pins 1, 3, and 5 of the bus measurement and control interface socket X1 are respectively +15V, GND, and -15V of the detection board, and pins 7 and 8 are respectively the digital signal Digital and the analog signal Analog output by the detection board. The switch quantity Digital from each detection board is sent to the P1.0 port of the microcontroller in a time-sharing manner. The 12-bit parallel output high-speed A/D converter MAX120 accurately, quickly, and time-sharingly converts the Analog signal of each detection board into a 12-bit Digital signal and sends it to the P5 (low 8 bits) and P4 ports (high 4 bits) of the 80C552, and the 8-bit input control signal (DC0-DC7) of the bus measurement and control interface can be used to drive and trigger the electrical control board. Therefore, the bus measurement and control interface has the dual functions of the forward channel and the backward channel of the microcontroller, realizing the detection and electrical control of analog signals and digital signals.
3.2 Bus measurement and control interface circuit
As shown in Figure 4, 8 detection and control boards are externally mounted on the measurement and control bus (special users need multiple sets of batteries, so 3 battery detection boards are designed), and the hardware circuits of the control signal (DC0-DC7) and the sampling signal (Analog, Digital) are shared channels of each detection board. This requires the single-chip microcomputer to automatically identify the 8 detection boards. Therefore, the 8-bit control signal (DC0-DC7) must be decoded. The board selection address circuit of the 8 detection boards is composed of the analog conversion switch U5 (SN74HC4051) and the address switch X2. DC5, DC6, and DC7 are respectively sent to the A, B, and C ports of U5, and X0-X7 are selected with 000-111. During debugging, only one of the X2 address switches on each detection board needs to be turned on to play the board selection function (see Table 1). Then, the board selection signal is sent to the NAND gate U8A, U8B, U8C (SN74HC10) unit, and at the same time sent to the OR gate U7A (SN74HC4075) unit through the Schmitt trigger U6B (SN74HC14) unit. If the board selection signal is low level (L), the output signals of U7A, U8A, U8B, U8C are high level (H), and the INH ports of the analog switches U1, U2, U3, and U4 are blocked respectively, and the detection board has no signal output or input; if the board selection signal is high level (H), the outputs of U7A and U8A, U8B, and U8C only depend on DC3 and DC4. When DC4 and DC3 are 00, only U7A outputs a low level to select U1, and U8A, U8B, and U8C output H to lock U2, U3, and U4; when DC4 and DC3 are 01, only U8A outputs L to select U2; when DC4 and DC3 are 10, U8B selects U3; when DC4 and DC3 are 11, U8C selects U4 (see Table 2). DC3 and DC4 pass through a small or-not gate (composed of U7B, U6E, and V4) and a large or-not gate (composed of V1, V2, U6A, and R2) to achieve the selection control of U5. When one of U1 to U4 is selected, it is sent to its A, B, and C ports respectively through DC0, DC1, and DC2, thereby controlling the analog conversion switch to sample the values of the input signals X0 to X7, or to control the output signals X0 to X7 (see Table 3). U1 and U2 collect 16 digital signals DIG1 to DIG16 (such as lightning protection status, AC branch and DC branch switch status, bus insulation status, etc.). The selected digital signals (Digital) are input to P1.0 of CPU (PCF80C552) through pin 7 of bus measurement and control interface in time-sharing manner.
Figure 4 Bus measurement and control interface circuit
Figure 5 Inspection flow chart of DC, AC and environmental detection boards
Figure 6 Inspection flow chart of insulation and battery detection board
Table 1 DC5~DC7 decoding table
DC7 | DC6 | DC5 | U5 | X2(on) | Selected test panels |
---|---|---|---|---|---|
L | L | L | X0 | 1 | comminicate |
L | L | H | X1 | 2 | DC |
L | H | L | X2 | 3 | insulation |
L | H | H | X3 | 4 | electric |
H | L | L | X4 | 5 | environment |
H | L | H | X5 | 6 | Battery 1 |
H | H | L | X6 | 7 | Battery 2 |
H | H | H | X7 | 8 | Battery 3 |
Table 2 DC3, DC4 decoding table
DC4 | DC3 | The 74HC4051 is selected |
---|---|---|
L | L | U1 |
L | H | U2 |
H | L | U3 |
H | H | U4 |
Table 3 DC0~DC2 decoding table
C | B | A | Detection quantity of U1~U4 |
---|---|---|---|
DC2 | DC1 | DC0 | |
L | L | L | X0 |
L | L | H | X1 |
L | H | L | X2 |
L | H | H | X3 |
H | L | L | X4 |
H | L | H | X5 |
H | H | L | X6 |
H | H | H | X7 |
U3 and U4 collect 16 analog signals AN1~AN16 (such as voltage, current, temperature, frequency, etc.). The selected analog signals are input to the AIN port of the 12-bit A/D converter MAX120 through the pin 8 of the bus measurement and control interface in time-sharing. After high-speed and accurate conversion by MAX120, the 12-bit Digital signals output in parallel are sent to the P5 (low 8 bits) and P4 (high 4 bits) ports of the CPU. In short, DC7, DC6, and DC5 can select 8 detection boards, DC4 and DC3 can select 4 analog conversion switches, and DC2, DC1, and DC0 can select 8 signals of each analog conversion switch. According to the multiplication principle, the bus measurement and control interface can detect 8×4×8 or 256 signals through DC0-DC7. Table 4 lists the signal access addresses of the 8 detection boards. In fact, DIG1~DIG16 of the insulation and battery detection boards are analog quantities, and AN1~AN16 of the electrical control board are triggered digital quantities.
Table 4 Detection board signal address
Detection board | Digital quantity (DIG1~DIG16) | Analog (AN1~AN16) |
---|---|---|
comminicate | 00~0F | 10~1F |
DC | 20~2F | 30~3F |
insulation | 40~4F | 50~5F |
electric | 60~6F | 70~7F |
environment | 80~8F | 90~9F |
Battery Pack 1 | A0~AF | B0~BF |
Battery Pack 2 | C0~CF | D0~DF |
Battery Pack 3 | E0~EF | F0~FF |
4. Software Design
Faced with complex measurement data and electrical control, after bus decoding and addressing, the software design has obvious regularity. Due to space limitations, this article lists the process of the inspection subroutine RdAux1 applicable to the DC, AC, and environmental detection board in Figure 4, as shown in Figure 5, and the process of the inspection subroutine RdAux2 applicable to the insulation and battery detection board, as shown in Figure 6. The program of the electrical control board is relatively simple. As long as it is programmed according to the functional conditions and the relay address in Table 4, the corresponding relay can be controlled.
The RdAux1 assembly program listing is as follows:
;Internal RAM register definitions
FLAG EQU 20H; detection board installation flag
ACB BIT 0 ; AC board enable
DCB BIT 1 ; DC board enable
AMIB BIT 4 ;Enable environmental board
;Definition of storage area of external RAM
AUXAD EQU 1000H ; Inspection buffer first address
ACBUF EQU AUXAD; AC board buffer
DCBUF EQU ACBUF+ 48 ; DC board buffer
AMBUF EQU DCBUF+ 48 ;Environmental board buffer
IOBUF EQU EC00; Inspection entry address, used to input the detection quantity address
;======Inspection subroutine======
RdAux1: MOV A,FLAG
JB A.0,AC
JB A.1,DC
JB A.4,AMI
SJMP EndAux
AC: MOV R6, # HIGH (ACBUF); temporarily store the buffer address of the detection board in R6, R7
MOV R7,#LOW(ACBUF)
SJMP RDAX
DC: MOV R6,#HIGH(DCBUF)
MOV R7,#LOW(DCBUF)
SJMP RDAX
AMI: MOV R6,#HIGH(AMBUF)
MOV R7,#LOW(AMBUF)
RDAX:MOV R2,#16; 16-way detection
MOV R4,# 0; R4 stores the starting address of the detection value
Digit: LCALL RdAux0; Patrol 16-channel digital quantity
MOV A,#0
MOV C,P1.0
RLC A
MOV DPH,R6
MOV DPL,R7
MOVX @DPTR,A
INC DPTR
INC R4
DJNZ R2,Digit
MOV R2,#16
Analog:LCALL RdAux0; Patrol 16 analog quantities
LCALL ADCVER ; MAX120 A/D conversion
MOV A,P5
MOVX @DPTR,A ; Save the lower 8 bits of A/D
INC DPTR
MOV A,P4
ANL A,#0FH
MOVX @DPTR,A ; Save A/D high 4 bits
INC DPTR
INC R4
DJNZ R2,Analog
RET
RdAux0:MOV DPTR,#IOBUF; Get the inspection value
MOV A,R4
MOVX @DPTR,A
LCALL DELAY; Delay subroutine
EndAux:RET
5 Conclusion
Bus-type measurement and control technology is the basis for intelligent high-frequency switch combination power supply to achieve high reliability, intelligence and maintainability. It is also one of the intelligent core technologies for efficient, reliable, low-pollution green power supply with few or no personnel on duty. Its notable features are:
1) Meet the requirements of different monitoring solutions for various types of power supplies;
2) The modularization of software and hardware greatly facilitates the development of new products;
3) Enhanced the flexibility of the overall machine layout for electrical designers;
4) Improved the maintenance efficiency of engineering services.
Previous article:UPS operation and simple fault handling
Next article:Field microwave oven based on full-bridge inverter circuit
- Popular Resources
- Popular amplifiers
- ANALOG TO DIGITALCONVERTOR FOR BLOOD-GLUCOSE MONITORING
- A_2.89_uW_Dry-Electrode_Enabled_Clockless_Wireless_ECG_SoC_for_Wearable_Applications
- Switching Power Supply Design Guide (EN)
- New Technologies and Equipment for Communication Power Supply Series High Frequency Switching Power Supply for Communication
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Problems encountered in learning C programming language
- 5G Common Terms and Abbreviations
- I found a very good introductory book on 51 single-chip microcomputers and recommend it to beginners. It is suitable for self-study by novices (Wang Yun)
- Application of Bypass Capacitors in High-Speed Circuit Environment
- Design of software and hardware C delay program for MSP430
- IC layout Seeking talents Seeking talents Seeking talents Seeking talents Coordinates: Shanghai, Shandong, Nanjing
- Optical module SFF-8472 problem solving
- Develop smart devices based on ESP32 to access the smart home ecosystem HomeAssistant
- ST Value Series NUCLEO-G071RB Development Board Introduction
- Domestic MCU