The system and method for being communicated and being programmed by Switching Power Supply power output line
Technical field
The present invention relates to switch power technology field, more particularly to one kind by the communication of Switching Power Supply power output line and
The system and method for programming.
Background technique
Switching Power Supply is dispersed throughout in various industries extensively.Currently, the requirement for Switching Power Supply is not only limited to
Stablize output in having, there are also the voltage or currents of some application requirements output can be set according to the requirement of concrete application
Different values.In the prior art there are many kinds of setting methods, such as by the plucking number sign switch on power supply, potentiometer or independently set
Programming signal line set etc. is set.The above method haves the defects that certain:
1. setting some simple parameters by plucking number sign switch on mechanical configuration switch power supply or potentiometer, such as defeated
Electric current out, output voltage etc..Because it has a single function, it is not suitable for needing to carry out the occasion of complicated setting.
2. being set by the programming signal line being independently arranged.By dedicated external interface to the control IC of power source internal or
Person's single-chip microcontroller is written and read, and realizes the more complicated settings such as timed power on/off, timing drop power.This setting method there is
Following disadvantage: it needs to provide the voltage of a 5~12V for power supply;Because setting the presence of port, it is difficult to it higher
Waterproofing grade;It is complicated for operation, higher cost.
Summary of the invention
The technical problems to be solved by the present invention are: in order to overcome Switching Power Supply parameter setting mode in the prior art multiple
Miscellaneous deficiency, the present invention provide a kind of system and method for communicating and programming by Switching Power Supply power output line, utilize switch
Signal wire of the included power output line of power supply as communication and programming, carries out parameter under the premise of not increasing control line and sets
It sets, proposes route that is a kind of more simple and easy, while realizing complex power settings.
The present invention solves its technical problem technical solution to be taken: one kind is logical by Switching Power Supply power output line
The system of letter and programming, including Switching Power Supply and programmable device, the Switching Power Supply includes Switching Power Supply power output line, described to open
Powered-down source power output line had both been used as the power output route of Switching Power Supply, while being also to communicate between Switching Power Supply and programmable device
With the route of programming.
Existing Switching Power Supply has power output line and programming dedicated signal lines, generally at least four routes, this Shen
Please be without increasing dedicated programming signal line, the two power output lines carried using Switching Power Supply are as the letter of communication and programming
Number line, single line multiplexing, realizes direct current signal and the transmission exchanged, parameter setting is carried out under the premise of not increasing control line, is mentioned
It is a kind of more simple and easy out, while realizing the route of complex power settings.
It further, further include that capacitor C0 inside Switching Power Supply is set, current sampling circuit, signal processing circuit, is opened
Powered-down source processor and switching power source control circuit, the current sampling circuit, signal processing circuit, Switching Power Supply processor and
Switching power source control circuit is sequentially connected in series, and the capacitor C0 and current sampling circuit are serially connected in the defeated of Switching Power Supply power output line
Out on circuit, and the connecting pin of the capacitor C0 and current sampling circuit is grounded, and the switching power source control circuit is opened with described
Powered-down source power output line connection;
The programmable device includes programmable device processor, controlled voltage source and resistance R0, the programmable device processor with it is described
Controlled voltage source connection, the output end of the controlled voltage source is connect with the Switching Power Supply power output line, and the resistance
R0 is serially connected between the output end of the controlled voltage source and the Switching Power Supply power output line.
For programmable device processor after receiving external setting signal, control controlled voltage source generates a square-wave voltage letter
Number, and this square wave voltage signal is superimposed on the DC voltage of a 5~12V, while can be powered for Switching Power Supply, because
This, which has flip-flop.Specific implementation can use the adder circuit of operational amplifier.
Square wave voltage signal is converted to the current signal comprising set point information by current-limiting resistance R0, then passes through switch
Power output line is input to inside Switching Power Supply, has biggish output capacitance C0 (generally several hundred inside Switching Power Supply
To thousands of microfarads), capacitor C0 isolated DC signal, and for current pulse signal at short circuit.Current signal passes through capacitance
It after C0, is sampled by current sampling circuit, current signal is changed into positive negative pulse stuffing voltage signal, using signal processing
The conversion of circuit amplifies, compares positive negative pulse stuffing voltage signal being converted to the voltage signal that Switching Power Supply processor is able to use,
Switching Power Supply processor makes switching power source control circuit control according to the voltage signal control switch power control circuit for representing setting
Switching Power Supply processed exports satisfactory voltage, power signal.
Specifically, the current sampling circuit includes current transformer T, the first siding ring string of the current transformer T
It connects on the output loop of the Switching Power Supply power output line, the second siding ring and signal processing of the current transformer T
Circuit connection.
Further, the signal processing circuit includes operational amplifier U1A, U1B, resistance R1, R2, R3, R4, R5, capacitor
C1 and biasing circuit, the one end the capacitor C1 connect the Same Name of Ends of the second siding ring of the current transformer T, other end connection
The positive input of operational amplifier U1A, the positive input of the operational amplifier U1A are also connect with the one end resistance R1, electricity
The resistance R1 other end is connect with the reverse input end of operational amplifier U1B, and one end of resistance R2 and R3 are with operational amplifier U1A's
Reverse input end connection, the other end of resistance R2 connect with the reverse input end of operational amplifier U1B, the other end of resistance R3 and
The output end OUTA connection of operational amplifier U1A, the resistance R4 are serially connected in output end OUTA and the operation of operational amplifier U1A
Between the positive input of amplifier U1B, the one end resistance R5 is connect with the reverse input end of operational amplifier U1B, the other end
It is connect with the output end OUTB of operational amplifier U1B, the biasing circuit output bias voltage SA's and operational amplifier U1B
Reverse input end connection.
Further, in order to provide a bias voltage to signal processing circuit, the biasing circuit includes resistance R6 and R7,
The resistance R6 and R7 is connected between power supply and ground, and the extraction voltage between the resistance R6 and R7 is bias voltage SA, institute
The different name end for stating the second siding ring of current transformer T is connect with bias voltage SA.Preferably, the resistance value phase of resistance R6 and R7
Deng.
Signal processing circuit is mainly used for being converted to the positive negative pulse stuffing obtained on current transformer T at Switching Power Supply
The square-wave signal that reason device can be used.
Firstly, the pulse voltage signal by current transformer T sampling output, then carries out blocking by capacitor C1, it is defeated
Enter the positive input to operational amplifier U1A, since the resistance value of resistance R1 is much larger than the resistance value of R6 and R7, the both ends R1
Voltage value does not change substantially, provides a bias voltage SA for the reverse input end of operational amplifier U1A and U1B;Due to
The resistance value of resistance R3 and R5 are much larger than the resistance value of R2, therefore the output voltage of U1A is by the output energy of operational amplifier U1A and U1B
Power determines, forms a hysteresis comparator by operational amplifier U1A and U1B to identify the signal of input.
Further, for the ease of the setting of parameter, input and observation, the programmable device further includes keyboard, liquid crystal and meter
Calculation machine interface, the keyboard, liquid crystal and computer interface are connect with the programmable device processor.
It further, further include signal feedback circuit, the signal feedback circuit includes resistance R8 and triode Q, the electricity
The exit of resistance R0 and Switching Power Supply power output line is connect with one end of the resistance R8, the other end and three of the resistance R8
The collector of pole pipe Q connects, and the base stage of the triode Q is connect with the Switching Power Supply processor, the transmitting of the triode Q
Collection ground connection.Signal feedback circuit is used to monitor the state of communication and programming, when Switching Power Supply processor detects that programmable device exports
After the variation of voltage, the signal that communication and programming are completed is issued, to improve efficiency.Communication complete signal can using buzzer or
Person's indicator light indicates.
A method of it is communicated and is programmed by Switching Power Supply power output line, pass through Switching Power Supply power including above-mentioned
The system of output line communication and programming, and the following steps are included:
Step 1: programmable device exports setting value;
Step 2: setting value is input to Switching Power Supply processor by Switching Power Supply power output line, realizes at Switching Power Supply
Manage the communication and programming between device and programmable device;
Step 3: the Switching Power Supply processor after programming is according to setting value to the output power, electric current and voltage of Switching Power Supply
It is controlled.
Further, the step 1 specifically includes:
Step 1.1: programmable device processor controls controlled voltage source according to external setting-up value, and controlled voltage source is made to generate and set
The corresponding voltage signal of definite value;
Step 1.2: voltage signal is converted to by current signal by resistance R0;
The step 2 specifically includes:
Step 2.1: Switching Power Supply power output line receives current signal, and carries out blocking processing to current signal;
Step 2.2: the current signal in current sampling circuit acquisition programming circuit, and current signal is transformed into voltage arteries and veins
Rush signal;
Step 2.3: conversion process is carried out by the voltage pulse signal that signal processing circuit exports current sampling circuit,
Formation can be switched on and off the signal that power processor uses;
Step 2.4: Switching Power Supply processor receives corresponding with setting value signal message, and information is stored in non-volatile
In property memory.
Further, it in order to improve the efficiency of communication and programming, is further comprised the steps of: while communication and programming in step 2,
The state of communication and programming is monitored by Switching Power Supply processor.
The beneficial effects of the present invention are: it is provided by the invention it is a kind of by Switching Power Supply power output line communicate and program
System and method, the power output line carried using Switching Power Supply realize external programmer as the signal wire of communication and programming
Processor inside Switching Power Supply is programmed, Switching Power Supply processor is stored in interior after receiving set information
In portion's nonvolatile memory, when next Switching Power Supply is switched on work, Switching Power Supply is controlled, control line is not being increased
Under the premise of carry out parameter setting, it is easy to operate, do not increase cost, meanwhile, and can satisfy the need of various occasion parameter settings
It asks.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1 is the structure principle chart of an embodiment of the present invention;
Fig. 2 is the structure principle chart of another embodiment of the invention;
Fig. 3 is the structural schematic diagram of signal processing circuit in the present invention;
Fig. 4 is the waveform diagram of input in the present invention, output signal.
Specific embodiment
Presently in connection with attached drawing, the present invention is described in detail.This figure is simplified schematic diagram, is only illustrated in a schematic way
Basic structure of the invention, therefore it only shows the composition relevant to the invention.
Embodiment one:
As shown in Figure 1, a kind of system for communicating and programming by Switching Power Supply power output line, including Switching Power Supply and volume
Journey device, the Switching Power Supply include Switching Power Supply power output line, and the Switching Power Supply power output line is both used as Switching Power Supply
Power output route, while being also the route that communicates and program between Switching Power Supply and programmable device.
Further include be arranged in the capacitor C0 inside Switching Power Supply, current sampling circuit, signal processing circuit, at Switching Power Supply
Manage device and switching power source control circuit, the current sampling circuit, signal processing circuit, Switching Power Supply processor and Switching Power Supply
Control circuit is sequentially connected in series, and the capacitor C0 and current sampling circuit are serially connected in the output loop of Switching Power Supply power output line
On, and the connecting pin of the capacitor C0 and current sampling circuit is grounded, the switching power source control circuit and the Switching Power Supply
The connection of power output line;
The programmable device includes programmable device processor, controlled voltage source and resistance R0, the programmable device processor with it is described
Controlled voltage source connection, the output end of the controlled voltage source is connect with the Switching Power Supply power output line, and the resistance
R0 is serially connected between the output end of the controlled voltage source and the Switching Power Supply power output line.
The current sampling circuit includes current transformer T, and the first siding ring of the current transformer T is serially connected in described
On the output loop of Switching Power Supply power output line, the second siding ring of the current transformer T is connect with signal processing circuit.
As shown in figure 3, the signal processing circuit includes operational amplifier U1A, U1B, resistance R1, R2, R3, R4, R5, electricity
Hold C1 and biasing circuit, the one end the capacitor C1 connects the Same Name of Ends of the second siding ring of the current transformer T, and the other end connects
The positive input of operational amplifier U1A is connect, the positive input of the operational amplifier U1A is also connect with the one end resistance R1,
The resistance R1 other end is connect with the reverse input end of operational amplifier U1B, one end of resistance R2 and R3 with operational amplifier U1A
Reverse input end connection, the other end of resistance R2 connect with the reverse input end of operational amplifier U1B, the other end of resistance R3
It is connect with the output end OUTA of operational amplifier U1A, the resistance R4 is serially connected in the output end OUTA and fortune of operational amplifier U1A
Between the positive input for calculating amplifier U1B, the one end resistance R5 is connect with the reverse input end of operational amplifier U1B, another
End is connect with the output end OUTB of operational amplifier U1B, the biasing circuit output bias voltage SA's and operational amplifier U1B
Reverse input end connection.
The biasing circuit includes resistance R6 and R7, and the resistance R6 and R7 is connected between power supply and ground, the resistance
Extraction voltage between R6 and R7 is bias voltage SA, the different name end of the second siding ring of the current transformer T and biased electrical
Press SA connection.Preferably, the resistance value of resistance R6 and R7 is equal.
Capacitance C1 is connected to the positive input of U1A and the second siding ring Same Name of Ends of current transformer T.Electric current is mutual
The second siding ring different name end of sensor T is connected to by the bias voltage SA of R6 and R7 offer, and is connected to operation amplifier by R1
The positive input of device U1A, the reverse input end of operational amplifier U1A is connected to by R2, and bias voltage SA is also put with operation
The reverse input end connection of big device U1B.
Resistance R3 is used as the negative feedback resistor of operational amplifier U1A, negative-feedback electricity of the resistance R5 as operational amplifier U1B
Resistance, R4 is for the connection and current limliting between two amplifiers.
Wherein: R7=R8 > > R1=R5 > > R3=R4
As shown in figure 4, A is the voltage waveform of operational amplifier U1A output end OUTA;B is the forward direction of operational amplifier U1A
The voltage waveform of input terminal;C is the voltage waveform of the output end OUTB of operational amplifier U1B, the i.e. waveform of output voltage.
Current transformer T first siding ring flows through square wave current signal, in the positive and negative hopping edge of square wave current signal, so that
Current transformer T second siding ring generates generating positive and negative voltage pulse, and defeated by the forward direction of capacitance C1 to operational amplifier U1A
Enter end.
The negative input of operational amplifier U1A provides negative anti-by the bias voltage SA, R7 that R2 is connected to R6, R7 offer
Feedback.
After operational amplifier U1A tentatively amplifies input signal, into the comparator being made of operational amplifier U1B, than
Signal shaping is exported at square wave to the processor use of Switching Power Supply compared with device.
Embodiment two:
The present embodiment is substantially the same as example 1, the difference is that further include signal feedback circuit in the present embodiment,
As shown in Fig. 2, the signal feedback circuit includes resistance R8 and triode Q, the resistance R0 and Switching Power Supply power output line
Exit connect with one end of the resistance R8, the other end of the resistance R8 is connect with the collector of triode Q, described three
The base stage of pole pipe Q is connect with the Switching Power Supply processor, the transmitting collection ground connection of the triode Q.
A method of it is communicated and is programmed by Switching Power Supply power output line, pass through Switching Power Supply power including above-mentioned
The system of output line communication and programming, and the following steps are included:
Step 1: programmable device exports setting value;
Step 2: setting value is input to Switching Power Supply processor by Switching Power Supply power output line, realizes at Switching Power Supply
Manage the communication and programming between device and programmable device;
Step 3: the Switching Power Supply processor after programming is according to setting value to the output power, electric current and voltage of Switching Power Supply
It is controlled.
Further, the step 1 specifically includes:
Step 1.1: programmable device processor controls controlled voltage source according to external setting-up value, and controlled voltage source is made to generate and set
The corresponding voltage signal of definite value;
Step 1.2: voltage signal is converted to by current signal by resistance R0;
The step 2 specifically includes:
Step 2.1: Switching Power Supply power output line receives current signal, and carries out blocking processing to current signal;
Step 2.2: the current signal in current sampling circuit acquisition programming circuit, and current signal is transformed into voltage arteries and veins
Rush signal;
Step 2.3: conversion process is carried out by the voltage pulse signal that signal processing circuit exports current sampling circuit,
Formation can be switched on and off the signal that power processor uses;
Step 2.4: Switching Power Supply processor receives corresponding with setting value signal message, and information is stored in non-volatile
In property memory.
In order to improve the efficiency of communication and programming, further comprised the steps of: in step 2 while communication and programming, by opening
The state of powered-down source processor monitoring communication and programming.
Taking the above-mentioned ideal embodiment according to the present invention as inspiration, through the above description, relevant staff
Various changes and amendments can be carried out without departing from the scope of the present invention completely.The technical scope of this invention is not
The content being confined on specification, it is necessary to which the technical scope thereof is determined according to the scope of the claim.