1. Field of the Invention
The present invention generally relates to a method for resetting a micro controller and, more particularly, to a method for resetting a micro controller using an improved micro controller reset circuit designed for loading micro controller options (MCU options) in advance regardless of whether a reset key is pressed after the power is turned on. Therefore, the initial values of the micro controller are recovered so as to reduce power consumption and avoid conflict of signals.
2. Description of the Prior Art
Hand-held electronic products such as personal digital assistants (PDAs) and mobile phones may be mal-functional during operation since hardware may be crashed due to poor configuration setup or its incompatibility with software. These hand-held electronic products may stay mal-functional even after they are rebooted unless a reset key installed thereon is pressed so as to reset the operation software to initial conditions.
Please refer to
Therefore, there exists a need in providing a method for resetting a micro controller to avoid the above-mentioned problem.
It is a primary object of the present invention to provide a method for resetting a micro controller, using an improved micro controller reset circuit designed for loading MCU options regardless of whether a reset key is pressed after the power is turned on. In this method, the initial values of the micro controller are recovered because the MCU options are loaded in advance so as to reduce power consumption and avoid incompatibility.
In order to achieve the foregoing object, the present invention provides a method for resetting a micro controller, comprising steps of:
Preferably, the step (d) is performed when the reset key is being pressed in step (c) or the step (f) is performed when the reset key is not being pressed in step (c).
Preferably, the step (d) is performed if the reset key is being pressed when the step (f) is performed.
Preferably, the step (d) is performed if the reset key is being pressed when the step (d) is performed or the step (e) is performed if the reset key is not being pressed when the step (d) is performed.
Preferably, the step (d) is performed if the reset key is being pressed when the step (e) is performed or the step (f) is performed if the reset key is not being pressed when the step (e) is performed.
The objects, spirits and advantages of the preferred embodiment of the present invention will be readily understood by the accompanying drawings and detailed descriptions, wherein:
The present invention providing a method for resetting a micro controller can be exemplified by the preferred embodiment as described hereinafter.
Please refer to
First Mode: If the reset key is released after being pressed, the micro controller is to be initialized 26.
Second Mode: If the reset key is kept being pressed, the micro controller is kept being reset 24 until the reset key is released to re-load the MCU options 25. When the MCU options are re-loaded 25, the micro controller is to be reset 24 if the reset key is pressed, otherwise the micro controller is to be initialized 26 after the MCU options are re-loaded 25 (if the reset key is un-pressed). When the micro controller is initialized 26, the micro controller is to be reset 24 if the reset key is pressed.
According to the description with reference to
More particularly, the method of the present invention is characterized in that the reset key of the micro controller is ineffective, owing to being locked, after the power is turned on. The reset key won't become effective until the MCU options are first loaded so that system crash or conflict between signals can be avoided.
Furthermore, in the method of the present invention, other steps, such as power supply stable time for integrated circuit (IC) or stable time for other devices, can be executed prior to loading the MCU options after the power is turned on.
Although this invention has been disclosed and illustrated with reference to particular embodiments, the principles involved are susceptible for use in numerous other embodiments that will be apparent to persons skilled in the art. This invention is, therefore, to be limited only as indicated by the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
095148901 | Dec 2006 | TW | national |