Embodiment
As shown in Figure 1, the utility model comprises the single-chip microprocessor MCU control circuit, first via bus UPS power supply output detection circuit, the second tunnel bus UPS power supply output detection circuit, first via synchronizing signal output circuit, the second tunnel synchronizing signal output circuit, first via switching signal output circuit, the second tunnel switching signal output circuit, condition indication circuit and the accessory power supply that is used to provide above-mentioned each built-up circuit operating voltage; The employing signal output separately of two-way bus UPS power supply output detection circuit inserts signal input pin corresponding on the single-chip microprocessor MCU control circuit; Two-way synchronizing signal output pin on single-chip microprocessor MCU control circuit correspondence separately is connected to the synchronizing signal output circuit; Two-way switching signal output pin on single-chip microprocessor MCU control circuit correspondence separately is connected to the switching signal output circuit; Simultaneously, the demonstration of single-chip microprocessor MCU control circuit control indicating circuit.
The utility model adopts the working method of firsting impressions are strongest, when first via bus is opened earlier, this isochronous controller at first detects the output of first via bus, voltage and frequency to first via bus are measured, if detect normal, then send the switching signal of first via bus, and light the indicator light on this road, carry out genlock simultaneously, and send synchronizing signal to the second tunnel bus, make the phase place and the first via of the second tunnel bus synchronous, when the output frequency that detects the second tunnel bus is consistent with phase place, send the switching signal of the second tunnel bus; If the second tunnel bus is start earlier, then phase-locked the second tunnel bus is sent synchronizing signal to first via bus,
As shown in Figure 2, MCU software control FB(flow block) in the utility model, idiographic flow is: enter init state after starting working, begin to carry out the two-way input and detect, circuit adopts the working method of firsting impressions are strongest, powering on simultaneously as the two-way bus, then to change first via bus be main, then main electrical waveform is analyzed, judged whether current loop voltage is unusual, if electric voltage exception, then put main electrical anomaly sign, simultaneously slave is switched to main frame; If voltage is not unusual, then do not send the output control signal, all send synchronous control signal afterwards to slave, through behind measurement module and the display module again to the main electrical waveform analysis corresponding step behind the Xingqi of going forward side by side.
As shown in Figure 3, be the accessory power supply schematic diagram of utility model, mainly by power supply CN1, CN2, switch SW 1, SW2, fuse F1, F2, capacitor C 1~C4, rectifier diode D1, D4, D5, D8, transformer T1, T2, general voltage stabilizing chip U1 is formed by connecting.Power supply CN1 and switch SW 1, fuse F1, primary coil of transformer T1 is formed series loop; Power supply CN2 and switch SW 2, fuse F2, primary coil of transformer T2 is formed series loop; The anode of the terminating diode D1 of the same name of transformer T1 secondary coil, behind the filter circuit that the anode of the different name terminating diode D4 of transformer T1 secondary coil, the negative pole of diode D1, D4 compose in parallel by capacitor C 1 and C2 as the input Vin of pressurizer U1; The anode of the terminating diode D5 of the same name of transformer T2 secondary coil, the anode of the different name terminating diode D8 of transformer T2 secondary coil, as the input Vin of pressurizer U1, realize CN1 and CN2 two-way Alternating Current Power Supply behind the filter circuit that the negative electrode of diode D5, D8 also composes in parallel by capacitor C 1 and C2; Output 5V DC power supply is for the single-chip microprocessor MCU control circuit behind the filter circuit that the output 3 of pressurizer U1 composes in parallel through capacitor C 3, C4, the middle equal ground connection that winds the line of the secondary coil of the GND pin of pressurizer U1, capacitor C 1 negative pole, the capacitor C 3 in parallel with the C2 negative pole in parallel with C4, transformer T1.Also available other voltage-stabilizing output circuits commonly used of above-mentioned accessory power supply are realized the output of 5V direct current.
Every road bus UPS power supply output detection circuit is by voltage sampling circuit, frequency and phase place are surveyed the inspection circuit and are formed, voltage sampling circuit as shown in Figure 3, transformer coil in the present embodiment in the voltage sampling circuit common source circuit, mainly by transformer T1 secondary coil and rectifier diode D2, D3, D6, D7 is formed by connecting, the end of the same name of transformer T1 secondary coil exchanges the sampling input of AC1 as the first via, connect the anode of diode D2, the anode of the different name terminating diode D3 of transformer T1 secondary coil, diode D2, the negative pole output of D3 is as the sampled voltage signal U-AC1 of first via alternating voltage; The end of the same name of transformer T2 secondary coil is imported as the second tunnel sampling that exchanges AC2, connect the anode of diode D6, the anode of the different name terminating diode D7 of transformer T2 secondary coil, the negative pole output of diode D6, D7 is as the sampled voltage signal U-AC2 of the second road alternating voltage.
As shown in Figure 4, for frequency and phase place survey inspection circuit theory diagrams, mainly by resistance R 3~R6, R9, R10, R13, R17~R20, R23, R27, triode Q2, Q4, capacitor C 5, C7, operational amplifier U3A, U3B are formed by connecting.Wherein be connected to in-phase end 3 pin that resistance R 5 is delivered to amplifier U3A after the loop dividing potential drop of the sampled signal of first via interchange AC1 by R4 and R9 series connection ground connection composition, the anti-phase effect of U3A holds 2 pin by resistance R 13 ground connection; Positive feedback resistor R3 is connected between output 1 pin of in-phase end 3 pin of amplifier U3A and U3A, to prevent producing repeatedly saltus step at the zero crossing offset voltage, the AC1 that is used for frequency and phase-detection carried out the square-wave signal that zero balancing produces a zero crossing saltus step through amplifier U3A, this signal is received the base stage of triode Q2 by resistance R 10 by output 1 pin of U3A, the collector electrode of triode Q2 is linked into 13 pin of single-chip microprocessor MCU through filtering capacitor C 5 back output F-AC1, and through the 5V level of resistance R 6 outputs for single-chip microcomputer, the grounded emitter of triode Q2.The frequency of the second tunnel interchange AC2 is identical with the first via with principle with phase place survey inspection loop method of attachment, just connects different components and parts and corresponding connecting pin, specifically sees accompanying drawing, and above-mentioned operational amplifier can be selected general double operational integrated chip for use; Same said frequencies and phase place survey inspection also available other a-c cycles commonly used of circuit and phase place survey inspection circuit is realized.
As shown in Figure 5, single-chip microprocessor MCU control circuit schematic diagram for utility model, mainly by single-chip microprocessor MCU, crystal oscillator CY1, resistance R 1, R2, R7, R8, R11, R12, R14~R16, R21, R22, R24, R25, R28~R34, capacitor C 6, C8~C12, LED 1~LED3, diode D9, D10, triode Q1, Q3, Q5, Q6 and photoelectrical coupler U2, U4, U6, U7 form.Single-chip microprocessor MCU adopts the PIC16F73 of MICROCHIP company.9,10 pin that crystal oscillator CY1 and capacitor C 10, C11 form crystal oscillating circuit and single-chip microprocessor MCU connect to form the clock internal circuit; Power supply is by resistance R 33 series capacitance C12 ground connection, and 1 pin of single-chip microprocessor MCU is connected between capacitor C 12 and the resistance R 33 and forms reset circuit; The A/D that the sampled signal U-AC1 of first via alternating voltage inserts single-chip microcomputer U5 inside after by the resistance R 24, R29 dividing potential drop of series connection ground connection changes 3 pin, voltage measurement for first via output AC, the 5V power supply is by the series connection road of the high-frequency filter capacitor C8 composition of clamp diode D10 and ground connection, insert 3 pin of single-chip microcomputer U5 between diode D10 and the capacitor C 8 simultaneously, to leach the clutter in the sampled signal; The A/D that the sampled signal U-AC2 of the second road alternating voltage inserts single-chip microcomputer U5 inside after by the resistance R 25, R30 dividing potential drop of series connection ground connection changes 2 pin, it is the voltage measurement of the second road output AC, the 5V power supply is by the series connection road of the high-frequency filter capacitor C9 composition of clamp diode D9 and ground connection, insert 2 pin of single-chip microcomputer U5 between diode D9 and the capacitor C 9 simultaneously, to leach the clutter in the sampled signal; F-AC1 is a first via incoming frequency phase measurement signal, is connected to 13 pin of the inner CCP1 of single-chip microcomputer; F-AC2 is the second tunnel incoming frequency phase measurement signal, is connected to 12 pin of the inner CCP2 of single-chip microcomputer; 28 pin of single-chip microcomputer U5 are as first via AC synchronous control signal output ends, be connected to the base stage of triode Q1 by resistance R 8, the grounded emitter of Q1, the collector electrode of Q1 connects the negative pole of light-emitting diode among the photoelectrical coupler U2, the 5V power supply connects the positive pole of this diode of giving out light by resistance R 2, the grounded emitter of phototriode among the photoelectrical coupler U2, collector electrode meet the resistance R 1 back output control signal UPS1-SYNC that is added with the 5V power supply; 27 pin of single-chip microcomputer U5 are that the first via exchanges the switch-over control signal output, export control signal UPS1-SW behind the circuit by the same structure of forming with described R8, R1, R2, Q1, U2 is made up of resistance R 16, R12, R14, triode Q3, photoelectrical coupler U4; 26 pin of single-chip microcomputer U5 are the second the tunnel to exchange the switch-over control signal output, export control signal UPS2-SYNC behind the circuit by the same structure of forming with described R8, R1, R2, Q1, U2 is made up of resistance R 28, R21, R22, triode Q5, photoelectrical coupler U6; 25 pin the second tunnel of single-chip microcomputer U5 exchange the switch-over control signal output, export control signal UPS2-SW behind the circuit by the same structure of forming with described R8, R1, R2, Q1, U2 is made up of resistance R 34, R31, R32, triode Q6, photoelectrical coupler U7.
Condition indication circuit is made up of current-limiting resistance and light-emitting diode, power supply inserts the positive pole of light-emitting diode through current-limiting resistance, the negative pole of light-emitting diode connects single-chip microcomputer U5 and goes up corresponding status indication information output pin, the 5V power supply is through the positive pole of current-limiting resistance R7 access LED 1, and the negative pole of LED 1 inserts 24 pin of single-chip microprocessor MCU; The 5V power supply is through the positive pole of current-limiting resistance R11 access LED 2, and the negative pole of LED 2 inserts 23 pin of single-chip microprocessor MCU; The 5V power supply is through the positive pole of current-limiting resistance R15 access LED 3, and the negative pole of LED 3 inserts 22 pin of single-chip microprocessor MCU.
1 pin is a reset circuit, by R33 C12 is charged when powering on, and finishes to reset; 2,3 pin are inner A/D conversion, and the sample conversion of two-way input voltage is become digital signal, carry out computing; 9,10 pin and external circuit are formed single-chip microprocessor MCU clock internal circuit; The CCP1 of 13 pin single-chip microcomputer inside, the capture function pin receives first via incoming frequency phase measurement signal F-AC1, becomes measure cycle time to AC signal, and produces interruption in the zero crossing skip signal; The CCP2 of 12 pin single-chip microcomputer inside, the capture function pin receives the second tunnel incoming frequency phase measurement signal F-AC2, becomes measure cycle time to AC signal, and produces interruption in the zero crossing skip signal; 28 pin are first via AC synchronous control signal output ends, when the second the tunnel exchanges to master control, send synchronizing signal and carry out phase-locked synchronous to first via main frame; 27 pin are first via AC synchronous control signal output ends, when the second the tunnel exchanges to master control, and the control switching signal that single-chip microcomputer sends behind phase-locked synchronous No. the second main frame of first via main frame; 26 pin are the second tunnel AC synchronous control signal output ends, when the first via exchanges to master control, send synchronizing signal and carry out phase-locked synchronous to first via main frame; 25 pin are the second tunnel AC synchronous control signal output ends, when the first via exchanges to master control, and the control switching signal that single-chip microcomputer sends behind the phase-locked synchronous first via main frame of No. the second main frame; 24 pin are that the first via exchanges the master control indicator light, exchange and run earlier or the second tunnel be after main frame is deactivated when single-chip microcomputer detects the first via, and just often, 24 pin transfer low level to by high level, and LED1 lights by resistance R 7 current limlitings; 23 pin are the second tunnel interchange master control indicator light, and the second tunnel interchange is opened earlier or the first via is after main frame is deactivated when single-chip microcomputer detects, and just often, 23 pin transfer low level to by high level, and LED2 lights by resistance R 11 current limlitings; 22 pin are two-way AC synchronous run indicator, exchange all normally when single-chip microcomputer detects two-way, and when finishing phase-locked switching, 22 pin transfer low level to by high level, and LED3 lights by resistance R 15 current limlitings.