1. Field of the Invention
The present invention relates to boot control apparatus and method for a micro controller unit (MCU), especially to a boot control apparatus and method for efficiently booting the MCU.
2. Description of Related Art
When an MCU device is cold booted, initialization will be executed in the MCU. Generally, the initialization includes hardware verification, software resetting, and so on. E.g. I/O interfaces and memories self-checking. When the MCU device is warm booted, system parameters will be reset and software will be updated in the MCU. A cold boot takes more time than a warm boot. Generally, the MCU can correctly execute a warm boot or a cold boot depending on a corresponding button of the MCU device being activated. However, the MCU cannot differentiate between commands to execute a warm boot or to execute a cold boot when receiving reset signals from an internal source and so always executes a cold boot which wastes time.
What is desired, therefore, is boot control apparatus and method for efficiently booting an MCU.
In one preferred embodiment, a boot control apparatus of an MCU includes a register, a reset signal generating circuit, and a controlling circuit. The register includes a first pin to receive a reset signal output from the reset signal generating circuit, and a second pin to receive a signal output from the controlling circuit. The controlling circuit includes a signal detecting circuit, and a delay circuit for delaying a signal output from the signal detecting circuit. The register is capable of sending a command to the MCU to allow the MCU to execute a warm boot if the first pin receives a reset signal and the second pin is at a low level, and sending another command to the MCU to allow the MCU to execute a cold boot if the first pin receives a reset signal and the second pin is at a high level.
In one preferred embodiment, a boot control method of a boot control apparatus for booting an MCU is given. The boot control apparatus includes a register with a first pin and a second pin, a reset signal generating circuit connected to the first pin, and a controlling circuit connected to the second pin. The boot control method includes: the first pin of the register determining whether it receives a reset signal; doing nothing if the first pin does not receive any reset signal; the second pin of the register determining whether a voltage thereof is at a low level if the first pin receives a reset signal; the MCU executing a warm boot if the second pin is at a low level; the MCU executing a cold boot if the second pin is at a high level.
Other advantages and novel features will become more apparent from the following detailed description of preferred embodiments when taken in conjunction with the accompanying drawings, in which:
Referring to
Referring to
Referring to
The detecting circuit 22 includes a voltage-division circuit 24, and a switch circuit 26. The voltage-division circuit 22 includes a resistor R2, and a resistor R3 connected between the power supply source Vcc and ground in series. The switch circuit 26 includes a resistor R5, and a transistor Q1, a resistor R6, and a transistor Q2. The transistor Q1 is an NPN transistor. A base of the transistor Q1 is connected to a node between the resistor R2 and the resistor R3. An emitter of the transistor Q1 is grounded. A collector of the transistor Q1 is connected to the power supply source Vcc via the resistor R5. The transistor Q2 is a PNP transistor. An emitter of the transistor Q2 is connected to the power supply source Vcc via the resistor R6. A base of the transistor Q2 is connected to the collector of the transistor Q1. A collector of the transistor Q2 is grounded. The emitter of the transistor Q2 outputs the detecting signal to the delay circuit 28.
The delay circuit 28 includes a time delay buffer 282. The detecting signal is delayed by the time delay buffer 282 for a predetermined time. Preferably, the predetermined time is in a range of hundreds of milliseconds. Then the time delay buffer 282 transfers the control signal to the second pin P2 of the register 40. The predetermined time is set to be greater than a time from power on to initialization. The predetermined time is not allowed to be too long to reduce a sensitivity of the MCU.
When the MCU device is powered, the power supply source Vcc provides power to the reset signal generating circuit 10 and the controlling circuit 20 at the same time.
Referring also to
Referring also to
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the invention or sacrificing all of its material advantages, the example hereinbefore described merely being a preferred or exemplary embodiment of the invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2006 1 0060135 | Mar 2006 | CN | national |
| Number | Name | Date | Kind |
|---|---|---|---|
| 4367422 | Leslie | Jan 1983 | A |
| 6097288 | Koeppe, Jr. | Aug 2000 | A |
| 6510064 | Brown et al. | Jan 2003 | B1 |
| 7263035 | Emery | Aug 2007 | B2 |
| 7428633 | Park et al. | Sep 2008 | B2 |
| 7494064 | Slutsky et al. | Feb 2009 | B2 |
| 20010047473 | Fallon | Nov 2001 | A1 |
| 20030121981 | Slutsky et al. | Jul 2003 | A1 |
| 20030149867 | Park et al. | Aug 2003 | A1 |
| 20060224875 | Choi et al. | Oct 2006 | A1 |
| 20070060119 | Emery | Mar 2007 | A1 |
| Number | Date | Country |
|---|---|---|
| 1540503 | Oct 2004 | CN |
| Number | Date | Country | |
|---|---|---|---|
| 20070260865 A1 | Nov 2007 | US |