Automatic voltage switch and its implementation
Technical field
The present invention relates to the switching circuit of electronic technology field, especially relate to automatic voltage switch and its implementation that a kind of ac power supply line voltage determines whether to carry out voltage multiplying rectifier automatically.
Background technology
It is a kind of 110V/220V ac power supply line voltage autoselector external member that company of STMicw Electronics (ST) produces the AVS08 product, is suitable for using in the Switching Power Supply below 200W.This external member is also referred to as the automatic voltage switch, and English is abbreviated as AVS.
As shown in Figure 1, be the typical application circuit schematic diagram of AVS08.AVS08 is that the controller IC 1 of AVSIBCP08 and bidirectional triode thyristor device VS1 two parts that model is AVS08CB or AVS08CB1 are formed by model mainly.
The series circuit that resistance R 4, resistance R 5, resistance D5 and capacitor C 4 are formed is for controller IC 1 provides supply voltage.The 1st pin Vss inside of controller IC 1 is a shunt regulator, provide-output (maximum current Iss is 25mA) of 9V, the resitstance voltage divider of being made up of resistance R 1 and resistance R 2 as the AC line voltage distribution of measuring input, makes the voltage on the 8th pin of controller IC 1 change with ac input voltage.The controlled function of AVS08 is compared with threshold voltage by the AC line voltage distribution and is finished.Crest voltage on the comparator detects high threshold Vth=4.25V, and is with a hysteresis voltage VH (representative value is 0.4v).
The AC line frequency of AVS08 and 50Hz or 60Hz is compatible, and works in two AC line voltage distribution scopes.(AC circuit rated voltage is 110V to the excursion of first voltage, 60Hz) from 88V to 132V; (AC supply line rated voltage is 220V to the excursion of second voltage, 50Hz) from 176 to 276V.Input voltage is on first voltage range the time, and controller IC 1 drives bidirectional triode thyristor VS1 conducting, and bridge circuit is operated in the multiplication of voltage pattern; Input voltage is on second voltage range time, bidirectional triode thyristor VS1 blocking-up, and input circuit is worked in the full-bridge rectification pattern.Though be the input be first voltage or second voltage, the dc voltage numerical value of output is the same.
There is following technological deficiency in available circuit:
1, controller IC 1 is a kind of special chip, and price is higher, causes the realization cost of automatic voltage switch higher.
2, the detection port that does not have holding state and open state on the controller IC 1 does not dispose readiness control circuit yet, and the oneself power consumption of whole automatic voltage switch is bigger.
Summary of the invention
For overcoming prior art problems, the present invention proposes a kind of automatic voltage switch and its implementation, by the current AC-input voltage of automatic judgement is first voltage or second voltage, and when the detection AC-input voltage has been in stable state, send voltage multiplying rectifier commands for controlling output dc voltage, safe and reliable and realize that cost is lower.
The present invention adopts following technical scheme to realize: a kind of automatic voltage switch, and it comprises: be used for the ac input end of input ac voltage, alternating voltage is first voltage or second voltage; Be used to export the dc output end of a direct voltage; Be connected to rectifier bridge and bidirectional triode thyristor between ac input end and the dc output end in turn; The alternating voltage amplitude that is used to sample, the voltage magnitude sample circuit of output sample voltage value; Be used to the alternating voltage waveform of sampling, output sample waveform voltage of signals state sample circuit; Be used for judging that according to sample voltage value the alternating voltage of ac input end is first voltage or second voltage, judge according to the sample waveform signal whether alternating voltage has been in stable state, and be first voltage and send the microprocessor of voltage multiplying rectifier instruction when being in stable state at alternating voltage; Wherein, the voltage magnitude sample circuit connects the voltage of microprocessor and judges port, and the voltage status sample circuit connects the stable state of microprocessor and judges port, and the control output end mouth of microprocessor couples the control end of bidirectional triode thyristor.
In a preferred embodiment, microprocessor is by detecting the sample waveform signal arrives predetermined amplitude in the ascent stage/decline stage of current period second time, and the very first time that arrives predetermined amplitude in the ascent stage/decline stage of last one-period, whether the difference of judging second time and the very first time is a fixed value, if then when alternating voltage is first voltage, send the voltage multiplying rectifier instruction.
In a preferred embodiment, the voltage magnitude sample circuit comprises: anode connects first diode of ac input end, its negative electrode voltage that the 5th resistance connects microprocessor of connecting is judged port, and the voltage of microprocessor is judged between port and the ground and connect the 7th resistance.
In a preferred embodiment, the voltage status sample circuit comprises: anode connects first diode of ac input end, its negative electrode is judged port by the stable state that the 4th resistance connects microprocessor, and stable state is judged between port and the ground and connect the tenth resistance.
In a preferred embodiment, described automatic voltage switch also comprises: the following in working order power supply of exporting the consecutive pulses signal, export discontinuous pulse signal under holding state; Whether power supply connects the power port of microprocessor by power supply circuits, judge whether in running order for the consecutive pulses signal by microprocessor by judging power supply.
In a preferred embodiment, described automatic voltage switch also comprises: be connected the standby sample circuit between the standby detection port of power supply and microprocessor, the standby sample circuit comprises that former limit connects the transformer of power supply, the secondary of transformer connects the anode of second diode, is connected high frequency filter between the standby detection port of the negative electrode of second diode and microprocessor.
In a preferred embodiment, bidirectional triode thyristor adopts pulse signal or direct current signal to trigger.
In addition, the present invention also proposes a kind of implementation method of automatic voltage switch, and it comprises step:
By voltage magnitude sample circuit sampling alternating voltage amplitude, the output sample voltage value judges that according to sample voltage value the alternating voltage of ac input end is first voltage or second voltage by microprocessor;
By voltage status sample circuit sampling alternating voltage waveform, output sample waveform signal, judge according to the sample waveform signal whether alternating voltage has been in stable state by microprocessor, and be first voltage and send the voltage multiplying rectifier instruction when being in stable state in alternating voltage;
Instruct conduction and cut-off by bidirectional triode thyristor according to voltage multiplying rectifier, control connection is selected different working modes at the rectifier bridge of ac input end, control dc output end output dc voltage.
In a preferred embodiment, judge that the step whether alternating voltage has been in stable state comprises:
Detect second time of sample waveform signal in ascent stage/decline stage arrival predetermined amplitude of current period, and the very first time that arrives predetermined amplitude in ascent stage/decline stage of last one-period;
Whether the difference of judging second time and the very first time is a fixed value, if then microprocessor sends the voltage multiplying rectifier instruction when alternating voltage is first voltage.
In a preferred embodiment, the implementation method of described automatic voltage switch also comprises step:
Whether detect power supply is the consecutive pulses signal, when detecting power supply and be discontinuous pulse signal, control microprocessor enters holding state, when detecting power supply and be the consecutive pulses signal, control microprocessor keeps operating state or enters operating state by holding state;
Wherein, power supply is exported the consecutive pulses signal in working order down, exports discontinuous fluctuating signal under holding state.
Compared with prior art, the present invention has following beneficial effect:
1, to discern alternating voltage Uin automatically by the voltage magnitude sample circuit be 110V/220V to microprocessor of the present invention, whether and it is stable to detect alternating voltage Uin by microprocessor by the voltage status sample circuit, have only alternating voltage Uin to be under the situation of stable state when input, microprocessor just sends voltage multiplying rectifier commands for controlling output dc voltage, therefore, can effectively detect the ac input end loose contact and avoid judging by accident alternating voltage Uin, have higher functional reliability.
2, the present invention utilizes the wave character control automatic voltage switch of power supply Ucc to switch with holding state in working order, need not to increase extra stand-by circuit, carry out standby (holding state) and start detection (operating state) by microprocessor, have only when in running order, microprocessor just can send the voltage multiplying rectifier instruction, therefore, realize that the circuit structure of idle function is simple, realize that cost is lower.
3, microprocessor adopts single-chip microcomputer to realize among the present invention, realizes simple and has advantage low in energy consumption.
Description of drawings
Fig. 1 is the circuit diagram of existing automatic voltage switch;
Fig. 2 is the circuit diagram of automatic voltage switch the 1st embodiment of the present invention;
Fig. 3 is the waveform schematic diagram of sample waveform signal;
Fig. 4 is the waveform schematic diagram of power supply Ucc;
Fig. 5 is the circuit diagram of automatic voltage switch the 2nd embodiment of the present invention.
Embodiment
As shown in Figure 2, in the 1st embodiment of the present invention, the automatic voltage switch comprises: be used for the ac input end of input ac voltage Uin, alternating voltage Uin is first voltage or second voltage; Be used to export the dc output end of a satisfactory direct voltage Uout; Be connected to rectifier bridge DB1 and bidirectional triode thyristor VS1 between ac input end and the dc output end in turn; Adopt the microprocessor U1 of chip microcontroller, its voltage judges that port (the 3rd pin) connects ac input end by the voltage magnitude sample circuit, the stable state of microprocessor U1 judges that port (the 2nd pin) connects ac input end by the voltage status sample circuit, the power port of microprocessor U1 (the 4th pin) connects power supply Ucc by power supply circuits, the standby detection port of microprocessor U1 (the 1st pin) connects power supply Ucc by the standby sample circuit, and the control output end mouth of microprocessor U1 (the 5th pin) connects the control end of bidirectional triode thyristor VS1 by the control command output circuit.
When alternating voltage Uin was first voltage, microprocessor U1 sent the voltage multiplying rectifier instruction and drives bidirectional triode thyristor VS1 conducting, and rectifier bridge DB1 is operated in the multiplication of voltage pattern; When alternating voltage Uin is second voltage, bidirectional triode thyristor VS1 blocking-up, rectifier bridge DB1 is operated in the full-bridge rectification pattern.
The excursion of first voltage is from 88V to 132V; The excursion of second voltage from 176 to 276V.Be that AC110V, second voltage are that AC 220V is that example further specifies with first voltage below.
Wherein, the voltage magnitude sample circuit comprises: anode connects the first diode D1 of ac input end, and its negative electrode voltage that the 5th resistance R 5 connects microprocessor U1 of connecting is judged port, and the voltage of microprocessor U1 is judged between port and the ground and connect the 7th resistance R 7.
Alternating voltage Uin through the first diode D1 rectification after, the 5th resistance R 5 and the 7th resistance R 7 dividing potential drops that are connected in series, dividing potential drop on the 7th resistance R 7 is sample voltage value, sample voltage value is sent into the voltage of microprocessor U1 and judged port, judging current alternating voltage Uin by microprocessor U1 according to sample voltage value is AC 220V or AC is 110V; When alternating voltage Uin was AC 110V, the control output end mouth of microprocessor U1 sent voltage multiplying rectifier commands for controlling bidirectional triode thyristor VS1 conducting.
If when alternating voltage Uin was AC 220V, the dividing potential drop on the 7th resistance R 7 was 15V; Under the same conditions, when alternating voltage Uin was AC 110V, then the dividing potential drop on the 7th resistance R 7 was 7.5V.Therefore, a threshold value is set in microprocessor U1, when the sample voltage value of input during greater than threshold value, microprocessor U1 judges that current alternating voltage Uin is AC 220V, otherwise microprocessor U1 judges that current alternating voltage Uin is AC 110V.
Wherein, the voltage status sample circuit comprises: the tenth resistance R 10, the four resistance R 4 of carrying out dividing potential drop with the 4th resistance R 4 are connected in series the tenth resistance R 10 ground connection, and the 4th resistance R 4 is connected the stable state of microprocessor U1 and judges port with the common port of the tenth resistance R 10.Voltage division signal on the tenth resistance R 10 is the sample waveform signal, and whether the voltage division signal that is detected on the tenth resistance R 10 by microprocessor U1 is in stable state.
In conjunction with shown in Figure 3, abscissa t express time, ordinate U represents the amplitude of sample waveform signal, i.e. voltage division signal on the tenth resistance R 10.Alternating voltage Uin is sinusoidal wave; Through the first diode D1 rectification, carry out dividing potential drop by the alternating voltage Uin after 10 pairs of rectifications of the 4th resistance R 4 serial connection the tenth resistance R, the voltage division signal on the tenth resistance R 10 is the sample waveform signal.Therefore, the stable state of microprocessor U1 is judged port by detecting the sample waveform signal, judges whether the waveform of sample waveform signal in each continuous cycle is stable, can judge promptly whether alternating voltage Uin is stable.Only judging under the situation that alternating voltage Uin has been in stable state, the control output end eloquence of microprocessor U1 can be sent voltage multiplying rectifier commands for controlling bidirectional triode thyristor VS1, this moment the dc output end output dc voltage.
Specifically, Wave data for the sample waveform signal, microprocessor U1 reads interior waveform of each cycle reaches some amplitudes at ascent stage (also can be the decline stage) time respectively, utilize the time difference that reaches identical amplitude respectively in adjacent 2 cycles, whether the judgement time difference is fixed value, if show that then alternating voltage Uin has been in stable state.Such as, waveform reaches the time t1 of a definite amplitude at ascent stage in current period, and waveform reaches the time t2 of a definite amplitude at ascent stage in the one-period on adjacent, so, time difference T=t1-t2.Whether equaling a fixed value by microprocessor U1 judgement time difference T gets final product.In a single day microprocessor U1 detects time difference T and equals fixed value, shows that the alternating voltage Uin of current input has been in stable state, sends the voltage multiplying rectifier instruction.
In a preferred embodiment, poor computing time time that waveform arrives zero point in the decline stage in each cycle by detecting the sample waveform signal.
Wherein, bidirectional triode thyristor VS1 sampling pulse triggering mode or direct current triggering mode.
In a preferred embodiment, the control command output circuit comprises: the control output end mouth serial connection of microprocessor U1 is used for the base stage of the 8th resistance R 8 connection transistor seconds T2 of current limliting, the grounded emitter of transistor seconds T2, collector series connection are used for the control end of the 9th resistance R 9 connection bidirectional triode thyristor VS1 of current limliting.
In a further advantageous embodiment, the control output end mouth of microprocessor U1 directly connects or is connected in series the control end of a current-limiting circuit connection bidirectional triode thyristor VS1.
In conjunction with shown in Figure 4, power supply Ucc exports the consecutive pulses signal in working order down, the discontinuous pulse signal of output under holding state.
Wherein, power supply circuits comprise: the limit connects the transformer TR1 of power supply Ucc; Anode connects the 3rd diode D3 of transformer TR1 secondary; Be serially connected in the 3rd resistance R 3 that is used for current limliting between the standby detection port of the negative electrode of the 3rd diode D3 and microprocessor U1.In working order down, for the power supply Ucc of the continuous square-wave signal of high frequency through the 3rd diode D3 rectification, after the 3rd resistance R 3 current limlitings, the working power that produces microprocessor U1 is exported to the power port of microprocessor U1.
The standby sample circuit comprises: former limit connects the transformer TR1 of power supply Ucc, and the secondary of transformer TR1 connects the anode of the second diode D2; Between the standby detection port of the negative electrode of the second diode D2 and microprocessor U1, be connected high frequency filter.Specifically, high frequency filter comprises: be serially connected in first resistance R 1 between the power port of the negative electrode of the second diode D2 and microprocessor U1; Be attempted by power port and first capacitor C 1 between the ground and second resistance R 2 of microprocessor U1 respectively.
By the high-frequency pulse signal among the high frequency filter filtering power supply Ucc.When in running order, the high-frequency pulse signal of power supply Ucc is fully by the high frequency filter filtering, and the standby detection port of microprocessor U1 detects less than low frequency pulse signal, so microprocessor U1 keeps operating state; When power supply Ucc exported discontinuous high-frequency pulse signal, the high-frequency pulse signal of power supply Ucc was fully by the high frequency filter filtering, and the output low frequency pulse signal is given the standby detection port of microprocessor U1, and microprocessor U1 enters holding state.
Therefore, judge by microprocessor U1 whether supply voltage Ucc is the consecutive pulses signal,, otherwise show the current holding state that is if then showing current is operating state.Only judge currently when be operating state at microprocessor U1, just understanding according to current alternating voltage Uin is that AC 220V or AC 110V and alternating voltage Uin are under the situation of stable state, just can send voltage multiplying rectifier and instruct to bidirectional triode thyristor VS1.
In conjunction with shown in Figure 5, in the present invention the 2nd embodiment, the voltage magnitude sample circuit comprises: anode connects the first diode D1 of ac input end, the connect negative electrode of the 5th resistance R 5 and decompression tube DW1 of its negative electrode, the voltage that is connected microprocessor U1 by the anode of decompression tube DW1 is judged port, and between the negative electrode of decompression tube DW1 and the ground, be connected in series the 6th resistance R 6 and the 7th resistance R 7 respectively between the anode of decompression tube DW1 and the ground.Adopt magnitude of voltage to the voltage of microprocessor U1 to judge port by the anode output of decompression tube DW1.
If when alternating voltage Uin was AC 220V, it was 15V that divider resistance R6 goes up dividing potential drop, the step-down amplitude of decompression tube DW1 is 5V, and then the sample voltage value of decompression tube DW1 output is: 15-5=10V.Under the same conditions, when alternating voltage Uin was AC 110V, then the last dividing potential drop of divider resistance R6 was 7.5V, and so, the sample voltage value of decompression tube DW1 output is: 7.5-5=2.5V.Therefore, concrete parameter according to the 5th resistance R 5, the 6th resistance R 6 and decompression tube DW1 in the voltage magnitude sample circuit, a threshold value is set in microprocessor U1, when the sample voltage value of input during greater than threshold value, microprocessor U1 judges that current alternating voltage Uin is AC 220V, otherwise microprocessor U1 judges that current alternating voltage Uin is AC 110V.
The voltage status sample circuit comprises: anode connects the first diode D1 of ac input end, its negative electrode connects the base stage of the first transistor T1 by the 4th resistance R 4 that is used for current limliting, the grounded emitter of this first transistor T1, collector electrode connect the stable state of microprocessor U1 and judge port.Therefore, the voltage status sample circuit is that alternating voltage Uin is sampled, at the collector electrode acquisition sample waveform signal of the first transistor T1.
Whether be in stable state by the sample waveform signal on the emitter of microprocessor U1 detection the first transistor T1, can judge alternating voltage Uin and whether be in stable state, concrete basis for estimation is identical with the 1st embodiment with principle, no longer is repeated in this description.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.