introduction
In various electronic circuit experiments, power supply is an indispensable instrument. At present, most of the power supplies used in experiments have only fixed voltage output (for example, commonly used ones are: ±5V, ±12V or ±15V). The disadvantage is that the output voltage cannot be changed artificially, and the output accuracy and stability are not high: in measurement, traditional power supplies generally use pointer or digital to display voltage or current, and use potentiometers to adjust the desired voltage and current output values. If you want to adjust the precise voltage output, you must use a precise display instrument for monitoring: because the resistance characteristics of the potentiometer are nonlinear, it takes a certain amount of time to adjust, and it will cause drift, so you have to make do with what you have.
With the rapid development of science and technology, the requirements for power supply reliability, output accuracy and stability are getting higher and higher. The design of programmable power supply using the high resolution of D/A converter and the automatic detection technology of single-chip microcomputer shows its superiority. The programmable power supply can not only conveniently input and select the preset voltage value, but also has high accuracy and stability. It can also realize programmable monitoring of the power supply, such as simulating voltage drop, interruption or fluctuation. The programmable power supply can also be regarded as a power-type low-frequency signal generator. The programmable power supply can set the output voltage or current arbitrarily. All functions are realized by the keyboard on the panel or the upper microcomputer connected through the RS-232C serial port, which brings great convenience to circuit experiments and improves work efficiency.
How it works
This power supply is based on a conventional voltage-stabilized power supply.
The power supply uses a high-performance single-chip microcomputer and a digital-to-analog converter as the control circuit. Under the support of control and detection software, the preset value is sent to the corresponding D/A converter through the output port of the single-chip microcomputer to convert it into a corresponding given analog voltage to replace the comparison reference voltage in the conventional regulated power supply, so that the output voltage or current changes with the change of the reference voltage. The principle is shown in Figure 1. Users can set the output value of the regulated power supply through the keyboard as needed.
Figure 1 Block diagram of programmable power supply
System hardware configuration
The whole block diagram of the program-controlled power supply is shown in Figure 2. It mainly consists of seven parts: keyboard, LCD display, single-chip microcomputer system, D/A conversion circuit, alarm circuit, detection circuit and DC voltage stabilization circuit. RS232 interface can be expanded as needed.
Single chip microcomputer system
The single-chip microcomputer system is the core of the program-controlled power supply. It controls the operation of the entire instrument through the operation of the software, thereby completing the set functions. The single-chip microcomputer system uses AT89C52 as the CPU. It is a low-voltage, high-performance 8-bit CMOS single-chip microcomputer produced by ATMEL of the United States. The chip contains 8K bytes of FLASH or PEROM and 256 bytes of RAM. The device is produced using ATMEL's high-density, non-volatile storage technology and is compatible with the standard MCS-51 instruction system and 8052 product pins. AT89C52 receives the external interrupt signal of the detection circuit, and also receives information from the keyboard, and processes the input information to determine the original working state of the instrument and the size of the output voltage. In addition, AT89C52 can automatically adjust the fan speed according to the working temperature, and if overheating occurs, it can also drive the alarm circuit to work.
Figure 2 System Block Diagram
D/A conversion circuit
The D/A converter uses the MAX508, which is a 12-bit voltage output type with built-in double-buffered input latch and Zener reference power supply. The double-buffered latch is used to interface with the microprocessor. The data input allows the lower 8 bits and the upper 4 bits to be segmented right-shifted. The on-chip range resistor provided by the MAX508 can be connected to generate bipolar output voltage ranges of ±5V or unipolar output voltage ranges of 0-5V and 0-10V. This power supply uses a 0-10V unipolar output mode, as shown in Figure 3. At this time, ROFS is connected to AGND, RFB is connected to VOUT, and direct binary coding is used.
Figure 3D/A power supply connection schematic
Smart fan
If the temperature of the system is too high during operation, the chip will burn out, so the system must have a heat dissipation device. This power supply system uses a heat sink and an intelligent fan. The intelligent fan is mainly controlled by the MAX6660, which is a remote junction temperature sensor and fan speed regulator, providing a complete fan control solution . The remote temperature sensor usually uses a cheap and easy-to-install 2N3904NPN or 2N3906 PNP. The device also includes a closed-loop fan controller to adjust the fan speed based on the tachometer feedback. The MAX6660 compares the temperature fan threshold temperature and the gain setting, both of which can be programmed by the user through the SMBus. The result is automatic fan control proportional to the remote junction temperature. The temperature feedback loop can be disconnected at any time so that the fan speed can be controlled by the system. The fan speed is controlled by voltage, which is quieter and more reliable than PWM control.
Protection Circuit
In order to make the program-controlled power supply work reliably and safely, this system is equipped with multiple monitoring and protection systems, mainly including soft start circuit, over-temperature protection, over-voltage protection, and over-current protection. The over-temperature protection is controlled by interruption. This system uses MAX6660 to detect the working temperature of the chip in the circuit. If the temperature exceeds the given value, the temperature sensor conditioner will give the microcontroller an interrupt signal, and the microcontroller will start the sound and light alarm, and cut off the voltage output after a certain period of time.
Keyboard and Display
The keyboard and display part of the program-controlled power supply are installed on the operation panel of the instrument, which consists of 16 keys and a liquid crystal display module LCM. The LCM module uses a graphic dot matrix liquid crystal display module SMG240128A produced by a certain electronics company, which has a built-in T6963C and compatible controller. It can display the voltage value of the power supply output, display storage data and working status, and can also display alarms.
Software Design
The structure of the system application can be divided into a main program and several subprograms. The main program flow chart is shown in Figure 4.
Main Program
1) Initialization program: During the initialization process, first reset each port of 8052 and clear each register and buffer in the RAM area. After the program runs normally, it will no longer enter the initialization program. It will only enter the program when the instrument is started or reset. After the initialization is completed, open the external interrupt.
2) Function processing program: When these keys are pressed, they are judged and transferred to their respective processing programs. These programs are similar, and their main functions are to display their respective characters and set their respective flags.
3) RUN key processing procedure: When the function key is pressed, a number is entered, and then the RUN key is pressed, a voltage output equal to the entered value can be obtained.
4)CLR key handler: The main function of the clear key (CLR) is to clear different workspaces according to the current status. When the program enters the error handling subroutine, the instrument can only resume normal operation after pressing CLR.
Figure 4 Main program flowchart
Subroutines
The subroutines include: keyboard reading subroutine, interrupt subroutine, display subroutine, error handling subroutine, calculation subroutine, storage and reading subroutine, etc.
in conclusion
The DC regulated power supply controlled by single chip microcomputer and digital-to-analog converter has completely changed the design of traditional DC regulated power supply, which is novel, original and advanced. It can not only be used as a conventional scientific research power supply, but also can make the regulated power supply produce a continuously changing output voltage through software programming, which has a high cost performance.
Previous article:Synchronous Rectification Technology in High-Performance Power Converter Design
Next article:Step-down DC/DC converter from main power source provides additional auxiliary power
Recommended ReadingLatest update time:2024-11-16 15:53
- Popular Resources
- Popular amplifiers
- Virtualization Technology Practice Guide - High-efficiency and low-cost solutions for small and medium-sized enterprises (Wang Chunhai)
- A Complete Illustrated Guide to Operational Amplifier Applications (Written by Wang Zhenhong)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- 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
- Advanced FPGA Design is a must-read for beginners of FPGA
- LM358 pin diagram, function description and working principle detailed explanation
- IIC protocol based on STM8--Example--Clock module (DS3231) reading
- A Implementation of Serial Interface Based on PCI Bus
- How to quickly design an infrared thermometer? Texas Instruments gives you tips!
- 【McQueen Trial】Blink
- EEWORLD University Hall----Design using TI's series capacitor buck converter
- Effect of Temperature on Performance and Life of Communication Switching Power Supplies
- 10 ways 5G will change our daily lives, the last one is thought-provoking
- Get a more intuitive understanding of 5G. Watch the keynote speech by Rohde & Schwarz and win prizes!