Summary of the invention
Therefore, in order to overcome above-mentioned problem defective, the invention provides a kind of main frame and display linked switch device and control method thereof, main frame opens and closes the linkage display device and opens and closes, kept power switch on the display simultaneously, be used for when computer run when temporarily not needing on the observation display content, the power supply of closing display is energy-conservation.
A kind of main frame and display linked switch device comprise placing the first control circuit in the main frame and placing the interior second control circuit of display; Described first control circuit is serially connected between the control pin Pin14 of power interface on the computer motherboard and PS-ON control circuit " PS-ON " the signal controlling end in the computer power supply, is connected with second control circuit in embedding display by connecting line; The output terminal of described second control circuit is connected with the power switch tie point of the circuit of the power supply non-contact switch of display; Described second control circuit comprises the display power supply switch; The working power of described first control circuit is provided by the standby power ATX_5VSB of computer power supply; The working power of described second control circuit is provided by the standby power CRT_5VSB of display power supply.
Above-described first control circuit, comprise first control module, with door, reverser, first triode, second triode, first resistance to the, five resistance, diode, the input end of described first control module and the input end of reverser are connected to the control pin Pin 14 of power interface on the computer motherboard simultaneously, and the input end of reverser is connected to the standby power ATX_5VSB of computer power supply by second resistance, one output terminal of first control module is connected to the input end with door, be connected with the output terminal of reverser with another input end of door, be connected in series the 4th resistance with the output terminal of door, the 4th resistance is connected with the base stage of second triode, and be connected to the standby power ATX_5VSB of computer power supply by the 3rd resistance with the output terminal of door, the emitter of second triode is connected with the ground of direct supply, the collector of second triode is connected to the standby power ATX_5VSB of computer power supply by the 5th resistance, the collector output of second triode is connected to PS-ON control circuit " PS-ON " the signal controlling end in the computer power supply, another output terminal of first control module is connected with the base stage of first triode, the collector of first triode is connected to the standby power ATX_5VSB of computer power supply, the emitter of first triode is connected to the ground of the direct supply of computing machine by first resistance, and the emitter of first triode is connected to the positive pole of diode, and the negative pole of diode is connected to the input end of second control circuit by external connection line.
Above-described second control circuit, also comprise second control module, sample circuit, analog switch, the 6th resistance, one input end of described second control module is connected to the negative pole of diode in the first control circuit by external connection line, this input end is connected with the ground of direct supply by the 6th resistance, two other input end of second control module respectively with sample circuit, the display power supply switch connects, the output terminal of second control module is connected to the switch control end of analog switch, the switch ends of analog switch is connected respectively to the power switch tie point of circuit of the power supply non-contact switch of display, and the input end of sample circuit is connected to the working power CRT_VCC of display.
The above sample circuit is used for working power to the second control module 4 after sampling scope is opened, second control module is differentiated the current open mode that is in of display according to the sampled signal of sample circuit 5, or closed condition, CRT_VCC is the working power after display is opened.
The control method of main frame and display linked switch device is characterized in that, this method may further comprise the steps:
(a) the control pin Pin 14 from the computer motherboard power interface obtains computer power supply enabling signal " PS-ON ";
(b) power supply starting signal " PS-ON " that is obtained is handled, the processing of the power supply starting signal " PS-ON " that obtains being comprised:
(b1) when power supply starting signal " PS-ON " when high level is transformed into low level;
(b11) when display is in closed condition, its display closed condition is to be controlled by the variation of power supply starting signal " PS-ON " state, export a complete pulse, trigger scope is opened, delay time allowed power supply starting signal " PS-ON " output in 2 seconds low level to power supply to computing machine, the electric power starting of computing machine, the main frame of computing machine is opened;
(b12) when display is in closed condition, its display closed condition is not to be controlled by the variation of power supply starting signal " PS-ON " state, but controlled by display power supply switch 6 on the display, export a complete pulse, trigger scope is opened, the low level of power supply starting signal " PS-ON " output does not have the power supply that time-delay is delivered to computing machine, the electric power starting of computing machine, and the main frame of computing machine is opened;
(b13) when display is in opening, keep display to open, the low level of power supply starting signal " PS-ON " output does not have the power supply that time-delay is delivered to computing machine, the electric power starting of computing machine, the main frame of computing machine is opened;
(b2) when power supply starting signal " PS-ON " during from low transition to high level, the high level of power supply starting signal " PS-ON " output does not have the power supply that time-delay is passed to computing machine, the power-off of computing machine, the Host Shutdown of computing machine, the open/close state of display remains unchanged, delayed time 10 seconds, the display of the variation control of power supply starting signal " PS-ON " state is closed;
(b21) be in opening when display, export a complete pulse, trigger scope cuts out;
(b22) be in closed condition when display, do not export pulse, keep display to close;
(c) the described time-delay of the step b2 of step b is 10 seconds, in 10 seconds, power supply starting signal " PS-ON " when high level is transformed into low level, step b12 among the step b1 of completing steps b or b13;
(d) when be the step b2 with step b close display the time, display power supply switch 6 is invalid on the display;
(e) when be the step b1 with step b open display the time, the display power supply switch 6 of delaying time after 5 seconds on the display is effective, but by the 6 temporary close displays of display power supply switch on the display.
The computer system of utilizing the present invention to realize can satisfy following requirement:
When 1, the main frame application was opened, display was opened in advance;
When 2, the main frame application was closed, display lagged behind and closed in 10 seconds, and main frame is applied for opening once more in 10 seconds, and main frame directly (must not delay time) is opened;
3, display is that the variation of the state of host power supply enabling signal " PS-ON " is opened, delayed time 5 seconds, but display power supply switch 6 ON/OFF displays on the display;
4, under improper situation, as the outage of the side in outage or main frame and the display, then asynchronous mode does not appear in power recovery aft engine and display.
Therefore, the present invention meets computing machine normal boot-strap order, kept display power supply switch on the display simultaneously, during host work, when not needing from display observed information, close display by the display power supply switch, more further economize on electricity is during Host Shutdown, its display power supply switch is invalid, guarantee that display is in closed condition,, adopt its control method ON/OFF computing machine so collection has the computer system of main frame and display linked switch device, more energy-conservation than present computing machine, easy to operate, linkage display device switching purposes in the time of can reaching the switch main frame safely and effectively, and can not break down.
Embodiment
As shown in Figure 1, a kind of main frame and display linked switch device are made up of first control circuit 101 and second control circuit 201, described first control circuit 101 is by first control module 1, with door 2, reverser 3, the first triode Q1, the second triode Q2, first resistance R, 1 to the 5th resistance R 5, diode D constitutes, described second control circuit 201 is by second control module 4, sample circuit 5, display power supply switch 6, analog switch 7, the 6th resistance R 6 constitutes, the input end of the input end of described first control module 1 and reverser 3 is connected to the control pin Pin 14 (output of " PS-ON " signal) of power interface on the computer motherboard simultaneously, and the input end of reverser 3 is connected to the standby power ATX_5VSB of computer ATX (BTX) power supply by second resistance R 2, one output terminal of first control module 1 is connected to the input end with door 2, be electrically connected with the output terminal of reverser 3 with another input end of door 2, be connected in series the 4th resistance R 4 with the output terminal of door 2, the 4th resistance R 4 is connected with the base stage of second triode (Q2), and be connected to the standby power ATX_5VSB of computer ATX (BTX) power supply by the 3rd resistance R 3 with the output terminal of door 2, the emitter of the second triode Q2 is connected with the ground of direct supply, the collector of the second triode Q2 is connected to the standby power ATX_5VSB of computer ATX (BTX) power supply by the 5th resistance R 5, the collector output of the second triode Q2 is connected to PS-ON control circuit " PS-ON " the signal controlling end in computer ATX (BTX) power supply, another output terminal of first control module 1 is connected with the base stage of the first triode Q1, the collector of the first triode Q1 is connected to the standby power ATX_5VSB of computer ATX (BTX) power supply, the emitter of the first triode Q1 is connected to the ground of the direct supply of computing machine by first resistance R 1, and the emitter of the first triode Q1 is connected to the positive pole of diode D, the negative pole of diode D (output) is connected to the input end of second control module 4 in the second control circuit 201 by external connection line, and this input end is connected with the ground of direct supply by the 6th resistance R 6, two other input end of second control module 4 is connected with sample circuit 5 respectively, display power supply switch 6, the output terminal of second control module 4 is connected to the switch control end of analog switch 7, the switch ends of analog switch 7 is connected respectively to the power switch tie point of circuit of the power supply non-contact switch of display, and the input end of sample circuit 5 is connected to the working power CRT_VCC of display.
The above first control circuit 101 is serially connected between the control pin Pin14 of power interface on the computer motherboard and PS-ON control circuit " PS-ON " the signal controlling end in computer ATX (BTX) power supply, place in the main frame, but in embeddeding computer mainboard or computer ATX (BTX) power supply, required working power provides by the standby power ATX_5VSB of computer ATX (BTX) power supply on the first control circuit 101 in main frame for it.
The above second control circuit 201 places in the display, and required working power provides by the standby power CRT_5VSB of the power supply of display on the second control circuit 201.
Sample circuit 5 is used for working power to the second control module 4 after sampling scope is opened, second control module 4 is differentiated the current open mode that is in of display according to the sampled signal of sample circuit 5, or closed condition, CRT_VCC is the working power after display is opened.
First control module 1 is made of single-chip microcomputer, program storage, data-carrier store, timer, IO interface, be used for state-detection, finish corresponding executing the task host power supply enabling signal " PS-ON " on the control pin Pin 14 of power interface on the computer motherboard.
Second control module 4 is made of single-chip microcomputer, program storage, data-carrier store, timer, IO interface, be used for the change information detection of power supply starting signal " PS-ON " state of first control circuit 101 transmission, the detection of sample circuit 5, the detection of display power supply switch 6, finish corresponding executing the task, export a complete pulse of certain width to analog switch 7 control ends according to condition, the switch of analog switch 7 is connected according to pulse width, the switch connection of analog switch 7 once, trigger scope opens or cuts out once.
The negative pole of diode D (output) is connected to the input end of second control module 4 in the second control circuit 201 in the first control circuit 101 by external connection line, when display is the interface of VGA, its external connection line (keeps pin by the PIN9 in the VGA interface of display, be used for self-defined) connect, when display is the interface of DVI-D, its external connection line connects by the PIN8 (empty pin) in the interface of the DVI-D of display, in a word from attractive in appearance, convenient, costs etc. are many-sided to be considered, its external connection line connects by self-defined pin in the interface of display or empty pin as far as possible.
Analog switch 7 is used for the former power switch PWR-SW of display of the non-contact switch of physical simulation computing machine, the power switch PWR-SW of former display is removed from pad, the switch ends of analog switch 7 is connected respectively to the power switch tie point of circuit of the power supply non-contact switch of display, and utilization CD4066 makees analog switch in this enforcement.
Display power supply switch 6 is non-locking switches, is that the power switch PWR-SW with non-contact switch on the former display is transplanted on second control module 4.
During first control module, 1 power-up initializing, respectively output level " 0 " (low level) to the base stage of the input end and the first triode Q1 of door 2, close from PS-ON control circuit " PS-ON " the signal controlling end of host power supply enabling signal " PS-ON " to computer ATX (BTX) power supply, computer ATX (BTX) power-off, the first triode Q1 ends, and the emitter of the first triode Q1 transmits the input end of low level (pass machine information) to second control circuit 201 interior second control modules 4 by diode D.
During second control module, 4 power-up initializings, at first detect information, when being low level from first control circuit 101, close display, forbid 6 operations (use) of display power supply switch, when being high level, open display, allow 6 operations (use) of display power supply switch.
In the present embodiment first resistance R, 1 to the 5th resistance R 6 respectively value be: 5K ohm, 30K ohm, 11K ohm, 220 ohm, 10K ohm, 5K ohm.
The polarity of the first triode Q1, the second triode Q2 is NPN type triode in the present embodiment, ends during its base stage input low level, and is saturated during the base stage input high level.
In the present embodiment with door 2 be two input ends with door, as long as when having an end to be input as " 0 " (low level), it is output as " 0 " (low level), has only when two input ends all are input as " 1 " (high level), it is output as " 1 " (high level).
When the base stage of first control module, 1 output low level to the first triode Q1, the first triode Q1 ends, and emitter output low level, the low level of emitter are delivered to the input end of second control module 4 by diode D; When the base stage of first control module, 1 output high level to the first triode Q1, the first triode Q1 is saturated, its emitter output high level, and the high level of emitter is delivered to the input end of second control module 4 by diode D.
When first control module 1 output " 0 " (low level) to an input end of door 2, when " no matter PS-ON " signal exports level with door another input end of 2 for " 0 " (low level) or " 1 " (high level) to by reverser 3, be output as " 0 " (low level) with door 2, the second triode Q2 ends, the collector output high level of the second triode Q2, the high level of collector output causes PS-ON control circuit " PS-ON " the signal controlling end in computer ATX (BTX) power supply, computer ATX (BTX) power-off, main frame is closed.
When first control module 1 output " 1 " (high level) to an input end of door 2, when " PS-ON " signal is " 1 " (high level), " PS-ON " signal by reverser 3 output " 0 " (low levels) to another input end of door 2, be output as " 0 " (low level) with door 2, the second triode Q2 ends, the collector output high level of the second triode Q2, the high level of collector output causes PS-ON control circuit " PS-ON " the signal controlling end in computer ATX (BTX) power supply, computer ATX (BTX) power-off, main frame is closed.
When first control module 1 output " 1 " (high level) to an input end of door 2, when " PS-ON " signal is " 0 " (low level), " PS-ON " signal by reverser 3 output " 1 " (high level) to another input end of door 2, be output as " 1 " (high level) with door 2, the second triode Q2 is saturated, the collector output low level of the second triode Q2, the low level of collector output causes PS-ON control circuit " PS-ON " the signal controlling end in computer ATX (BTX) power supply, computer ATX (BTX) power supply opening, main frame is opened.
As described in Fig. 2,3, first control module, 1 control flow is as follows
A) initialization, first timer is set, and the initial value of putting first timer is zero, the base stage of output low level to the first triode Q1, output low level to an input end of door 2, forbid " PS-ON " signal by with door 2, the open interruption allows the before and after edge application of " PS-ON " signal to interrupt;
B) read " PS-ON " signal, differentiate the state of power supply starting signal " PS-ON ";
C) being high level, is off signal, enters next step, otherwise is starting-up signal, changes step b over to;
D) read first timer, differentiate first timer timing size; Greater than 10 seconds
E) the first timer timing entered next step greater than 10 seconds, otherwise changed step b over to;
F) close first timer, and to give the first timer assignment be zero;
G) output low level to an input end of door 2, forbid " PS-ON " signal by with door 2, change step b over to;
H) the before and after edge application interrupt request of " PS-ON " signal enters next step;
I) read " PS-ON " signal, differentiate the state of power supply starting signal " PS-ON ", low level is a starting-up signal, enters next step, otherwise changes step m over to;
J) base stage of output high level to the first triode Q1;
K) whether read first timer, differentiating the first timer timing is zero, is zero (illustrate first timer is in close), delay time after 2 seconds the output high level to the input end of door 2, allow " PS-ON " signal to pass through, interrupt returning master routine, otherwise enter next step;
1) close first timer, and assignment is zero again, interrupts returning master routine;
M) base stage of output low level to the first triode Q1 is opened the first timer timing, interrupts returning master routine.
As described in Fig. 4,5, second control module, 4 control flows are as follows
A) initialization, first timer is set, and to put initial value be zero, bidding note unit 1, indexing unit 2, and the content of tagging unit 1, indexing unit 2 is " 0 ", and output low level is to the control end of analog switch 7, and the switch of analog switch 7 disconnects, forbid the 6 application interruptions of display power supply switch, enter next step;
B) read sample circuit 5, differentiate display and whether be in open mode, yes, export the control end of a complete pulse, close display, enter next step, otherwise display is in closed condition, directly spout into next step to analog switch 7;
C) read the state of the power supply starting signal " PS-ON " that transmits from first control circuit 101;
D) being low level, illustrating that power supply starting signal " PS-ON " is a high level, is computer ATX (BTX) power-off signal, enter next step, otherwise be high level, illustrate that power supply starting signal " PS-ON " is low level, be computer ATX (BTX) electric power starting signal, change step j over to;
E) content of tagging unit 2 is " 0 ", reads indexing unit 1, enters next step when the content of indexing unit 1 is " 1 ", otherwise changes step c over to;
F) whether read second timer, differentiating the second timer timing is zero, is zero (illustrate second timer is in close), opens the second timer timing, change step c over to, otherwise second timer timing enters next step;
G) whether differentiate the second timer timing greater than 10 seconds, yes, enter next step, otherwise, allow 6 applications of display power supply switch to interrupt, change step c over to;
H) reading sample circuit 5, differentiate display and whether be in open mode, is to be in open mode, export the control end of a complete pulse, close display, enter next step to analog switch 7, otherwise display is in closed condition, directly spouts into next step;
I) forbid the 6 application interruptions of display power supply switch, close second timer, and assignment is zero again, the content of tagging unit 1 is " 0 ", changes step c over to;
J) close second timer, and assignment is zero again, the content of tagging unit 1 is " 1 ", enters next step;
K) read indexing unit 2, whether the content of differentiating indexing unit 2 is " 0 ", yes, enters next step, otherwise, change step c over to;
L) reading sample circuit 5, differentiate display and whether be in closed condition, is to be in closed condition, export the control end of a complete pulse, open display, enter next step to analog switch 7, otherwise display is in open mode, directly spouts into next step;
M) content of tagging unit 2 is " 1 ", delays time to allow 6 applications of display power supply switch to interrupt after 5 seconds, changes step c over to;
N) display power supply switch 6 application interrupt request enter next step;
O) complete pulse of output opens or closes display to the control end of analog switch 7, interrupts returning master routine.
By above-mentioned as can be known described:
A) during the host-initiated application, the power supply of the leading main frame of power supply of display was opened in 2 seconds, and just the leading main frame of display was opened in 2 seconds;
B) during Host Shutdown, display hysteresis main frame cut out in 10 seconds, opened main frame in 10 seconds once more, and main frame does not have delayed start-up;
C) the host-initiated application is opened display and is allowed to use display power supply switch 6 any ON/OFF displays on the display after 5 seconds to the Host Shutdown in 10 seconds;
D) the State Control display of host power supply enabling signal " PS-ON " is closed or main frame outage control display is closed, and it is invalid that its display is closed on the display of back display power supply switch 6.
Using method
1) open main frame, the automatically leading main frame of display was opened in 2 seconds;
2) during Shutdown Hosts, display hysteresis main frame cut out in 10 seconds, opened main frame in 10 seconds once more, and main frame does not have delayed start-up;
3) after main frame was opened, the user as required can be by the 6 any ON/OFF displays of display power supply switch on the display;
4) outage of Host Shutdown or main frame is after 10 seconds, and display is closed, and display power supply switch 6 is invalid on the display, thereby after guaranteeing main frame shutdown or main frame outage, can not open display by 6 mistakes of display power supply switch on the display.