[0046] The foregoing and other technical content, features, and effects of the present invention will be clearly presented in the following detailed description of a preferred embodiment in conjunction with the accompanying drawings.
[0047] Refer to Figure 4 , Figure 4 It is a preferred embodiment of the power control module 41 of the electronic device 4 of the present invention, which is used to implement the power control method of the electronic device of the present invention. The electronic device 4 of this embodiment has a plurality of hardware units 42 and an electrical connection station. The power supply unit 43 of the hardware unit 42.
[0048] The power control module 41 includes a switch unit 411, a logic unit 412, and a central processing unit 413 electrically connected to the power supply unit 43. The logic unit 412 is an OR gate with two input terminals 414 and 415 and an output terminal 416. The input terminals 414 and 415 are electrically connected to the switch unit 411 and the central processing unit 413, respectively. 416 is electrically connected to the power supply unit 43. In this embodiment, although the logic unit 412 is implemented as an OR logic gate, it is not actually limited to this. The logic unit 412 can also use other OR operations that can generate The equivalent logic circuit is realized.
[0049]The switch unit 411 includes a switch 417 and a resistor 418. One end of the switch 417 is connected in series with the resistor 418 and then grounded, and the other end is electrically connected to a power supply Vcc. The output end of the switch unit 411 is coupled between the switch 417 and the resistor 418 A node 419 of the central processing unit 413 and an input terminal 414 of the logic unit 412 are electrically connected to the node 419, so that when the switch 417 is pressed, the switch unit 411 outputs a high-level voltage switching signal to the logic unit An input terminal 414 of the 412 and the central processing unit 413, and when the switch 417 is not pressed, the switch unit 411 provides a low-level voltage to an input terminal 414 of the logic unit 412 and the central processing unit 413. In this embodiment, the power supply Vcc to which the switch 417 is electrically connected is supplied by the power supply unit 43. Vcc not only supplies power to the switch unit 411 to output a high-level voltage when the switch 417 is pressed, but also provides the logic unit 412. Working voltage.
[0050] When the switch 417 is pressed, the switch unit 411 outputs a high-level voltage switching signal to the central processing unit 413 and the logic unit 412, so that the logic unit 412 outputs a high-level signal to control the power supply unit 43 to supply power to the central processing unit 413. The central processing unit 413 is activated, and the central processing unit 413 determines whether the switch 417 is continuously pressed, and whether the pressing time reaches a first time interval. If so, the switching signal output by the switch unit 411 is the first time interval. The central processing unit 413 determines that the switch signal is a start signal at this time, and outputs a power supply signal (high level) to the input terminal 415 of the logic unit 412, so that the logic unit 412 outputs a high level signal to control the power supply unit 43 continues to supply power and simultaneously supplies power to the hardware unit 42 of the electronic device 4. Then the central processing unit 413 executes a boot procedure to make the electronic device 4 enter the boot mode for the user to operate the preset functions of the electronic device 4. In this embodiment, the power supply signal output by the central processing unit 413 is a high-level voltage, the start-up signal is a pulse signal that maintains a high-level voltage within the first time interval, and the logic unit 412 is an "OR" logic gate. The logic unit 412 correspondingly outputs a high-level voltage to the power supply unit 43 according to the input power supply signal and the startup signal, so that the power supply unit 43 continuously outputs power to the central processing unit 413.
[0051] When the electronic device 4 is in the power-on mode, the switch 417 is pressed again, and the duration of the continuous pressing is a second time interval different from the first time interval, the switching signal output by the switch unit 411 is the first time interval With a two-time pulse signal, the central processing unit 413 determines that the switch signal is a shutdown signal, and the central processing unit 413 executes a shutdown procedure, first completes the currently executing procedure or action of the electronic device 4, and then outputs a power-off signal The logic unit 412 is provided to control the power supply unit 43 to stop power supply, so that the electronic device 4 enters the shutdown mode. In this embodiment, the power-off signal output by the central processing unit 413 is a low-level voltage, the shutdown signal is a pulse signal that maintains a high-level voltage within the second time interval, and the logic unit 412 is an "OR" logic gate. When the switch 417 stops being pressed, the switch unit 411 no longer outputs a high-level voltage but provides a low-level voltage, so that an input terminal 414 of the logic unit 412 maintains a low-level voltage. When the central processing unit 413 executes the shutdown procedure At this time, a low-level voltage power-off signal is sent to the other input terminal 415 of the logic unit 412. At this time, the logic unit 412 correspondingly outputs a low-level voltage to the power supply unit 43, so that the power supply unit 43 stops outputting power to the central processing unit 413.
[0052] When the electronic device 4 is in the boot mode and the switch 417 is continuously pressed for a third time interval different from the first or second time interval, the switching signal output by the switch unit 411 is at the third time interval Inside is a high-level voltage pulse signal, the CPU 413 determines that the switch signal is a pause signal, and enters a pause mode. At this time, the central processing unit 413 outputs a control signal to the power supply unit 43, and the power supply unit 43 adjusts the power output to the hardware unit 42 according to the control signal. In this embodiment, the hardware unit 42 is a display screen and a synchronous dynamic random access memory. When the power supply unit 43 is in the suspend mode, it stops supplying power to the hardware unit 42 because the central processing unit 413 outputs power to the power supply unit 43. The signal has not been changed, so the power supply unit 43 still maintains power to the central processing unit 413. If the switch 417 is pressed at this time and the duration of the pressed time is the first time interval, the power supply unit 43 controls the output of power to the central processing unit 413, and the central processing unit 413 executes the boot procedure to restore the electronic device 4 to the boot mode. If the switch 417 is pressed and the pressed time is the second time interval at this time, the central processing unit 413 executes the shutdown procedure, and the power supply unit 43 also controls to stop outputting power, so that the electronic device 4 enters the shutdown mode.
[0053] In general, the power control module 41 of the electronic device 4 of the present invention controls the CPU 413 and the power supply unit 43 through the logic unit 412 and the circuit of the switch unit 411, and the user controls the CPU 413 to execute by pressing the switch 417 Preset startup procedures, shutdown procedures, and pause modes, and the power supply unit 43 is matched to supply the required power. The same effect can be achieved without two switches and complex circuits, which not only solves the existing system caused by toggle mechanical switches The problem of unstable power and crashes also simplifies the circuit and mechanism design of the electronic device, which has a positive effect on the lighter, thinner, shorter and smaller electronic device.
[0054] The above are only preferred embodiments of the present invention, and cannot be used to limit the scope of implementation of the present invention. All simple equivalent changes and modifications made in accordance with the claims of the present invention and the description of the invention still belong to the present invention. Within the scope of invention patents.