Bookmark and Share Printer-friendly version Email to a Friend

Digital countdown timer never needs battery replacement

( 01 Sep 2005 )
Mark E. Buccini, Texas Instruments

Using just an MCU, LCD, 32kHz crystal and a single resistor a basic countdown timer can be built that achieves better than 10 years of continuous operation from a common coin cell battery shown in Figure 1.



An application for such a countdown timer could be service guarantee within a certain time at a restaurant, for example. The server starts the countdown timer by pressing a single button that resets MCU automatically starting at a preprogrammed interval visible on the LCD. Should the countdown timer interval expire, a time-out message will flash indicating the service guarantee was not met.

The two design keys used in the application minimize power consumption and maximize battery life, and are the careful choice for the battery and diligent usage of the MCU’s low-power modes.

A CR2032 lithium coin-cell battery is selected for the battery specifically for its small form factor supporting portable applications, flat discharge curve allowing direct LCD drive with no compensation and extremely low-leakage for extended operation. The rated capacity of a typical CR2032 is ~200mA hours of energy.

To achieve the design goal of 10 years of continuous operation, the average system current consumption must not exceed 2.28uA as calculated by dividing the battery energy value by the operational life of the application as follows:



The MCU is selected because of its low standby current of 0.8uA that includes a crystal oscillator, integrated LCD driver and interrupt driven wake timer. The 31/2 digit LCD display adds an additional 1uA of system current consumption. The total standby current consumption for all active countdown timer components is:



The MCU operates normally in standby with a one second interrupt triggered from a timer clocked from the 32kHz crystal. The timer interrupt returns the MCU to an active mainloop thatdecrements in software a countdown register using direct BCD subtraction that significantly reduces software overheard. By adding decimally 99h to software countdown register the number 1 is actually subtracted. Direct BCD subtraction is not only effect, but allows the countdown to be directly displayed on the LCD without a current wasting binary-BCD subtraction routine.


Software next displays the value in the countdown register on the LCD. Finally, the value in the countdown register is compared to zero to determine if the preprogrammed interval has expired and if so f lashes the timeout message.

The mainloop requires the CPU and on-chip high-speed oscillator to be active with a current consumption of 250uA. The software has been written to reduce cycle count to less 100— equivalent to 100us at the default 1MHz CPU frequency. With such a short active period the additive current consumption of the mainloop is virtually negligible and calculated as follows:



Total current consumption for the digital countdown timer is the sum of the standby and mainloop:



At ~1.8uA average current consumption, the countdown timer easily achieved the design goal of staying below 2.28uA thus allowing over 10 years of continuous operation. With 10 years of battery life the countdown timer could be built with a permanent battery simplifying construction and reducing the cost of the unit. Plenty of MCU functions and pins are unused and can be used to add additional features. The firmware required to implement the counter is compact requiring less than 250 bytes of the 4k bytes available Flash memory on the MCU.


Author information
Mark E. Buccini is the marketing director of the Advanced Embedded Controls Division, Texas Instruments.

 
Printer-friendly version Email to a Friend
 
Article Rating 
Average Rate: No rating yet
 
Poor Quite Good Good Very Good Excellent
 
 
ADVERTISEMENT
 
Related Content 

bb

 
 
ON-DEMAND WEBCASTS


 
 
Highest Rated  
Feedback Loop  

ADS BY GOOGLE 
 
 
 
ADVERTISEMENT
Press Release 
 
TECHNOLOGY NEWS
 
 
 
PRODUCT NEWS
 
FEATURED SPONSORS
 
 
 
DESIGN CENTERS
 
ADVERTISEMENT
     
Reference Designs 
   
     
 
 
 
 

 

RSS
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

POLL
What type of environmental regulation do you think will be most beneficial for the tech industry?
Proper recycling and disposal
Push for power efficiency and energy conservation
Chemical/lead regulation
View results


 
     
 
Power Technology E-newsletter 
Power.org Releases Power Architecture 32-bit Application Binary Interface Supplement
EDNA, May 11
POL Regulators Designed for Energy-efficient Computing
EDNA, March 11
Fairchild Revolutionizes Power Savings
EDNA, January 11
Lattice Transforms Board Power and Digital Management
EDNA, November 10
 
Analog E-newsletter 
12V Dual-channel Synchronous Buck Converter Features Integrated FETs
EDNA, February 10
Power MOSFETs features reduced top-side thermal impedanc
EDNA, January 10
 
     
 
KNOWLEDGE CENTER
 
Texas Instruments: DaVinci™ Technology
 
Texas Instruments: Safe Bet Series
 
 
INDUSTRY LINKS
 
Photonics Association (Singapore)
Singapore Industrial Automation Association (SIAA)
Taiwan Semiconductor Industry Association (TSIA)
 
 
OUR SPONSORS
 






Keithley Instruments
With more than 60 years of measurement expertise, Keithley Instruments has become a world leader in advanced electrical test instruments and systems from DC to RF (radio frequency). Our products solve emerging measurement needs in production testing, process monitoring, product development, and research...
 
 
 
     
 

EDN India | EDN Taiwan | EDN Korea | EDN Japan | EDN China | EDN | EDN Europe

 
ABOUT EDN Asia | CONTACT US
   
© 2012 EDN Asia All rights reserved.