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 AVS08 product, is suitable for applying in the Switching Power Supply below 200W.This external member is also referred to as automatic voltage switch, and English is abbreviated as AVS.
As shown in Figure 1, be a typical application circuit schematic diagram of AVS08.AVS08 is mainly that the controller IC 1 of AVSIBCP08 and bidirectional triode thyristor device VS1 two parts that model is AVS08CB or AVS08CB1 form by model.
The series circuit that resistance R 4, resistance R 5, resistance D5 and capacitor C 4 form, for controller IC 1 provides supply voltage.The 1st pin Vss inside of controller IC 1 is a shunt regulator, the output of provide-9V (maximum current Iss is 25mA), the resitstance voltage divider being formed by resistance R 1 and resistance R 2, as the AC line voltage distribution of measuring input, the voltage on the 8th pin of controller IC 1 is changed with ac input voltage.The control function of AVS08 has been compared with threshold voltage by AC line voltage distribution.Crest voltage on 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 within the scope of two AC line voltage distributions.The excursion of the first voltage is (AC circuit rated voltage is 110V, 60Hz) from 88V to 132V; The excursion of second voltage is from 176 to 276V (AC supply line rated voltage is 220V, 50Hz).Input voltage is in first voltage range time, and controller IC 1 drives bidirectional triode thyristor VS1 conducting, and bridge road is operated in a times die pressing type; Input voltage is in second voltage scope time, bidirectional triode thyristor VS1 blocking-up, and input circuit is at full-bridge rectification work pattern.Though be input be the 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, cause automatic voltage switch to realize cost higher.
2, the detection port that there is no holding state and open state on controller IC 1, does not configure readiness control circuit yet, and the oneself power consumption of whole automatic voltage switch is larger.
Summary of the invention
For overcoming the problem of prior art, the present invention proposes a kind of automatic voltage switch and its implementation, by the current AC-input voltage of automatic judgement, be the first voltage or second voltage, and when detecting AC-input voltage in stable state, send voltage multiplying rectifier instruction and control output dc voltage, safe and reliable and to realize cost lower.
The present invention adopts following technical scheme to realize: a kind of automatic voltage switch, and it comprises: for the ac input end of input ac voltage, alternating voltage is the first voltage or second voltage; For exporting the DC output end of a direct voltage; Be connected to rectifier bridge and bidirectional triode thyristor between ac input end and DC output end in turn; The alternating voltage amplitude that is used for sampling, the voltage magnitude sample circuit of output sample voltage value; Be used for the alternating voltage waveform of sampling, the voltage status sample circuit of output sample waveform signal; For judging that according to sample voltage value the alternating voltage of ac input end is the first voltage or second voltage, according to sample waveform signal, judge that whether alternating voltage is in stable state, and be the first voltage and send the microprocessor of voltage multiplying rectifier instruction during in stable state at alternating voltage; Wherein, voltage magnitude sample circuit connects the voltage of microprocessor and judges port, and 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 arrives the second time of predetermined amplitude by detecting sample waveform signal in the ascent stage/decline stage of current period, and the very first time that arrives predetermined amplitude in the ascent stage/decline stage of upper one-period, whether the difference that judges the second time and the very first time is a fixed value, if so, when being the first voltage, sends alternating voltage voltage multiplying rectifier instruction.
In a preferred embodiment, voltage magnitude sample circuit comprises: the first diode of anodic bonding ac input end, the voltage that its negative electrode series connection the 5th resistance connects microprocessor is judged port, and the voltage of microprocessor is judged between port and ground and connects the 7th resistance.
In a preferred embodiment, voltage status sample circuit comprises: the first diode of anodic bonding ac input end, the stable state that its negative electrode connects microprocessor by the 4th resistance is judged port, and stable state is judged between port and ground and connects the tenth resistance.
In a preferred embodiment, described automatic voltage switch also comprises: the power supply that descends to export continuous pulse signal in working order, exports discontinuous pulse signal under holding state; Power supply connects the power port of microprocessor by power supply circuits, in running order by judging that whether power supply is that continuous pulse signal judges whether by microprocessor.
In a preferred embodiment, described automatic voltage switch also comprises: be connected to the standby sample circuit between the standby detection port of power supply and microprocessor, standby sample circuit comprises that former limit connects the transformer of power supply, the secondary of transformer connects the anode of the second diode, between the negative electrode of the second diode and the standby detection port of microprocessor, is connected high frequency filter.
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, output sample voltage value, is the first voltage or second voltage by microprocessor according to the alternating voltage of sample voltage value judgement ac input end;
By voltage status sample circuit sampling alternating voltage waveform, output sample waveform signal, by microprocessor, according to sample waveform signal, judge that whether alternating voltage is in stable state, and be the first voltage and send voltage multiplying rectifier instruction during in stable state in alternating voltage;
By bidirectional triode thyristor, according to voltage multiplying rectifier instruction conduction and cut-off, control connection is selected different working modes at the rectifier bridge of ac input end, controls DC output end output dc voltage.
In a preferred embodiment, judge alternating voltage whether the step in stable state comprise:
Detect sample waveform signal and in the ascent stage/decline stage of current period, arrive the second time of predetermined amplitude, and the very first time that arrives predetermined amplitude in the ascent stage/decline stage of upper one-period;
Whether the difference that judges the second time and the very first time is a fixed value, and if so, when alternating voltage is the first voltage, microprocessor sends voltage multiplying rectifier instruction.
In a preferred embodiment, the implementation method of described automatic voltage switch also comprises step:
Whether detect power supply is continuous pulse signal, when power supply being detected and be discontinuous pulse signal, control microprocessor and enter holding state, when power supply to be detected be continuous pulse signal, control microprocessor and keep operating state or enter operating state by holding state;
Wherein, power supply is exported down in working order continuous pulse signal, under holding state, is exported discontinuous fluctuating signal.
Compared with prior art, the present invention has following beneficial effect:
1, by voltage magnitude sample circuit, automatically to identify alternating voltage Uin be 110V/220V to microprocessor of the present invention, whether and it is stable by microprocessor, by voltage status sample circuit, to detect alternating voltage Uin, only have in the situation of the alternating voltage Uin inputting in stable state, microprocessor just sends voltage multiplying rectifier instruction and controls output dc voltage, therefore, can effectively detect ac input end loose contact and avoid judging by accident alternating voltage Uin, there is 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, without increasing extra stand-by circuit, by microprocessor, carry out standby (holding state) and start detection (operating state), only have when in running order, microprocessor just can send voltage multiplying rectifier instruction, therefore, the circuit structure of realizing idle function is simple, realizes cost lower.
3, in the present invention, microprocessor adopts single-chip microcomputer to realize, and realizes simple and has advantages of low in energy consumption.
Accompanying drawing explanation
Fig. 1 is the circuit diagram of existing automatic voltage switch;
Fig. 2 is the circuit diagram of automatic voltage switch of the present invention the 1st embodiment;
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 of the present invention the 2nd embodiment.
Embodiment
As shown in Figure 2, in the 1st embodiment of the present invention, automatic voltage switch comprises: for the ac input end of input ac voltage Uin, alternating voltage Uin is the first voltage or second voltage, for exporting 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 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 voltage magnitude sample circuit, the stable state of microprocessor U1 judges that port (the 2nd pin) connects ac input end by 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 standby sample circuit, the control output end mouth of microprocessor U1 (the 5th pin) connects the control end of bidirectional triode thyristor VS1 by control command output circuit.
When alternating voltage Uin is the first voltage, microprocessor U1 sends voltage multiplying rectifier order-driven bidirectional triode thyristor VS1 conducting, and rectifier bridge DB1 is operated in a times die pressing type; When alternating voltage Uin is second voltage, bidirectional triode thyristor VS1 blocking-up, rectifier bridge DB1 is operated in full-bridge rectification pattern.
The excursion of the first voltage is from 88V to 132V; The excursion of second voltage is from 176 to 276V.First voltage of take below further illustrates as AC 220V as example as AC110V, second voltage.
Wherein, voltage magnitude sample circuit comprises: the first diode D1 of anodic bonding ac input end, the voltage that its negative electrode series connection the 5th resistance R 5 connects microprocessor U1 is judged port, and the voltage of microprocessor U1 is judged between port and ground and connects the 7th resistance R 7.
Alternating voltage Uin is after the first diode D1 rectification, the 5th resistance R 5 being connected in series and the 7th resistance R 7 dividing potential drops, dividing potential drop in the 7th resistance R 7 is sample voltage value, sample voltage value is sent into the voltage of microprocessor U1 and judged port, by microprocessor U1, according to sample voltage value, judging current alternating voltage Uin is AC 220V or AC is 110V; When alternating voltage Uin is AC 110V, the control output end mouth of microprocessor U1 sends voltage multiplying rectifier instruction and controls bidirectional triode thyristor VS1 conducting.
If when alternating voltage Uin is AC 220V, the dividing potential drop in the 7th resistance R 7 is 15V; Under the same conditions, when alternating voltage Uin is AC 110V, the dividing potential drop in the 7th resistance R 7 is 7.5V.Therefore, a threshold value is set in microprocessor U1, when the sample voltage value of input is 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, 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 in the tenth resistance R 10 is sample waveform signal, by microprocessor U1, whether detects voltage division signal in the tenth resistance R 10 in stable state.
Shown in Fig. 3, abscissa t represents the time, and ordinate U represents the amplitude of sample waveform signal, i.e. voltage division signal in the tenth resistance R 10.Alternating voltage Uin is sinusoidal wave; Through the first diode D1 rectification, by the alternating voltage Uin after 10 pairs of rectifications of the 4th resistance R 4 serial connection the tenth resistance R, carry out dividing potential drop, the voltage division signal in the tenth resistance R 10 is sample waveform signal.Therefore, the stable state of microprocessor U1 judges that port is by detecting sample waveform signal, and whether the waveform of judgement sample waveform signal within each continuous cycle is stable, can judge that whether alternating voltage Uin is stable.Only, in the situation that judging alternating voltage Uin in stable state, the control output end eloquence of microprocessor U1 can be sent voltage multiplying rectifier instruction and control bidirectional triode thyristor VS1, now DC output end output dc voltage.
Specifically, Wave data for sample waveform signal, microprocessor U1 reads respectively waveform in each cycle and at ascent stage (can be also the decline stage), reaches the time of some amplitudes, utilize the time difference that reaches respectively identical amplitude in adjacent 2 cycles, judge whether the time difference is fixed value, if so, show that alternating voltage Uin is in stable state.Such as, in current period, waveform reaches the time t1 of a definite amplitude at ascent stage, and in adjacent upper one-period, waveform reaches the time t2 of a definite amplitude at ascent stage, so, time difference T=t1-t2.By microprocessor U1, judge whether time difference T equals a fixed value.Once microprocessor U1 detects time difference T, equal fixed value, show that the alternating voltage Uin of current input, in stable state, sends voltage multiplying rectifier instruction.
In a preferred embodiment, poor computing time time that waveform arrives zero point in the decline stage within each cycle by detecting sample waveform signal.
Wherein, bidirectional triode thyristor VS1 sampling pulse triggering mode or direct current triggering mode.
In a preferred embodiment, control command output circuit comprises: the control output end mouth serial connection of microprocessor U1 connects the base stage of transistor seconds T2 for the 8th resistance R 8 of current limliting, the grounded emitter of transistor seconds T2, collector series connection connects the control end of bidirectional triode thyristor VS1 for the 9th resistance R 9 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.
Shown in Fig. 4, power supply Ucc exports down in working order continuous pulse signal, under holding state, exports discontinuous pulse signal.
Wherein, power supply circuits comprise: limit connects the transformer TR1 of power supply Ucc; The 3rd diode D3 of anodic bonding transformer TR1 secondary; Be serially connected between the negative electrode of the 3rd diode D3 and the standby detection port of microprocessor U1 the 3rd resistance R 3 for current limliting.In working order, for the power supply Ucc of the continuous square-wave signal of high frequency is 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.
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 negative electrode of the second diode D2 and the standby detection port of microprocessor U1, be connected high frequency filter.Specifically, high frequency filter comprises: be serially connected in the first resistance R 1 between the negative electrode of the second diode D2 and the power port of microprocessor U1; Be attempted by respectively power port and the first capacitor C 1 between ground and the second resistance R 2 of microprocessor U1.
High-frequency pulse signal in high frequency filter filtering power supply Ucc.When in running order, the high-frequency pulse signal of power supply Ucc is completely by high frequency filter filtering, and the standby detection port of microprocessor U1 can't detect low frequency pulse signal, therefore microprocessor U1 keeps operating state; When power supply Ucc exports discontinuous high-frequency pulse signal, the high-frequency pulse signal of power supply Ucc is completely by high frequency filter filtering, and output low frequency pulse signal is to the standby detection port of microprocessor U1, and microprocessor U1 enters holding state.
Therefore, by microprocessor U1, judge whether supply voltage Ucc is continuous pulse signal, if so, showing current is operating state, otherwise shows that current is holding state.Only microprocessor U1 judgement is current while be operating state, just understanding be in AC 220V or AC 110V and the situation of alternating voltage Uin in stable state according to current alternating voltage Uin, just can send voltage multiplying rectifier instruction to bidirectional triode thyristor VS1.
Shown in Fig. 5, in the present invention the 2nd embodiment, voltage magnitude sample circuit comprises: the first diode D1 of anodic bonding ac input end, the negative electrode of its negative electrode series connection the 5th resistance R 5 and decompression tube DW1, voltage by the anodic bonding microprocessor U1 of decompression tube DW1 is judged port, and between the negative electrode of decompression tube DW1 and ground, be connected in series respectively the 6th resistance R 6 and the 7th resistance R 7 between the anode of decompression tube DW1 and ground.Anode output by decompression tube DW1 adopts magnitude of voltage to the voltage of microprocessor U1 to judge port.
If when alternating voltage Uin is AC 220V, the upper dividing potential drop of divider resistance R6 is 15V, the Amplitude of Hypotensive of decompression tube DW1 is 5V, and the sample voltage value of decompression tube DW1 output is: 15-5=10V.Under the same conditions, when alternating voltage Uin is AC 110V, the upper dividing potential drop of divider resistance R6 is 7.5V, and so, the sample voltage value of decompression tube DW1 output is: 7.5-5=2.5V.Therefore, according to the design parameter of the 5th resistance R 5, the 6th resistance R 6 and decompression tube DW1 in voltage magnitude sample circuit, a threshold value is set in microprocessor U1, when the sample voltage value of input is 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.
Voltage status sample circuit comprises: the first diode D1 of anodic bonding ac input end, its negative electrode is by connecting the base stage of the first transistor T1 for the 4th resistance R 4 of current limliting, the grounded emitter of this first transistor T1, collector electrode connects the stable state of microprocessor U1 and judges port.Therefore, voltage status sample circuit is that alternating voltage Uin is sampled, at the collector electrode acquisition sample waveform signal of the first transistor T1.
By the sample waveform signal on the emitter of microprocessor U1 detection the first transistor T1, whether in stable state, whether can judge alternating voltage Uin in stable state, concrete basis for estimation is identical with the 1st embodiment with principle, is no longer repeated in this description.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.