Power Supply
A consistent but highly efficient voltage regulator is crucial in power design. While there are many regulators to choose from, each comes with its own set of tradeoffs that must be accounted for.
Linear Regulators
Linear regulators may appear to be a low cost and cheap solution at first glance but are flawed by their inherent design. They act as a variable resistor at their base, wasting excess power in the form of heat. For an application that saves every microwatt of power, they are not a good selection for low power design.
If you require a stable voltage reference, consider using dedicated low power voltage reference modules, as opposed to a voltage regulator.
Switching Regulator
Switching regulators can be used to produce highly efficient designs at the cost of increased circuit complexity. Typically, these devices require additional passive components to program the device and provide energy storage sources.
Not all switching regulators are created equal. While many are highly efficient at moderate or high loads, most will suffer from very low efficiency at currents below a few milliamps. A subset of these devices is designed with ultra-low power design in mind and efforts to reduce quiescent current and boost regulation efficiency at very low currents. Typically, the maximum current output will suffer as a tradeoff, ensuring your system peak currents are not violated. Otherwise, additional bulk capacitors will be needed to supply your capacity for instantaneous currents.
Power Switches
Typically, within a device, many circuits are left idling and unused at any given time, wasting precious power with their quiescent current consumption. Digital power switches and power supplied over I/O lines are the solution to this but could have unintended consequences.
Load switches can be used to disconnect ICs from various power rails on your device. In addition, many will allow you to switch voltages that are higher or lower than your logic voltage, enabling your processor to have full control over your power distribution. With proper selection, switches with standby currents of 10-100nA are possible. Considering that each of the devices you are disconnecting could have quiescent currents ranging in the microamps, this method can allow for substantial power savings.
An alternate method of power switching for designs with a single voltage level can achieve the same level of power savings with no additional components. Microcontroller I/O pins can be used to power devices directly instead of using a switch as a middleman.
Enabling and disabling power rails can be useful, but some careful design choices must be considered. Suppose you have a master and a slave device communicating over an I2C bus. Typically, the I2C lines are pulled high to VCC to allow for open-drain communication. Now consider the implications of removing power to the slave device while keeping the I2C bus pulled high. Depending on the internal design of your slave device, it could potentially attempt to source its power from the I2C lines! Not only would this defeat the purpose of the power switch, but it could cause the slave to have a brownout if it cannot source enough current from the bus. Options to combat this scenario are to have additional control over the bus pullup resistors, be it another external switch that supplies them or control internal pullups integral to your microcontroller.
Real-Time Clock
Some battery-powered devices may require accurate timekeeping to timestamp records or trigger critical time-sensitive alarms. Many times, microcontrollers contain internal Real-Time Clocks (RTCs), which allow for easy implementation without adding more components. Typically only an external crystal and accompanying capacitors are required if a higher clock accuracy is needed.
Unfortunately, using this internal RTC may not be the best choice if you must trim every bit of power consumption possible. Looking at the datasheet for the PIC24FJ64GA202 microcontroller, the RTCC consumes an additional 1uA of power if enabled, regardless of whether it uses an internal crystal or an external crystal.
Another option is to use an external RTC optimized for low power consumption. The AB0815-T3 RTC is capable of operation currents as low as 55nA while using an external crystal. If accuracy can be sacrificed for power savings, its current consumption can drop to as low as 14nA when its internal oscillator is used without autocalibration. These RTC’s are usually packed with features, including external interrupt alarms to wake up other devices and general-purpose memory storage.