Electrical computers and digital processing systems: support – Clock control of data processing system – component – or data... – Inhibiting timing generator or component
Reexamination Certificate
1999-11-08
2002-04-30
Butler, Dennis M. (Department: 2182)
Electrical computers and digital processing systems: support
Clock control of data processing system, component, or data...
Inhibiting timing generator or component
C713S322000
Reexamination Certificate
active
06381705
ABSTRACT:
FIELD OF THE INVENTION
The present invention relates to electronic devices, and, more particularly, to a method and device for reducing the current consumption of a microcontroller.
BACKGROUND OF THE INVENTION
Referring to
FIG. 1
, a microcontroller MCU is an integrated circuit comprising various internal circuits. These internal circuits include a central processing unit CPU, a main oscillator OSC, a clock signal generating circuit MCC producing a clock signal f
CPU
(from a signal delivered by the main oscillator), as well as internal peripheral circuits. In the following description, the terms “internal”, “external”, “inside” and “outside” are relative to the package of the microcontroller MCU, the latter being schematically shown in
FIG. 1
by a box in broken lines.
The internal peripheral circuits, e.g., comprise an EPROM or EEPROM type memory MEM, a watchdog circuit WDG, at least one analog-to-digital converter ADC and/or at least one digital-to-analog converter DAC, counters, etc. The memory MEM is loaded by the customer with a user program at a programming stage prior to using the microcontroller in its application.
One of the desires of integrated circuit manufacturers is to reduce circuit current consumption as much as possible. Indeed, in many applications the power supply for the electronic circuit incorporating the integrated circuit is a battery or cell whose charge is limited in time. Moreover, reducing the power consumption of integrated circuits limits heat dissipation problems due to the Joule effect (Joule losses). Accordingly, the continuous development of integrated circuit technology makes it possible to reduce their power consumption. This reduction relates to the “static” consumption, in the sense that it does not depend on the operation of the integrated circuit.
On the other hand, microcontrollers are becoming increasingly complex in the sense that they incorporate an increasing number of internal circuits to meet the users' growing needs. As a consequence, the efforts made in the technology for reducing current consumption are all too often greatly offset by the increase in size and complexity of the integrated circuits. Indeed, the consumption of a microcontroller is strongly linked to the number of transistors (elementary components) it contains, since consumption results from the switching of these transistors.
For this reason, it has long been suggested in the field of microcontrollers to deactivate the integrated circuit in the intervals during which it is not active in the application. Under such conditions, the microcontroller is sometimes referred to as being in the standby state. Similarly, it has also been suggested to deactivate only some of the microcontroller's internal circuits when these circuits do not need to be active in the operation of the microcontroller. Both of the above measures lead to a “dynamic” reduction in current consumption insofar as the savings obtained depend on the use of the microcontroller.
Consequently, microcontrollers known in the art can be run in different modes in which a certain number or all of their internal circuits are deactivated. In the above two paragraphs and what follows in the present description (unless otherwise stated), the terms “activated” and “deactivated” applied in the context of an internal circuit of a microcontroller mean, respectively, that the circuit in question receives or does not receive the clock signal f
CPU
.
For instance, in the ST
7
microcontroller family marketed by the firm STMicroelectronics S.A., the following operating modes are distinguished:
(1) a RUN or “EXECUTION” mode, in which all of the microcontroller's internal circuits are activated (FIG.
1
); the RUN mode is the normal operating mode, the one in which the user program is executed; it is the default operating mode, i.e. the one in which the microcontroller is entered after its power on reset and after each subsequent reset;
(2) a “SLOW” operating mode, in which the frequency of the clock signal f
CPU
is reduced compared to its nominal value; the CPU and the microcontroller's peripheral circuits are activated by this reduced frequency clock signal; this mode already lowers current consumption since the lower the frequency the fewer the number of transistors are switched per unit time; naturally, the microcontroller's operating speed is correspondingly reduced;
(3) a “WAIT” mode in which the CPU is deactivated while the internal peripheral circuits are activated; the microcontroller is set into this operating mode upon executing an adapted instruction of the user program known as a wait instruction; classically, the microcontroller is thus set into the WAIT mode during the period assigned for an operation carried out by an internal peripheral circuit (e.g. an analog-to-digital conversion executed by an ADC circuit), such an operation being independent of the CPU; the microcontroller is returned from the WAIT mode to the RUN mode by an internal interruption (generated by the aforementioned microcontroller internal peripheral circuit when that operation is terminated); this interruption allows the CPU to resume operation for executing the following instruction designated by its program counter; naturally, it is also possible to provide for the microcontroller to return from the WAIT mode to the RUN mode upon receipt of an external interrupt signal EXT_INT or an external reset signal RST on appropriate input pins of the microcontroller package; the WAIT mode decreases consumption by withdrawing the contribution of the CPU during the time periods when it is not operative;
(4) a SLOW WAIT mode, which is a combination of the two previous modes, respectively, SLOW and WAIT;
(5) a HALT mode, in which the main oscillator ceases to operate (i.e. it no longer generates a signal f
OSC
); accordingly, the CPU and the microcontroller internal peripheral circuits are deactivated since they no longer receive a clock signal f
CPU
; as with the WAIT mode, the microcontroller is set into the HALT mode by executing an appropriate instruction of the user program, known as a HALT instruction; conversely, the microcontroller is brought back from the HALT mode to the RUN mode only when the CPU receives one of the above-mentioned EXT_INT or RST signals via appropriate input pins of the microcontroller package (see FIG.
1
).
Of all the above operating modes, the HALT mode is the most economical in terms of current consumption. However, it suffers the drawback of involving a risk of blocking the microcontroller. Indeed, all the internal circuits of the icrocontroller are deactivated in the HALT mode (they do not receive any clock signal since the main oscillator is inoperative). Unless an external interrupt signal or an external reset signal is generated, the microcontroller could remain blocked indefinitely in the HALT mode. It is imperative to make provisions for these external signals in the application, which provides a constraint for the user.
The WAIT mode can overcome this drawback since the clock signal f
cpu
is always generated in the WAIT mode and an internal interruption can always be generated to bring the microcontroller back to the RUN mode. However, since the clock signal f
cpu
is transmitted as an input to each microcontroller internal circuit, Joule losses occur in the set of connections provided for this transmission. This set is commonly referred to as a “clock signal distribution tree” or more simply as a “clock tree” and is designated by reference CLKTR in FIG.
1
. In addition, this is the reason why the clock signal f
cpu
is generally greatly amplified in the MCC circuit which comprises several buffers (not shown) for that purpose. This is the reason why the WAIT mode, although more economical than the RUN mode, is less economical than the HALT mode.
SUMMARY OF THE INVENTION
In view of the foregoing background, it is therefore an object of the invention to overcome the above-mentioned drawbacks with microcontrollers according to the prior art.
In accordance with the invention, this
Allen Dyer Doppelt Milbrath & Gilchrist, P.A.
Butler Dennis M.
Jorgenson Lisa K.
STMicroelectronics S.A.
LandOfFree
Method and device for reducing current consumption of a... does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Method and device for reducing current consumption of a..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and device for reducing current consumption of a... will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2852733