Electronic – How do simple low power devices store setup when switched off

battery-operatedlow-powernon-volatile-memory

I often come across battery powered items that store their state when switched off, particularly 'simple' items like LED bicycle lights (e.g. flash or solid light, changing each time it is switched on).

How is this usually done? Do they charge a capacitor or capacitors when on to store a few bits of 'memory', or use a small amount of battery power to remember the state in a flip-flop, or store charge on the gate of a FET?

I'm very familiar with more complex items storing data in EEPROM, FLASH etc, but guess there is a common alternative for simple/cheap battery powered products.

This is a little bit like another question, but it is asking about shorter term storage, my bicycle light 'remembers' its state for at least a couple of weeks (after that, it's me who can't remember!) and battery life when off is much more than a year.

Best Answer

Many (most?) of these items have a small microcontroller inside to supply the functionality the device requires. Some small microcontrollers have a small amount of EEPROM built into them. The Microchip PIC10F322 is one such but there are many others now available.

Another method uses a capacitor to keep a few SRAM cells alive within the controller. However, this method is not used much any more because it is more expensive than using a controller with built-in EEPROM.