We get many questions from customers asking what the IDD of a particular MCU is at a specific voltage/frequency/temperature combination. Obviously we cannot take data on all of MCUs across all possible combinations of operating conditions. So to help customers answer questions about power consumption under various conditions we created a battery life calculator.
How does it work?
This battery life calculator is a small executable program that allows the user to enter the operating conditions (voltage/frequency/temperature) along with battery capacity, the percentage of time the application spends in each of the MCUs modes (run, wait, stop3, stop2 and stop1), and a periodic wakeup interval. The calculator takes this information and determines the average current the MCU is consuming and an estimation of the resulting battery life.
MC9S08GB/GT Battery-life Calculator. Click to enlarge.
How does it calculate battery life?
The calculator was created by measuring currents on a few typical samples under many different conditions. The data results were analyzed and equations created for each mode of the MCU (i.e. run, wait, stop3, etc.) that fit the data as much as possible. The results of each equation are averaged together based on the percentages and wakeup interval the user provides. This resulting average current is then used to calculate the battery life based on the provided values of the battery capacity and an estimate of the battery self-discharge current for the type of battery. Capacities and self-discharge currents are provided for some common alkaline and lithium batteries.
Which devices are covered?
Currently, we only have a calculator for the MC9S08GB/GT 8-bit MCU family, but we are working on versions for the new QE128 Flexis Duo. The MC9S08GB/GT can be downloaded free of charge from:
http://www.freescale.com/files/microcontrollers/software/app_software/HCS08BATTCALC.zip?fpsp=1
-Scott


