Design of program-controlled power supply based on D/A converter

Publisher:SereneHarmonyLatest update time:2014-06-17 Source: 互联网Keywords:Converter Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    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.

Keywords:Converter Reference address:Design of program-controlled power supply based on D/A converter

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

PIC microcontroller A/D conversion process
PIC microcontroller A/D conversion process 1. Set the ADCON1 and TRISx registers to configure the pin operating mode; 2. If a conversion completion interrupt response is required, the relevant interrupt control register needs to be set; 3. Set the ADCON0 register, select the A/D conversion clock, select the analog
[Microcontroller]
Analog-to-digital conversion (A/D) and digital-to-analog conversion (D/A)
The microcontroller is a typical digital system. The digital system can only process the input digital signal, and its output signal is also digital. However, many quantities in industry or life are analog quantities, which can be converted into corresponding analog quantities such as voltage and current through senso
[Microcontroller]
High-precision A/D converter AD7711A and its applications
    Abstract: AD7711A is a high-resolution 24-bit A/D conversion chip based on Δ-Σ technology. After introducing its characteristics and applications, a high-precision rubber vulcanization temperature control system composed of AD7711A, microcontroller and PC is given. , the steady-state error accuracy of the system r
[Analog Electronics]
AVR query mode A/D conversion test program
/*============================================================ File Name :main.c illustrate: 1. Query mode A/D conversion test program =============================================================*/ #include avr/io.h #include util/delay.h #define uchar unsigned char #define uint unsigned int uint AdcConvert(void) {
[Microcontroller]
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号