Application of commutation controller based on AT89C51 in periodic commutation power supply

Publisher:pcwgLatest update time:2011-05-14 Keywords:AT89C51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

O Introduction
In many actual production processes, control components with automatic reversing functions are often used. For example, the reciprocating operation (displacement) in mechanical processing, the forward and reverse output of the DC power supply, the forward and reverse operation of the motor, etc., are all repetitive processes in which the forward (or reverse) operation automatically switches to the reverse (or forward) operation when the forward (or reverse) operation reaches a certain time or a certain position. To realize the automation of this process, a set of control circuits must be designed, and then equipped with a displacement sensor or a time relay. Although the existing time relays on the market can be used in multiple combinations to meet the requirements of some use occasions, there are still shortcomings such as large repeated timing errors, low stable and reliable operation, and inconvenient and flexible use. For this reason, we have developed a time/displacement reversing controller SWHX-1 with a single-chip microcomputer as the core component, which has the advantages of low cost, high precision, stable and reliable operation, etc.

1 Circuit composition and working principle
The internal circuit of SWHX-1 is shown in Figure 1, which is divided into three parts: input and output electrical signal conversion, CPU software programming control and timing delay setting. There are 14 lead wires in total, of which pins 2, 3, and 4 are the common terminal VGND of the DC ground wire. The device can work in both AC and DC power supply modes. When powered by AC, 12V AC is input through pins 13 and 14, and after bridge rectification and voltage stabilization, it is supplied to the internal circuit constant voltage reference power supply, and the rectified DC 12V is sent out through pin 1 and VGND for other external circuits; when powered by DC, pins 1 and 2, 3, and 4 are input terminals, and the input 12V DC is supplied to the internal circuit after voltage stabilization. This method can save the AC power supply, but it should be noted that pins 14 and 13 should be placed in a suspended state.

The internal circuit design of SWHX-1 has 1-way commutation delay and 2-way timing output function. The commutation delay time refers to the time after the forward (or reverse) output group is turned off and then the reverse (or forward) group is turned on after a delay of a period of time. The user can set it arbitrarily between 0.5 and 2 seconds. The 2-way timing time refers to the working time of the forward and reverse group outputs, respectively. The user can set it arbitrarily between 60 seconds and 7 hours and 31 minutes. If the timing time of 60 seconds to 7 hours and 31 minutes cannot meet the use requirements, there are 4 ports P1 to P4, which can be connected to 4 time relays or 4 travel switches to compensate. P1 and P3 are the forward group, and P2 and P4 are the reverse group. 1.1 Delay and timing time setting (1) Delay time setting method In Figure 1, t0~t4 are short-circuit switches for setting the commutation delay time. t0 is the common terminal to the ground. t1~t4 correspond to 0.5s, 1s, 1.5s, and 2s respectively. When the two are short-circuited, the corresponding commutation delay is realized through CPU software programming. For example, when t0 and t1 are short-circuited, the delay is 0.5s, and when t0 and t3 are short-circuited, the delay is 1.5s. (2) Timing time setting method In Figure 1, S1 and S2 are two 8-bit timing time setting dial switches. The first three digits of each switch are the hour digits, and the last 5 digits are the minute digits. Binary coding is used. When the 8-bit dial code is selected, it is sent through the P1 and P2 ports of the CPU and controlled by software programming to realize the corresponding timing function. Therefore, the timing time of each channel can be set arbitrarily between 60s and 7h31min.



1.2 Working principle of timing commutator
When SWHX-1 is used as timing commutation control, the CPU first reads the timing setting value of the dial switch S, which is recognized by software programming and implemented through the CPU internal timer and software delay. When the timing time is up, a timing pulse is sent through the P0 port via pin 12 and pin 11. When pin 12 and pin 11 are short-circuited with pin 5 and pin 7 respectively, the timing pulse generates an interrupt request signal to the CPU. When the CPU receives this interrupt request, it outputs a blocking potential signal through the pin VS1 port to stop the current working group. After a delay of 0.5 to 2s, a start signal is output through the pin VS2 port to start the other group to start working, completing a commutation work cycle. Vice versa, repeating over and over again. 1.3 Working principle of displacement commutator When SWHX-1 is used for displacement commutation control, the timing function mentioned above does not work. Instead, the "displacement reached" signal sent by the displacement detection sensor (usually a travel switch) sends an interrupt request to the CPU through pins 5 and 7. When the CPU receives the interrupt request signal, the above commutation process is completed. In addition, pins 6 and 8 are used for displacement limitation. Because the displacement is limited in most actual production processes, the signal sent by the limit sensor is sent through ports 6 and 8. After the CPU receives the request signal, it immediately sends a limit blocking signal through pins 9 and 10 to stop the displacement work.



2 Software Design
The software program of SWHX-1 is divided into three parts: initialization, timing identification and delay processing, and interrupt commutation processing. The program flow is shown in Figure 2.

3 Application in periodic commutation power supply
Periodic commutation power supply devices are used in many production processes. Here, only one of the common electroplating power supplies is used as an example to illustrate its use. Figure 3 shows an example of the circuit schematic diagram of a three-phase double reverse star bidirectional 6-pulse periodic commutation power supply. The power supply uses two sets of thyristor controlled rectifier circuits, but under the control of SWHX-1, only one set can work at the same time, and the other set is blocked and cut off. The working time of the two sets of rectifier circuits is set by S1 and S2 in Figure 1 respectively. The CF97088B in Figure 3 is a double reverse star 6-pulse thyristor trigger dedicated device. In addition to generating 6 synchronous trigger pulses, it also has the current and voltage dual PI negative feedback regulation function inside, and can also automatically identify the phase loss, overvoltage protection, overcurrent limitation and other functions in the input three-phase power. When these phenomena occur, the output of the trigger pulse is automatically blocked to achieve the purpose of protection and limitation. W1 and W3 are the forward and reverse output voltage setting value adjustment knobs respectively; W2 and W4 are the forward and reverse output voltage feedback adjustment knobs.

The advantages of this power circuit are simple and clear structure, easy assembly, debugging and on-site maintenance. Since CF97088 and SWHX-1 are fully sealed devices, they are more suitable for electroplating, electrolysis and chemical industries, with anti-corrosion effect.

4 Conclusion
The future development direction is to realize timing control based on single chip microcomputer to replace the current timer and time relay. The SWHX-1 device introduced in this paper is an attempt, and the application results in the periodic commutation power supply show that the timing is accurate, the operation is reliable, and the effect is good.

Keywords:AT89C51 Reference address:Application of commutation controller based on AT89C51 in periodic commutation power supply

Previous article:Optimization Design of Switching Power Supply Based on 89C51 Single Chip Microcomputer
Next article:Design and implementation of IC card reader based on 89C51

Recommended ReadingLatest update time:2024-11-16 22:45

Intelligent temperature control system based on 51 microcontroller
1. System Overview The modules used in the system include AT89C51 microcontroller + 8-bit common anode digital tube + DS18B20 temperature detection module + button + fan + heating device + photoelectric tube + relay + motor drive module L298N. This design uses a 51 microcontroller as the core control, using a digita
[Microcontroller]
Intelligent temperature control system based on 51 microcontroller
Design of serial bus chip testing experimental platform based on AT89C51 microcontroller
When applying serial interface chips to expand the system, after initially selecting the serial interface chip, in order to better understand the chip's resources, developers usually build a simple hardware circuit and compile corresponding software before system design. Test, and then determine the final design plan
[Microcontroller]
Design of serial bus chip testing experimental platform based on AT89C51 microcontroller
Car reversing radar system based on single chip microcomputer design
0 Introduction  With the continuous growth of China's economy and the continuous decline of car prices, more and more families own private cars. While enjoying the convenience brought by cars, the problems caused by reversing are becoming increasingly prominent. According to preliminary survey statistics, 15% of car
[Microcontroller]
Car reversing radar system based on single chip microcomputer design
I2C bus data communication between MAX517 and 51 microcontroller
1 Characteristics and basic communication protocol of I2C bus I2C bus is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. It only needs two wires, serial data line and serial clock line, to transmit information between devices connected to the bus. At the same time, it can save
[Microcontroller]
I2C bus data communication between MAX517 and 51 microcontroller
Intelligent calculator based on single chip microcomputer (AT89C51, LCD1602, matrix keyboard)
1. Introduction This circuit consists of AT89C51 minimum system, LCD1602 liquid crystal display module and matrix keyboard module. 2. Implementation Effect 3. Partial Code /* S16 S12 S8 S4 are 123+ S15 S11 S7 S3 are 456- S14 S10 S6 S2 are 789* S13 S9 S5 S1 are 0 CLR = / */ /*Want more projects private wo!!!*
[Microcontroller]
Intelligent calculator based on single chip microcomputer (AT89C51, LCD1602, matrix keyboard)
Design and implementation of contactless IC card water-saving controller
1. Introduction The contactless IC card water-saving controller (abbreviated as water controller or water control machine) uses a contactless IC card reader to control water output and implements unmanned charging management for water use. It is a device that integrates metering and control functions. It is
[Microcontroller]
AT89C51 serial-to-parallel conversion driving digital tube experiment guide
Device:74hc595. Pin Description: SDA: data input port. SH_CP: Data input control terminal, in each At the rising edge of SH_CP, the data on the SDA port is shifted into the register. At the ninth rising edge of SH_CP, the data starts to be transmitted from QS Remove. ST_CP: Data is placed in
[Microcontroller]
AT89C51 serial-to-parallel conversion driving digital tube experiment guide
AT89C51 single chip DC motor PWM speed control program
This is a PWM speed control program for DC motors with AT89C51 MCU. The program can be directly used in AT89C52, AT89S51, AT89S51, STC89C51, STC89C52 MCUs. The MCU crystal uses 11.0592M. The DC motor is controlled by L298 integrated circuit. The frequency of the generated PWM is about 91Hz. The pins of L298 have been
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号