Power switch device

The invention provides a power switch device for electronic systems equipped having a power module. The power switch device includes a first switch for activating a first signal, a second switch for activating a second signal, a logic judging module for receiving the first and second signals for logic algorithm processing, and a control module electrically connected to the electronic system and the logic judging module. The control module is adapted to generate and transmit on and off signals of the electronic system to the logic judging module. Further, the control module controls switching on the power module according to the off signal and the logic algorithm processing based on the first signal, and also controls switching off the power module according to the on signal and the logic algorithm processing based on the first and second signals.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to a power switch device, and more particularly to a power switch device that switch on/off a power module of an electronic system according to logic judging result.

2. Description of Related Art

An enterprise server normally operates 24 hours a day. However, as a power button is protrudingly disposed at front panel of a server, the power button may be accidentally touched, thereby leading to unexpected shutdown of the server. To reduce such a risk, the power button can be disabled in BIOS, but functions of other buttons disposed at the front panel of the server are also disabled at the same time. Under some special circumstances where a server needs to be shut down and then restarted, the server must be restarted so as to enable the power button in BIOS. Then, the server can be shut down and started again by pressing the power button. The above-described complicated processes are not convenient for users to conduct operation.

Alternatively, a casing structure can be disposed at position of the power button for protecting the power button from being accidentally touched by users. However, the casing structure increases the cost. Also, under some special circumstances where the power button needs to be pressed, the casing structure must be removed and after the power button is pressed, the casing structure needs to be assembled again. If the casing structure is not suitably disposed at position, the power button may also be accidentally touched or damaged. Therefore, the casing structure is also not convenient for users to conduct operation.

Therefore, there is a need to provide a power switch device that can prevent accidental touch of the power button and facilitate operation of the power switch.

SUMMARY OF THE INVENTION

Accordingly, an objective of the present invention is to provide a power switch device that can efficiently prevent accidental touch of the power button and accordingly prevent unexpected power off.

Another objective of the present invention is to provide a power switch device that can facilitate operation of power on and off.

In order to attain the above and other objectives, the present invention provides a power switch device for an electronic system having a power module. The power switch device of the present invention comprises a first switch for activating a first signal; a second switch for activating a second signal; a logic judging module electrically connected to the first switch and the second switch for receiving the first signal and the second signal so as to perform logic algorithm processing; and a control module electrically connected to the electronic system and the logic judging module for generating an on or off signal corresponding to the on or off state of the electronic system, transmitting the on or off signal to the logic judging module, switching on the power module according to the off signal and logic algorithm processing based on the first signal, and switching off the power module according to the on signal and the logic algorithm processing based on the first signal and the second signal.

According to the present invention, the logic judging module performs logic judgment according to the first signal generated by the first switch when the electronic system stays is off, and transmits the result of the logic judgment to the control module such that the control module generates a control signal. On the other hand, when the electronic system is on, the first signal generated by the first switch, the second signal generated by the second switch and the on signal generated by the control module are logically judged by the logic judging module and the result is transmitted to the control module such that the control module generates a control signal to control the power module of the electronic system.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

The following illustrative embodiments are provided to illustrate the disclosure of the present invention, these and other advantages and effects can be apparent to those skilled in the art after reading the disclosure of this specification.

FIG. 1is a block diagram of a power switch device according to the present invention. The power switch device1of the present invention is applied to an electronic system2having a power module20. The power switch device1includes a first switch10, a second switch11, a control module12and a logic judging module13.

In the present embodiment, the first switch10can be such as a first power button for activating a first signal. The second switch11can be such as a second power button for activating a second signal. The control module12can be such as a south bridge chip electrically connected to the electronic system2, the first switch10and the second switch11. The control module12generates an on or off signal according to the on or off state of the electronic system2, and generates a control signal according to the result of the logic algorithm processing performed by the logic judging module13. Further, the control module12controls switching on or off the power module20according to the control signal. The logic judging module13can be such as a logic circuit electrically connected to the first switch10, the second switch11and the control module12for receiving the first signal, the second signal, the on and off signal for logic algorithm processing.

If the electronic system2is off, the logic judging module13performs the logic judgment according to the first signal generated by the first switch10and transmits the result of the logic judgment to the control module12; if the electronic system2is on, the logic judging module13performs logic judgment according to the first signal generated by the first switch10, the second signal generated by the second switch11and the on signal generated by the control module12and transmits the result of the logic judgment to the control module12. The control module12then generates a control signal corresponding to the logic judgment result so as to control switching on or off the power supply of the power module20.

FIG. 2is a schematic view showing a power switch device according to a first embodiment of the present invention. The power switch device ofFIG. 2has a substantially same structure as that ofFIG. 1except the logic judging module13′ thereof. In the present embodiment, the logic judging module13′ is a logic circuit including an OR gate130and an AND gate131. In light of the result of the logic algorithm processing performed by the logic judging module13′, the power module20of the electronic system2is controlled to be on or off.

More specifically, the power module20of the present embodiment switches on or off the power supply after receiving a low-level signal (that is, the control signal is ‘0’) from the control module12. That is, the low-level signal is an activation signal for power supply of the power module20. The control module12transmits a signal (an on or off signal) corresponding to the on or off state of the electronic system2back to the logic judging module13. For example, if the electronic system2is on, the control module12transmits a high-level signal (that is, an on signal of ‘1’) to the AND gate131to be an input signal; on the other hand, if the electronic system2is off, the control module12transmits a low-level signal (that is, an off signal of ‘0’) to the AND gate131to be an input signal.

As described above, if the electronic system2is off, the control module12transmits a low-level signal (an off signal ‘0’) to the AND gate131. At this time, if users want to start up the electronic system20, the control module12should transmit a low-level signal (that is, a control signal of ‘0’) to the power module20so as to activate the power module20. Therefore, users only need to activate the first switch10by, for example, pressing the power button so as to generate a low-level first signal (that is, signal ‘0’). Generally, the first switch10is connected to a pull low resistor in series. In general circumstances where the first switch10is not activated, since the first switch10is not grounded and outputs a high-level signal, the high-level signal is transmitted to the OR gate130. As a result, the control module12cannot be activated to control switching on or off the power module20. On the other hand, when the first switch10is activated such as by pressing, the first switch10is grounded and outputs a low-level signal, and a low-level signal is transmitted to the OR gate130. It depends on the state of the electronic system2whether the OR gate130can output a low-level signal.

If the electronic system2is off, input terminal of the AND gate131receives a low-level signal (an off signal of ‘0’) from the control module12. As a result, the AND gate131outputs a low-level signal to the OR gate130. In other words, if the first switch10is activated, the first switch10outputs a low-level signal to the OR gate130. As both input terminals of the OR gate130receive the low-level signals, the OR gate130outputs a low-level signal to the control module12. Thus, the control module12activates the power module20according to the low-level signal so as to switch on the power module20. Accordingly, the electronic system2is switched from the off state to the on state. At this point, the control module12transmits a high-level signal (on signal of ‘1’) to input terminal of the AND gate131according to the on state of the electronic system2. For the electronic system2being on, if neither the first switch10nor the second switch11is activated, the logic judging module13′ including the OR gate130and the AND gate131continuously outputs a high-level signal, and the electronic system2continuously obtains power supply from the power module20and keeps being on.

On the other hand, if users would like to shut down the electronic system2, the control module12should receive a low-level signal from the logic judging module13′ so as to activate the power module20to switch off the power supply. Therefore, users need to press the first switch10and the second switch11at the same time such that both the first and second switches10,11respectively generate and transmit low-level signals to the OR gate130and the AND gate131. Therefore, the logic judging module13′ outputs and transmits a low-level signal to the control module12. Accordingly, the control module12generates a low-level control signal so as to activate the power module20to shut down the power supply. Since the electronic system2is switched from on state to off state, the control module12further transmits a low-level signal (off signal) back to the logic judging module13′ to be a logic reference for the next switching on/off.

Therefore, the power switch device of the present invention shuts down the power supply according to operation states of the two power switches so as to efficiently prevent accidental touch of the power button and unexpected shutdown of the power supply.

FIG. 3is a schematic view showing a power switch device according to a second embodiment of the present invention. The power switch device ofFIG. 3has a substantially same structure as that ofFIGS. 1 and 2except the logic judging module13″ thereof. In the present embodiment, the logic judging module13″ includes a programmable logic unit132, which can be such as a complex programmable logic device (CPLD) or a field-programmable gate array (FPGA). In other words, the power module20is controlled through a programmable method.FIG. 4shows input and output signals of a complex programmable logic device that is used as a programmable logic unit132. The program of the complex programmable logic device is shown as follows.

in which, ‘|’ represents logic OR, ‘&’ represent logic AND, SYS_SWITCH1_N is corresponding to the first signal generated by the first switch10, SYS_SWITCH2_N is corresponding to the second signal generated by the second switch11, SB_S4_N is corresponding to the on or off signal generated by the control module12. The design principle is same as that inFIG. 2such that detailed description thereof is omitted.

According to the present invention, the logic judging module performs logic judgment according to the first signal generated by the first switch when the electronic system is off, and transmits the result of the logic judgment to the control module such that the control module generates a control signal to for the power module to supply power. Thus, the electronic system is switched from the off state to the on state, and the control module outputs an on signal to the logic judging module for subsequent logic algorithm processing such that the control module controls switching on or off the power module. On the other hand, when the electronic system is on, the first signal generated by the first switch, the second signal generated by the second switch and the on signal generated by the control module are logically judged by the logic judging module and the result is transmitted to the control module such that the control module generates a control signal which is further transmitted to the power module20of the electronic system2. Thus, the start and shutdown of the electronic system can be controlled through the result of logic judgment, and accidental touch of the power button and unexpected shutdown of the electronic system can be prevented.

The above-described descriptions of the detailed embodiments are only to illustrate the preferred implementation according to the present invention, and it is not to limit the scope of the present invention, Accordingly, all modifications and variations completed by those with ordinary skill in the art should fall within the scope of present invention defined by the appended claims.