By the system and method that Switching Power Supply power stage line communicates and programmes
Technical field
The present invention relates to switch power technology field, particularly relate to a kind of system and method communicating by Switching Power Supply power stage line and programme.
Background technology
Switching Power Supply has extensively been dispersed throughout in industry-by-industry.At present, the requirement for Switching Power Supply has not only been confined to have stable output, and the voltage also having some application to require to export or electric current can be set in different values according to the requirement of embody rule.In prior art, establishing method has a variety of, and as by the plucking number sign switch on power supply, potentiometer or the independent programming signal line etc. arranged set.All there is certain defect in said method:
1. set some simple parameters by the plucking number sign switch on mechanical configuration switch power supply or potentiometer, such as output current, output voltage etc.Because of its function singleness, be not suitable for the occasion needing to carry out complicated setting.
2. by the independent programming signal line setting arranged.By special external interface, the control IC of power source internal or single-chip microcomputer are read and write, realize timed power on/off, the comparatively complicated setting such as power falls in timing.This establishing method also exists following shortcoming: need for power supply provides the voltage of a 5 ~ 12V; Because the existence of setting port, makes it be difficult to accomplish higher classification of waterproof; Complicated operation, cost is higher.
Summary of the invention
Technical matters to be solved by this invention is: in order to overcome the deficiency of Switching Power Supply setting parameter mode complexity of the prior art, the invention provides a kind of system and method communicating by Switching Power Supply power stage line and programme, the power stage line utilizing Switching Power Supply to carry is as the signal wire communicated and programme, optimum configurations is carried out under the prerequisite not increasing control line, propose one more simple, realize the circuit of comparatively complicated power settings simultaneously.
The present invention solves the technical scheme that its technical matters will adopt: a kind of system by the communication of Switching Power Supply power stage line and programming, comprise Switching Power Supply and programmable device, described Switching Power Supply comprises Switching Power Supply power stage line, described Switching Power Supply power stage line, both as the power stage circuit of Switching Power Supply, is also the circuit communicating between Switching Power Supply with programmable device and programme simultaneously.
Existing Switching Power Supply has power stage line and programming dedicated signal lines, generally have four circuits at least, the application is without the need to increasing special programming signal line, the two power stage lines utilizing Switching Power Supply to carry are as the signal wire communicated and programme, single line is multiplexing, realizes direct current signal and the transmission exchanged, under the prerequisite not increasing control line, carries out optimum configurations, propose one more simple, realize the circuit of comparatively complicated power settings simultaneously.
Further, also comprise the electric capacity C0, current sampling circuit, signal processing circuit, Switching Power Supply processor and the switching power source control circuit that are arranged on Switching Power Supply inside, described current sampling circuit, signal processing circuit, Switching Power Supply processor and switching power source control circuit are connected successively, described electric capacity C0 and current sampling circuit are serially connected on the output loop of Switching Power Supply power stage line, and the link ground connection of described electric capacity C0 and current sampling circuit, described switching power source control circuit is connected with described Switching Power Supply power stage line;
Described programmable device comprises programmable device processor, controlled voltage source and resistance R0, described programmable device processor is connected with described controlled voltage source, the output terminal of described controlled voltage source is connected with described Switching Power Supply power stage line, and described resistance R0 is serially connected between the output terminal of described controlled voltage source and described Switching Power Supply power stage line.
Programmable device processor is after receiving outside setting signal, control controlled voltage source and produce a square wave voltage signal, and this square wave voltage signal is superimposed in the DC voltage of a 5 ~ 12V, can power for Switching Power Supply simultaneously, therefore, this square wave voltage signal has flip-flop.Specific implementation can adopt 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 Switching Power Supply inside is input to by Switching Power Supply power stage line, Switching Power Supply inside has larger output capacitance C0 (being generally hundreds of to several thousand microfarads), electric capacity C0 isolated DC signal, and short circuit is become for current pulse signal.Current signal is by after capacitance C0, sample through current sampling circuit, current signal is changed to positive negative pulse voltage signal, again through signal processing circuit conversion, amplify, compare voltage signal positive negative pulse stuffing voltage signal being converted to Switching Power Supply processor and can using, Switching Power Supply processor, according to the voltage signal gauge tap power control circuit of representative setting, makes switching power source control circuit gauge tap power supply export satisfactory voltage, power signal.
Concrete, described current sampling circuit comprises current transformer T, and the first siding ring of described current transformer T is serially connected on the output loop of described Switching Power Supply power stage line, and the second siding ring of described current transformer T is connected with signal processing circuit.
Further, described signal processing circuit comprises operational amplifier U1A, U1B, resistance R1, R2, R3, R4, R5, electric capacity C1 and biasing circuit, described electric capacity C1 one end connects the Same Name of Ends of the second siding ring of described current transformer T, the positive input of other end concatenation operation amplifier U1A, the positive input of described operational amplifier U1A is also connected with resistance R1 one end, the resistance R1 other end is connected with the reverse input end of operational amplifier U1B, one end of resistance R2 with R3 is all connected with the reverse input end of operational amplifier U1A, the other end of resistance R2 is connected with the reverse input end of operational amplifier U1B, the other end of resistance R3 is connected with the output terminal OUTA of operational amplifier U1A, described resistance R4 is serially connected between the output terminal OUTA of operational amplifier U1A and the positive input of operational amplifier U1B, resistance R5 one end and operational amplifier U1B reverse input end be connected, the other end is connected with the output terminal OUTB of operational amplifier U1B, described biasing circuit output offset voltage SA and operational amplifier U1B reverse input end be connected.
Further, in order to provide a bias voltage to signal processing circuit, described biasing circuit comprises resistance R6 and R7, described resistance R6 and R7 is connected between power supply and ground, extraction voltage between described resistance R6 and R7 is bias voltage SA, and the different name end of the second siding ring of described current transformer T is connected with bias voltage SA.Preferably, the resistance of resistance R6 and R7 is equal.
The main application of signal processing circuit is that the positive negative pulse stuffing that current transformer T obtains is converted to the operable square-wave signal of Switching Power Supply processor.
First, through the pulse voltage signal that current transformer T sampling exports, then carry out every directly through electric capacity C1, be input to the positive input of operational amplifier U1A, because the resistance of resistance R1 is much larger than the resistance of R6 and R7, therefore the magnitude of voltage at R1 two ends does not change substantially, and the reverse input end for operational amplifier U1A and U1B provides a bias voltage SA; Because the resistance of resistance R3 and R5 is much larger than the resistance of R2, therefore the output voltage of U1A is determined by the fan-out capability of operational amplifier U1A and U1B, forms by operational amplifier U1A and U1B the signal that a hysteresis comparator identifies input.
Further, for the ease of the setting of parameter, input and observation, described programmable device also comprises keyboard, liquid crystal and computer interface, and described keyboard, liquid crystal and computer interface are all connected with described programmable device processor.
Further, also comprise signal feedback circuit, described signal feedback circuit comprises resistance R8 and triode Q, described resistance R0 is connected with one end of described resistance R8 with the exit of Switching Power Supply power stage line, the other end of described resistance R8 is connected with the collector of triode Q, the base stage of described triode Q is connected with described Switching Power Supply processor, the transmitting collection ground connection of described triode Q.Signal feedback circuit is used for the state of monitoring communications and programming, and after Switching Power Supply processor detects the change of programmable device output voltage, the signal sending communication and programmed, to raise the efficiency.Communication settling signal can adopt hummer or pilot lamp to indicate.
By the method that Switching Power Supply power stage line communicates and programmes, comprise the above-mentioned system communicating by Switching Power Supply power stage line and programme, and comprise the following steps:
Step 1: programmable device exports setting value;
Step 2: setting value is input to Switching Power Supply processor by Switching Power Supply power stage line, realizes the communication between Switching Power Supply processor and programmable device and programming;
Step 3: the Switching Power Supply processor after programming controls the output power of Switching Power Supply, electric current and voltage according to setting value.
Further, described step 1 specifically comprises:
Step 1.1: programmable device processor controls controlled voltage source according to external setting-up value, makes controlled voltage source produce the voltage signal corresponding with setting value;
Step 1.2: voltage signal is converted to current signal by resistance R0;
Described step 2 specifically comprises:
Step 2.1: Switching Power Supply power stage line accepts current signal, and carry out every straight process to current signal;
Step 2.2: the current signal in current sampling circuit collection programming loop, and current signal is transformed into voltage pulse signal;
Step 2.3: the voltage pulse signal exported by current sampling circuit by signal processing circuit carries out conversion process, forms the signal that can be used by Switching Power Supply processor;
Step 2.4: Switching Power Supply processor receives the signal message corresponding with setting value, and information is stored in nonvolatile memory.
Further, in order to improve the efficiency of communication and programming, in step 2, also step is comprised: while communication and programming, by the state of Switching Power Supply processor monitoring communications and programming.
The invention has the beneficial effects as follows: a kind of system and method communicating by Switching Power Supply power stage line and programme provided by the invention, the power stage line utilizing Switching Power Supply to carry is as the signal wire communicated and programme, realize the processor of external programmer to switch power source internal to programme, Switching Power Supply processor is after receiving set information, be stored in internal non-volatile memory, when next Switching Power Supply start work, Switching Power Supply is controlled, optimum configurations is carried out under the prerequisite not increasing control line, simple to operate, do not increase cost, simultaneously, the demand of various occasion setting parameter can be met again.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described.
Fig. 1 is the structure principle chart of an embodiment of the present invention;
Fig. 2 is the structure principle chart of the another kind of embodiment of the present invention;
Fig. 3 is the structural representation of signal processing circuit in the present invention;
Fig. 4 is the waveform schematic diagram inputting in the present invention, output signal.
Embodiment
The present invention is described in detail by reference to the accompanying drawings now.This figure is the schematic diagram simplified, and only basic structure of the present invention is described in a schematic way, therefore it only shows the formation relevant with the present invention.
Embodiment one:
As shown in Figure 1, a kind of system communicating by Switching Power Supply power stage line and programme, comprise Switching Power Supply and programmable device, described Switching Power Supply comprises Switching Power Supply power stage line, described Switching Power Supply power stage line, both as the power stage circuit of Switching Power Supply, is also the circuit communicating between Switching Power Supply with programmable device and programme simultaneously.
Also comprise the electric capacity C0, current sampling circuit, signal processing circuit, Switching Power Supply processor and the switching power source control circuit that are arranged on Switching Power Supply inside, described current sampling circuit, signal processing circuit, Switching Power Supply processor and switching power source control circuit are connected successively, described electric capacity C0 and current sampling circuit are serially connected on the output loop of Switching Power Supply power stage line, and the link ground connection of described electric capacity C0 and current sampling circuit, described switching power source control circuit is connected with described Switching Power Supply power stage line;
Described programmable device comprises programmable device processor, controlled voltage source and resistance R0, described programmable device processor is connected with described controlled voltage source, the output terminal of described controlled voltage source is connected with described Switching Power Supply power stage line, and described resistance R0 is serially connected between the output terminal of described controlled voltage source and described Switching Power Supply power stage line.
Described current sampling circuit comprises current transformer T, and the first siding ring of described current transformer T is serially connected on the output loop of described Switching Power Supply power stage line, and the second siding ring of described current transformer T is connected with signal processing circuit.
As shown in Figure 3, described signal processing circuit comprises operational amplifier U1A, U1B, resistance R1, R2, R3, R4, R5, electric capacity C1 and biasing circuit, described electric capacity C1 one end connects the Same Name of Ends of the second siding ring of described current transformer T, the positive input of other end concatenation operation amplifier U1A, the positive input of described operational amplifier U1A is also connected with resistance R1 one end, the resistance R1 other end is connected with the reverse input end of operational amplifier U1B, one end of resistance R2 with R3 is all connected with the reverse input end of operational amplifier U1A, the other end of resistance R2 is connected with the reverse input end of operational amplifier U1B, the other end of resistance R3 is connected with the output terminal OUTA of operational amplifier U1A, described resistance R4 is serially connected between the output terminal OUTA of operational amplifier U1A and the positive input of operational amplifier U1B, resistance R5 one end and operational amplifier U1B reverse input end be connected, the other end is connected with the output terminal OUTB of operational amplifier U1B, described biasing circuit output offset voltage SA and operational amplifier U1B reverse input end be connected.
Described biasing circuit comprises resistance R6 and R7, and described resistance R6 and R7 is connected between power supply and ground, and the extraction voltage between described resistance R6 and R7 is bias voltage SA, and the different name end of the second siding ring of described current transformer T is connected with bias voltage SA.Preferably, the resistance of resistance R6 and R7 is equal.
Capacitance C1 is connected to the second siding ring Same Name of Ends of the positive input summation current transformer T of U1A.The second siding ring different name end of current transformer T is connected to the bias voltage SA provided by R6 and R7, and the positive input of operational amplifier U1A is connected to by R1, be connected to the reverse input end of operational amplifier U1A by R2, bias voltage SA is also connected with the reverse input end of operational amplifier U1B.
Resistance R3 is used as the negative feedback resistor of operational amplifier U1A, and resistance R5 is used as the negative feedback resistor of operational amplifier U1B, and R4 is for the connection between two amplifiers and current limliting.
Wherein: R7=R8>>R1=R5>G reatT.GreaT.GTR3=R4
As shown in Figure 4, A is the voltage waveform of operational amplifier U1A output terminal OUTA; B is the voltage waveform of the positive input of operational amplifier U1A; C is the voltage waveform of the output terminal 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, makes current transformer T second siding ring produce generating positive and negative voltage pulse, and passes through the positive input of capacitance C1 to operational amplifier U1A.
The negative input of operational amplifier U1A receives by R2 the bias voltage SA that R6, R7 provide, and R7 provides negative feedback.
After input signal tentatively amplifies by operational amplifier U1A, enter the comparer be made up of operational amplifier U1B, the processor that signal shaping becomes square wave to export to Switching Power Supply by comparer uses.
Embodiment two:
The present embodiment is roughly identical with embodiment one, difference is also to comprise signal feedback circuit in the present embodiment, as shown in Figure 2, described signal feedback circuit comprises resistance R8 and triode Q, described resistance R0 is connected with one end of described resistance R8 with the exit of Switching Power Supply power stage line, the other end of described resistance R8 is connected with the collector of triode Q, and the base stage of described triode Q is connected with described Switching Power Supply processor, the transmitting collection ground connection of described triode Q.
By the method that Switching Power Supply power stage line communicates and programmes, comprise the above-mentioned system communicating by Switching Power Supply power stage line and programme, and comprise the following steps:
Step 1: programmable device exports setting value;
Step 2: setting value is input to Switching Power Supply processor by Switching Power Supply power stage line, realizes the communication between Switching Power Supply processor and programmable device and programming;
Step 3: the Switching Power Supply processor after programming controls the output power of Switching Power Supply, electric current and voltage according to setting value.
Further, described step 1 specifically comprises:
Step 1.1: programmable device processor controls controlled voltage source according to external setting-up value, makes controlled voltage source produce the voltage signal corresponding with setting value;
Step 1.2: voltage signal is converted to current signal by resistance R0;
Described step 2 specifically comprises:
Step 2.1: Switching Power Supply power stage line accepts current signal, and carry out every straight process to current signal;
Step 2.2: the current signal in current sampling circuit collection programming loop, and current signal is transformed into voltage pulse signal;
Step 2.3: the voltage pulse signal exported by current sampling circuit by signal processing circuit carries out conversion process, forms the signal that can be used by Switching Power Supply processor;
Step 2.4: Switching Power Supply processor receives the signal message corresponding with setting value, and information is stored in nonvolatile memory.
In order to improve the efficiency of communication and programming, in step 2, also comprise step: while communication and programming, by the state of Switching Power Supply processor monitoring communications and programming.
With above-mentioned according to desirable embodiment of the present invention for enlightenment, by above-mentioned description, relevant staff not departing from scope of the present invention, can carry out various change and amendment completely.The technical scope of this invention is not limited to the content on instructions, must determine its technical scope according to right.