Patent ID: 9645624
Date: 2017-05-09
CPC Classifications: G06F

Claim:
1. An electronic apparatus having a switch, the electronic apparatus comprising: a processing unit, receiving a switch signal generated by the switch, starting counting upon detecting a change in the logic level of the switch signal, and generating a power-down signal after receiving the switch signal for a first predetermined time; a first function unit, receiving the switch signal outputted by the switch, the first function unit comprising: a timer, starting counting upon detecting a change in the logic level of the switch signal, and to execute a first power-down procedure after the timer has counted to a second predetermined time; and a power management unit coupled to the processing unit and the first function unit; wherein the second predetermined time is less than the first predetermined time, and the first function unit completes the first power-down procedure before the power management unit receives the power-down signal and stops powering the processing unit and the first function unit; wherein the first function unit further comprises: a first sub-function unit coupled to the timer; and a second sub-function unit coupled to the timer; wherein the first sub-function unit executes a first power-down sub-procedure when the timer counts to a first time interval within the second predetermined time; the second sub-function unit executes a second power-down sub-procedure when the timer counts to a second time interval within the second predetermined time; wherein the duration of the second time interval is greater than the duration of the first time interval.