DSP, Micros & Memory


Digital countdown timer may never need battery replacement

5 October 2005 DSP, Micros & Memory

Comprising a microprocessor, an LCD, a 32,768 kHz crystal, and little else, the basic countdown-timer circuit shown in the figure operates from a commonly-available CR2032 lithium coin-cell battery. Based on the circuit's calculated current drain, the battery may never need replacement over a projected 10-year operational life.

A half-dozen components are all it takes to build a battery-thrifty countdown timer
A half-dozen components are all it takes to build a battery-thrifty countdown timer

Careful selection of the battery and diligent exploitation of the microprocessor's low-power modes help minimise power consumption and so maximise battery life. The coin-cell battery's size and flat form-factor encourage miniaturisation for portable-system applications. In addition, the lithium cell presents a flat voltage vs time discharge curve that allows direct drive of the LCD's segments to produce high contrast without additional compensation circuitry. A typical CR2032 cell delivers approximately 200 mAhr of rated energy capacity. To achieve the design goal of 10 years of continuous operation, the system's average current consumption must not exceed 2,28 μA, which is calculated by dividing the battery's energy capacity by the system's operational life: 200 mAhr/10 years/365 days/24 hours = 2,28 μA.

A microprocessor from Texas Instruments' MSP430 family presents a low-standby-current demand of only 0,8 μA, which includes current drawn by its crystal oscillator, integrated LCD driver, and interrupt-driven wake-up timer. The 3½-digit LCD, a Varitronix model VI-302-DP, consumes an additional 1 μA. The total standby-current consumption for all active countdown timer components is thus 1,80 μA.

In normal (standby) operation, the microprocessor's 32 kHz external-crystal clock drives an internal counter that generates an interrupt once per second. The interrupt awakens the processor, which executes an active main-software loop that decrements a countdown register via direct BCD (binary-coded-decimal) subtraction. Adding a value of 99 (decimal) to the countdown register and discarding the leftmost digit performs a one-digit subtraction. For example, 21+99 = 120; dropping the '1' in the '100's place, yields a value of 20. As a bonus, this method directly displays the countdown register's contents on the LCD without requiring current-hungry binary-to-BCD conversions. As a final step, the main loop compares the countdown register's contents with zero to determine whether the pre-programmed time interval has expired. If so, the display flashes the time-out message. The main loop activates the CPU and its on-chip high-speed oscillator, which consume a total of 250 μA. Writing the software to execute 100 or fewer clock cycles - equivalent to 100 μs at the default 1 MHz CPU clock frequency - reduces current demand. With such a short active period, the main loop's total current consumption is virtually negligible: main loop = 250 mA x (100/1 million) = 0,025 μA.

Thus, the total current consumption for the digital countdown timer is the sum of the standby and main loop currents: 1,8 + 0,025 ~ 1,8 μA. At approximately 1,8 μA average current consumption, the countdown timer easily meets the 2,28 μA design goal and ensures more than 10 years of continuous operation. Given the device's low current drain, a designer could reduce the timer's cost and complexity by packaging the circuitry along with a non-replaceable battery. Many of the microprocessor's functions and I/O pins remain unused and available for additional features, and the compact firmware for implementing the counter occupies less than 250 bytes of 8 Kbyte of available flash memory.

Applications for the circuit range from exercise-routine timing to a restaurant-service-guarantee timer. In such an application, the restaurant's greeter presses the timer's reset switch to reset the processor and start a pre-programmed countdown interval. If the time interval expires without the customer being seated, the timer's display flashes to indicate that a guarantee of service went unmet.





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

ESP32-C6 achieves PSA-L2
iCorp Technologies DSP, Micros & Memory
Espressif Systems recently announced that its ESP32-C6 microcontroller has achieved PSA Certified Level 2 (PSA-L2) security certification, making it the first RISC-V-based MCU to reach this level.

Read more...
Microprocessor with integrated NPU
Avnet Silica DSP, Micros & Memory
The RZ/G3E from Renesas is a microprocessor integrated with quad CPU and NPU in one chip, improving power efficiency, reliability, and security.

Read more...
Nordic Semiconductor launches nRF Connect SDK Bare Metal option for nRF54L series
Avnet Silica DSP, Micros & Memory
This is a new, RTOS-independent software solution for Bluetooth LE development, designed to ease developers’ migration from the legacy nRF5 SDK and nRF52 series to the next-generation nRF54L series.

Read more...
Dual-core support in NECTO Studio
DSP, Micros & Memory
MIKROE recently announced that version 7.3.0 of its NECTO Studio Integrated Development Environment now supports dual-core MCUs, allowing designers to program and debug each core independently.

Read more...
Post Quantum Cryptographic firmware library
DSP, Micros & Memory
The STM32 post-quantum cryptographic library enables developers to satisfy application requirements for any combination of data integrity, confidentiality, identification/authentication, and nonrepudiation.

Read more...
MultiVolt series of oscillators
Future Electronics DSP, Micros & Memory
The ECS-3225MVQ from ECS Inc. is a compact, quartz-based MultiVolt oscillator designed for precision timing in automotive, industrial, and portable electronic systems.

Read more...
MCU platform for battery-powered devices
Altron Arrow DSP, Micros & Memory
The MCX W23 is a new dedicated wireless MCU platform from NXP for battery-powered sensing devices.

Read more...
Drive innovation with AURIX TriCore MCUs
Future Electronics DSP, Micros & Memory
Infineon’s AURIX TriCore family balances safety, performance, and energy efficiency to offer a scalable and future-ready portfolio.

Read more...
Elevate your motor control designs
EBV Electrolink DSP, Micros & Memory
Built on an Arm Cortex-M33 core running up to 180 MHz, the MCX A34 family combines high-performance math acceleration and advanced motor control subsystems to unlock efficient motor drive solutions.

Read more...
Embedded platform for compute-intensive applications
iCorp Technologies DSP, Micros & Memory
The Quectel QSM368ZP-WF is a fully featured embedded ARM platform optimised for compute-intensive industrial and IoT applications.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved