SYSTEM AND METHOD FOR REDUCING CURRENT CONSUMPTION OF A MICROCONTROLLER

Abstract: The present invention teaches a system having reduced quiescent current drawn from a power supply. The system comprises a device having a status. Moreover, the system comprises a microcontroller, having an active and a sleep mode of operation, for polling the status of the device during the active mode, initiating a function in response to a change in the status during the active mode, and for conserving quiescent current drawn from the power supply during the sleep mode. According to the present invention, the microcontroller generates an output signal at a first voltage level during the active mode and generates the output signal at a second voltage level during the sleep mode. The microcontroller, additionally, comprises a sensor for switching the microcontroller from the sleep mode to the active mode. Furthermore, the system comprises a storage device for charging to the first voltage level during the active mode, and for discharging to a third voltage level during the sleep mode for triggering the sensor to switch from the sleep mode to the active mode.

Description: A SYSTEM AND METHOD FOR REDUCING CURRENT CONSUMPTION OF A MICROCONTROLLER FIELD OF THE INVENTION This invention relates generally to automotive elec t ronic circuits, and more particularly, to a system and method for reducing for reducing quiescent current in a microcontroller. BACKGROUND OF THE INVENTION Power consumption is an important issue in battery- powered electronic circuits, generally. In the automotive industry, a great emphasis has been placed on extending the life span of batteries. This issue, when taken in combination with the increasing number of electrical and electronic content and complexity within present automobiles, presents a unique dilemma. A solution for simplifying the management of this electrical and electronic content which has gained increasing acceptance within the automotive industry has been multiplexing. Multiplexing proposes to electrically couple each electrical and electronic device through a singular loop interface with a microcontroller. Managing each electrical and electronic device constantly is wasteful and inefficient. Thus, in attempting to balance the interests of power savings against the benefits of multiplexing, one solution proposed has been to allow the microcontroller to operate in a sleep mode of operation during all times when the microcontroller processing capabilities are not required. Referring to Figure 1, a multiplexed control system 1 0 is illustrated navmg reduced power consumption. System 10 comprises a microcontroller 20 for controlling a first and a second electronic device 24 and 28, respectively, by way of a first and second control switch 12 and 14. Control switches 12 and 14 are coupled to one another, and through a singular loop, also coupled with microcontroller 20. To effectively realize a multiplexed architecture, first and second devices 24 and 28 are also coupled to each other, and through a singular line, coupled with microcontroller 20 as well as ground. By this configuration, microcontroller 20 processes effective changes in the status of each switch by feeding a device control signal through the multiplexed input loop. System 10 additionally comprises one diode for each switch. First and a second diode, D x and D 2 , provide a means for detecting a change in the status of each respective control switch, 12 and 14. Diodes, D α and D 2 , are each coupled with the interrupt sensor of microcontroller 20. By this design, each diode independently enables microcontroller 20 to effectively wake up from a low power sleep mode when it is not required to a fully powered active mode when its processing capabilities are required. System 10 of the Figure 1 poses a substantial shortcoming. In automobiles having a greater number of electrically powered devices, a diode is required for each device to enable the microcontroller to switch from sleep mode to active mode. Further, in manufacturing a large number of systems, this can be fairly costly. Thus, a demand exists for a multiplexed system having a power consumption savings that is substantially more cost effective than the known art. SUMMARY CF THE INVENTION The primary advantage of the present invention is to overcome the limitations of the prior art. Another advantage of the present invention is to provide a system that reduces quiescent current drawn from a power supply. A further advantage of the present invention is to provide for a system that reduces quiescent current drawn that is substantially less costly to manufacture. In order to achieve the advantages of the present invention, a system is disclosed for a system having reduced quiescent current drawn from a power supply. The system comprises a device having a status. Moreover, the system comprises a microcontroller, having an active and a sleep mode of operation, for polling the status of the device during the active mode, initiating a function in response to a change in the status during the active mode, and for conserving quiescent current drawn from the power supply during the sleep mode. According to the present invention, the microcontroller generates an output signal at a first voltage level during the active mode and generates the output signal at a second voltage level during the sleep mode. The microcontroller, additionally, comprises a sensor for switching the microcontroller from the sleep mode to the active mode. Furthermore system comprises a storage device for charging to the first voltage level during the active mode, and for discharging to a third voltage level during the sleep mode for triggering the sensor to switch from the sleep mode to the active mode. These and other advantages and objects will become apparent to those skilled in the art from the following detailed description read m con unction with the appended claims and the drawings attached hereto. BRIEF DESCRIPTION OF THE DRAWINGS The present invention will be better understood from reading the following description of non-limitative embodiments, with reference to the attached drawings, wherein below: Figure 1 illustrates a circuit realization according to the known art; Figures 2 (a) and 2 (b) respectively illustrate a circuit realization and a graphical representation of the current drawn according to the preferred embodiment of the present invention; and Figure 3 illustrates a flow chart of the steps employed according to the present invention. It should be emphasized that the drawings of the present disclosure are not to scale but are merely schematic representations and are not intended to portray the specific parameters or the structural details of the invention, which can be determined by one of skill in the art by examination of the information herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to Figure 2(a) , a multiplexed control system 30 is illustrated having reduced quiescent current drawn from a power supply. System 30 comprises a microcontroller 32 for controlling a first and second device 38 and 40, respectively, by way of a first and a second control switch 34 and 36. In the preferred embodiment of the present invention, multiplexed control system 30 is employed in an automobile, such that first and second devices are automotive accessories and/or components, such as a headlamp or horn. First control switch 34 enables and disables first device 38 through microcontroller 32. Likewise, through microcontroller 32, second control switch 36 enables and disables second device 40. Control switches 32 and 34 are coupled to one another, and through a singular loop are also coupled with microcontroller 32. To effectively realize a multiplexed architecture, first and second devices 38 and 40 are also coupled to each other, and, through a singular line, coupled with microcontroller 32 as well as ground. By this configuration, microcontroller 32 processes effective changes in the status of each switch by feeding a device control signal through the multiplexed input loop. System 30 reduces quiescent current drawn from a power supply (not shown) in a cost effective manner by utilizing circuitry 45. Microcontroller 32 comprises an active mode of operation to perform system functions including initiating changes to devices 38 and 40 through a device control signal, and a sleep mode of operation to reduce the quiescent current drawn. In active mode, microcontroller 32 polls the status of each of the control switches 34 and 36 at an initial time to determine whether to enable and/or disable devices 38 and 40. To insure the accuracy of this polling step, microcontroller 32 repolls switches 34 and 36 at least once more before effectively enabling and/or disabling devices 38 and 40. As each switch comprises a debounce time period, microcontroller 32 performs this repolling of switches 34 and 36 at a second time. This second time corresponds with the passage of the longer dεbounce period of both debounce time periods to secure against falsely triggering or disabling devices 38 and 40. To effectively conserve quiescent current, system 30 enables a mechanism to efficiently change the operation of microcontroller 32 from sleep to active mode by means of circuitry 45. Circuitry 45 comprises a loop between a voltage output V and an interrupt input ϊ of microcontroller 32 The circuit loop comprises an input resistor R coupled in series with a second resistor R 2 . Coupled in parallel with second resistor R 2 , at a first and second node, is one diode D 3 . Further attached at the second node coupling diode D 3 and resistor R 2 is a capacitor λ running to ground. The circuit loop is completed by coupling the second node also to the interrupt input. The components of circuitry 45 enable a quick charging and a slow discnargmg of capacitor C : to effectively minimize the quiescent current drawn and reduce the amount of the false triggering of the interrupt sensor. These objective may be realized by selecting a value for resistor R 2 that is substantially larger than resistor R x . In one embodiment, resistor R 2 is equal to 10,000 ohms while resistor R α is equal to 100 ohms. Furthermore, diode D 3 functionally shortens the charging time of capacitor C x When capacitor C_ is charging to the first voltage level of voltage output V 0 , the charging time constant, τ c , is equal to the inverse of the product of the value of capacitor C, and the value of the resistor R . This can be understood simply by the fact that when capacitor C x is charging, the current flowing through the circuit loop passes through diode D 3 and not resistor R 2 . In contrast, when the capacitor is discharging from the first voltage level of voltage output V 0 , diode D 3 is off and the current flowing through the circuit loop passes through resistor R 2 and not diode D, By this arrangement, the discharging time constant, τ„, is equal to the inverse of the product of the value of capacitor C, and the value of the sum of resistors R x and R 2 . Referring to Figure 2 ( b ) , a graphical representation of the current drawn by system 30 is illustrated. As shown, while in the active mode, microcontroller draws a first level of current to functionally operate. Once microcontroller 32 switches to sleep mode, however, the current drawn drops to a quiescent level for the time period τ d . The current drawn again rises, with the passage of the time period τ d , as microcontroller 32 switches to the active mode and polls the status of control switches 34 and 36 for a polling time oeriod τ = . Polling time period τ p is dependant on the number of switches employed and the time it takes microcontroller 32 to poll each switch. To effectively reduce usage of quiescent current, T„ must be smaller than τ α By doing so, microcontroller primarily operates in sleep mode to minimize drawing active mode current. Thus, τ d is less than or equal to twice the shortest debounce period, while also being greater than or equal to polling time period τ p . Referring to Figure 3, a flow chart is illustrated depicting tne operational steps employed by system 30 generally, and microcontroller 32 specifically. In operation, with microcontroller 32 m an active mode, the voltage output V 0 is initially set at a logical high or 1, enabling capacitor C to charge to the logical voltage high level. After the first polling, microcontroller 32 lowers the voltage output V. to a logic low or 0 and inherently goes into the sleep mode. As a result, the voltage across capacitor Cj begins to discharge at a rate equivalent to the inverse product of the value of capacitor Ci value and the value of the sum of resistors R, and R 2 . Eventually, as capacitor Cj discharges, the value of the voltage across capacitor Cj drops to an intermediary voltage level, between the logical voltage high and logical voltage low, thereby triggering an interrupt sensor withm microcontroller 32 though interrupt input ϊ. The interrupt sensor, once triggered, switches microcontroller 32 from tne sleep mode to tne active mode of operation, and oegins to perform an imbedded interrupt routine. Upon entering the interrupt routine, the voltage output V is raised to a logical high or 1, capacitor d begins charging up to the logical voltage high level, and microcontroller 32 polls the status of switches 34 and 36 and stores these results in memory. Subsequently, microcontroller 32 determines whether the longer debounce period of both debounce periods for switches 34 and 36, has passed. In the event the debounce period has not passed, microcontroller 32 lowers the voltage output V 3 to a logic low or 0 and switches into the sleep mode. If, however, the debounce period has passed, microcontroller 32 executes any status changes m switches 34 and 36 stored memory by executing the ma routine. While the particular invention has been described with reference to illustrative embodiments, this description is not meant to be construed in a limiting sense. It is understood that although the present mvention has been described in a preferred embodiment, various modifications of the illustrative embodiments, as well as additional embodiments of the invention, will be apparent to persons skilled the art upon reference to this description without departing from the spirit cf the invention, as recited in the claims appended hereto Thus, while a capacitor is detailed in the hereinabove disclosure for charging and discharging, an equivalent component, such as an inductor, may be substituted by one of ordinary skill in the art, to achieve the same or similar functional purpose. It is therefore contemplated that the appended claims will cover any such modifications or embodiments as fall with the true scope of the invention. All of the U.S. Patents cited herein are hereby incorporated by reference as if set forth m their entirety

Claims: WHAT IS CLAIMED IS: 1. A control system having reduced quiescent current drawn from a power supply, said system comprising: a device having a status,- a microcontroller, having an active and a sleep mode of operation, for polling said status of said device during said active mode, initiating a function in response to a change in said status during said active mode, and for conserving quiescent current drawn from the power supply during said sleep mode, said microcontroller generating an output signal at a first voltage level during said active mode and for generating said output signal at a second voltage level during said sleep mode, said microcontroller comprising a sensor for switching said microcontroller from said sleep mode to said active mode; and a storage device for charging to said first voltage level during said active mode, and for discharging to a third voltage level during said sleep mode for triggering said sensor to switch from said sleep mode to said active mode . 2. The invention of claim 1, wherein said storage device comprises a resistor and a capacitor. 3. The invention of claim 2, wherein said storage device further comprises a diode in parallel with said resistor. 4. The invention of claim 2, wherein said storage device charges faster than said storage device discharges. 5 The invention of claim 4, wherein said polling is performed during a polling time period, and said storage device discharges in a longer time period than said polling time period. 6. The invention of claim 2, wherein said device comprises a debounce period, and said microcontroller shifts to said sleep mode after said polling said status of said device at the beginning of said debounce period. 7. The invention of claim 2, wherein said device comprises a debounce period, and said microcontroller repolls said status of said device at the end of said debounce period. 8. The invention of claim 7, wherein said microcontroller shifts to said sleep mode after said repolling said status of said device at the end of said debounce period. 9. The invention of claim 2, wherein said device comprises a debounce period equal to or greater than one half of the inverse product of said capacitor and said resistor. 10. A multiplexed control circuit for controlling a first and a second device having reduced quiescent current drawn from a power supply, said first and second devices being enabled and disabled by a first and second control switch, respectively, each of said switches having a status and a debounce period, said circuit comprising: a microcontroller, having an active and a sleep mode of operation, for polling the status of the first control switch at the beginning of the debounce period of the first switch during said active mode, initiating the first device m response to a change the status of the first control switch during said active mode, for polling the status of the second control switch at the beginning of the debounce period of the second switch during said active mode, initiating the second device in response to a change in the status of the second switch durmg said active mode, and for conserving quiescent current drawn from the power supply during said sleep mode, said microcontroller generating an output signal at a first voltage level during said active mode and for generating said output signal at a second voltage level during said sleep mode, said microcontroller comprising an interrupt sensor for switching said microcontroller from said sleep mode to said active mode; and an impedance for charging to said first voltage level during said active mode, and for discharging to a third voltage level durmg said sleep mode for triggering said interrupt sensor to switch from said sleep mode to said active mode. 11. The invention of claim 10, wherein said impedance comprises a resistor and a capacitor. 12. The invention of claim 11, wnerein said storage device further comprises a diode m parallel with said resistor 13 The invention of claim 10, wherein said impedance charges faster than said impedance discharges. 14. The invention of claim 13, wherein said polling of the first and second devices is performed during a polling time period, and said impedance discharges in a longer time period than said polling time period. 15. The invention of claim 10, said microcontroller shifts to said sleep mode after said polling said status of the first control switch at the beginning of the debounce period of the first control switch, and after said polling said status of the second control switch at the beginning of the debounce period of the second control switch. 16. The invention of claim 10, wherein said microcontroller repolls the status of the first control switch at the end of the debounce period of the first control switch, and repolls the status of the second control switch at the end of the debounce period of the second control switch. 17. The invention of claim 16, said microcontroller shifts to said sleep mode after said repoll g the status of the first control switch at the end of the debounce period of the first control switch, and after said repolling the status of the second control switch at the end of the debounce period of the second control switch. 18. The mvention of claim 11, wherein the shorter of the first and second debounce periods is equal to or greater than one half an inverse product of said capacitor and said resistor. 19. A method for reducing the quiescent current drawn from a power supply in a multiplexed control circuit for controlling a first and a second device, each of the first and second devices having a status corresponding with being enabled and disabled by a first and second control switch, respectively, said method comprising the steps of: executing a main routine on the control circuit and allowing an impedance to charge to a first voltage level of an output of the control circuit until the control circuit is determined to be in a sleep mode of operation ; conserving quiescent current drawn from the power supply during said sleep mode; changing said first voltage level of said output of the control circuit operating in said sleep mode to a second voltage level; enabling sa i d i mpedance to discharge to a second voltage level to trigger an interrupt sensor on the control c i rcuit and transfer the control circuit to a wake up mode of operation; changing said second voltage level of said output of the control circuit operating in said wake up mode to said first voltage level; polling the status of each of the switches for a polling time period, and returning the control circuit to said sleep mode after the passage of said polling time period ; and i nitiating the first devices in response to a change in the status of the first twice polled switch, and initiating the second device in response to a change in the status of the second twice polled switch.

Inventors: CAPORUSCIO PIER T, SETTLES STEVEN R, CAPORUSCIO, PIER, T., SETTLES, STEVEN, R.
Applicants: UNITED TECHNOLOGIES AUTOMOTIVE, UNITED TECHNOLOGIES AUTOMOTIVE, INC.
Application year: 1996
Main classification: G06F1
IPC codes: G05F1, G06F1