Professional Documents
Culture Documents
Industry Consultant
RomanB60156@yahoo.com
rev: 10/23/01
Microcontrollers Application Note #2 orig: 7/28/97
Dynamic Power Consumption Calculations
CASE #1 (uPD78053)
The first thing to note is that the DC characteristics, as shown in the chart on
page 45, are not as useful as the characteristic curves shown on page 66.
However, the 0.54S exceeds the minimum specified value of 0.8S. Therefore,
the PCC (processor clock control) register will have to be set to PCC=01. We
then have:
AN_uc2.doc
The characteristic graphs for IDD vs VDD, as shown on page 66, show power
consumption for the micro at various PCC register settings and for different
modes. However, the curves are based on a crystal frequency (fX) of 5.0 MHz,
so we need to calculate how much of a difference this is from our situation.
Therefore, the numbers shown on the page 66 curves are more conservative
than the user’s conditions. So, to find the operating current of the device look
down the chart to find the PCC=01H curve which is the second one from the top.
This curve shows that for Vcc=2.85V, the operating current should be about
1.8mA.
To find the standby current, locate the HALT (X1 stop, XT1 oscillation) curve,
which is the last curve on the graph. This curve shows that for Vcc=2.85V, the
standby current should be about 0.0032mA.
To find the total power consumption, the user will have to determine what
percentage of the time the micro will be in operating mode and what percentage
the micro will be in standby mode. Then total power consumption can be linearly
calculated by:
Page 2 of 20
Page 3 of 20
Page 4 of 20
CASE #2 (uPD789417)
If a user is using the K0s microcontroller with-out the LCD, the power
consumption will be even lower.
Operating Voltage 1.80 2.00 2.20 2.70 3.00 3.30 4.00 4.50 5.00 5.50
1_Run@fx 0.106 0.123 0.141 0.189 0.223 0.257 0.348 0.417 0.488 0.562
2_Run@Fx/4 0.059 0.071 0.085 0.121 0.147 0.174 0.247 0.306 0.369 0.434
3_Halt@fx 0.047 0.057 0.069 0.103 0.127 0.153 0.222 0.279 0.341 0.405
4_Halt@fx/4 0.044 0.054 0.066 0.098 0.121 0.147 0.214 0.269 0.329 0.391
5_Run@fx vs 0.047 0.052 0.056 0.068 0.076 0.083 0.101 0.111 0.119 0.128
Run@fx/4
6_Run@ fx vs Halt@ 0.062 0.069 0.075 0.091 0.102 0.110 0.134 0.148 0.159 0.171
fx/4
Saving 6 vs 5 0.015 0.017 0.019 0.023 0.026 0.027 0.033 0.037 0.040 0.043
Page 5 of 20
Data in graphical form:
uPD789418
Typ performance @1 MHz @25 deg.C
0.600
0.550
0.500
Current consumption (mA)
0.450
0.400
0.350
0.300
0.250
0.200
0.150
0.100
0.050
0.000
1.80 2.00 2.20 2.70 3.00 3.30 4.00 4.50 5.00 5.50
1_Run@fx 2_Run@Fx/4
3_Halt@fx 4_Halt@fx/4
Page 6 of 20
CASE #3 (uPD789012)
HALT mode is very useful mode because the main clock is still oscillating.
Therefore, a watchdog timer could be used to create a very low power timer.
Page 7 of 20
CASE #4 (uPD703033)
V850 based 32 bit microcontrollers consume very little power during operation.
The following example shows the uPD703033AGC power consumption.
Known conditions:
1. Use the following devices: mask = uPD703033AGC V1.0 , flash =
uPD70F3033AGC V1.0
2. Supply voltages: VDD = 5V, EVDD = 5V, BVDD = 5V, AVDD = 5V
3. fCPU = fxx
4. Operating tmperature = 20 ºC
Measured values:
Measured values:
Page 8 of 20
Flash(IDLE) : Idd = 0.0207 * fxx + 0.333
Mask (IDLE) : Idd = 0.0182 * fxx + 0.250
Page 9 of 20
Data in graphical form:
uPD703033
Typ performance @5V @20 deg.C
35.000
30.000
Current consumption (mA)
25.000
20.000
15.000
10.000
5.000
0.000
4.00 8.00 12.00 16.00 20.00
Page 10 of 20
CASE #5 (uPD789881)
NEC has introduced a new Ultra Low Power K0s microcontroller, the
uPD789881, which provides enormous benefits for low power applications.
The first main benefit of the device is that the main clock oscillator works at
32KHz. The on-board internal oscillator boosts the operating frequency of the
core to 500KHz.
The device only works between 2.7V to 3.6V, unlike other K0s devices which
operate from 1.8V to 5.0V. However, the main reason for having the wider
operating voltage was to increase battery life. The uPD789881 device will still
provide a longer battery life over the much more desirable 2.7V to 3.6V than
another micro will at 1.8V to 5.0V. Also, while operating down to 2.7V, a 3.3V
LCD should still be legible with-out having to use voltage booster circuitry.
Power consumption is about the same for mask and flash devices.
µPD789881 Series
UART
UART I/O
I/Oports
ports
Built-in
Built-in baud
baud rate
rate
generator
generator
(up
(up to
to 9600
9600 bps)
bps) ROM
ROM RAM
RAM
8-bit
8-bitHardware
Hardware 8-bit
8-bitTimer
Timer//
Multiplier
Multiplier Event
EventCounter
Counter
78K/0S
78K/0S
CPU 8-bit
8-bitTimer
Timer//
Watchdog
WatchdogTimer
Timer CPUCore
Core
Event
EventCounter
Counter
Internal
Internal 16-bit
16-bitTimer
Timer//
Interrupt
InterruptControl
Control Sub-Clock
Sub-Clock
Oscillator
Oscillator Event
EventCounter
Counter
-Instruction
-InstructionCycle
Cycle
31
31µs
µs@ @3232KHz,
KHz, 32.786
32.786 kHz
kHz
44µs
µs@@500
500kHz
kHz or
or
-Operating
-Operatingvoltage
voltagerange
range 38.4
38.4 kHz
kHz
VVDD ==2.7
2.7to
to3.6
3.6VV
DD
Page 11 of 20
Product Features
Note 1: In Sub HALT mode, CPU is inactive, one 8-bit Timer and the LCD C/D is active.
2: These values are except for the LCD drive current.
3: The above given values are target for the mask products.
Flash product will have a higher power consumption.
Page 12 of 20
Comparison vs other NEC uC
789881
789881Power
PowerConsumption
Consumption
0.07
0.07
0.06
0.06
0.05
0.05
0.04
mW 0.04
mW0.03
0.03 3V
0.02 3V
0.02
0.01 2.7V
0.01 2.7V
0
0 Normal Halt Stop
Normal Halt Stop
Mode Mode Mode
Mode Mode Mode
Operating Mode
Operating Mode
789166Y Power Consumption
789166Y Power Consumption
0.06 mW @ 3v 12
12
10
10
8
8
5V
Page 13 of 20
Now, how about if the microcontroller performs real tasks such taking A/D
samples and updating the Real Time Clock. The clock utilization would then be:
IDD
T4
2 minute loop
IDD1
21 µA
T1 T2 T3 T3
IDD3:
6.1 µA
IDD4:
0.9 µA
Time
A/D Other RTC RTC
Conversion Calculation Update Update
Page 14 of 20
The average current for this example: 0.926 uA
Page 15 of 20
CASE #6 (SoCLite)
NEC has a family of ARM based microcontrollers which feature an ARM7 core
surrounded by gate array logic, called UDL (User Defined Logic), which the user
can program with his own netlist. The power consumption for the device then
consists of two parts: a) calculating the power consumption for the ARM core and
b) calculating the power consumption of the UDL gate array logic.
The gate array logic used for the SoCLite is an embedded array (EA-9HD), which
is 0.35 micron technology. The power consumption can be obtained for the gate
array logic using the design manuals for the EA-9HD, but it is highly dependent
upon clock frequency, capacitance loading, and amount of logic. The power
consumption can accurately computed once the final netlist has been submitted
to NEC. In the mean time, the user can use the following calculations to provide
a close approximation to the final values.
A very rough power consumption calculation for the gate array logic consists of :
A more accurate calculation of the gate array power consumption consists of the
following tables:
An accurate calculation of the power consumption of internal circuits requires a very large
amount of information, such as capacitance, number of synchronously operating blocks, and
operating frequency of each block.
This chapter provides a power consumption calculation method that divides the power
consumption of the internal circuit into combination circuits, latches, and flip-flops. This
calculation should be used to review circuit power consumption. However, if the results are
to be used to calculate the life-span of a battery, an extra margin should be provided.
Page 16 of 20
CellNote: Number of cells that operate at f
Note “Cell” is not number of blocks.
(2) Latches
PDLatch = {PD(Gate = ON) N + PD(Gate = OFF) (1 – N)} f Cell (W)
where:
f: Operating frequency of data (MHz)
CellNote: Number of cells that operate at f
N: Percentage of “Gate = ON” = Tgate(on)
-------------------------------
Tgate(on) + Tgate(off)
PD(Gate = ON): 0.516 (W/Cell/MHz)
PD(Gate = OFF): 0.0385 (W/Cell/MHz)
Page 17 of 20
(3) D-F/F, JK-F/F, shift registers, and counters
where:
f: Operating frequency of clock (MHz)
CellNote: Number of cells that operate at f
N: T(data)
-----------
T(clk)
(4) T-F/F
where:
f: Operating frequency of clock (MHz)
CellNote: Number of cells that operate at f
Page 18 of 20
As shown in Figure A-1, the unit power consumption when F/O = 2 is an extremely small 0.66 W/MHz.
Because power consumption has a significant effect on reliability, a realistic value must be used.
The value of load = 4.98 (F/I equivalent) covers a distribution of about 70% of load values, based on
statistical data accumulated at NEC, such as wiring length and pin pairs.
where:
F/O : 2 + l : 2.98
Page 19 of 20
Summary
These examples show some typical power consumption examples. The best
way to calculate power consumption for your K0/K0s/K4 application is to use the
Microsoft Excel Spreadsheet which can be found on the NEC CD-ROM.
Roman Budek
Page 20 of 20