Professional Documents
Culture Documents
Low Power Design Techniques
Low Power Design Techniques
© 2010 Microchip Technology Incorporated. All Rights Reserved. eXtreme Low Power
PWR0110 Slide 6 of 98
Defining Low Power
Useful Relationships
Watt’s Law:
Power(Watts ) V (volts) I (amperes)
Joule’s Law:
Energy (Joules) V (volts) I (amperes)t(sec)
Charge:
q(coulombs) I (amperes)t(sec)
Definition
Charge (ampereseconds) is the current used in a given period of
time. This is useful in calculating the power of each phase of an
application, or the total capacity of a battery.
dynamic dynamic
Power (μA*V)
…..
wake-up
static
Time (μs)
Definition
Dynamic (Active) Power is the power consumed while the
application is active and executing tasks. This power is dominated by
CMOS switching currents which are a function of execution frequency
and voltage. Additional active power is consumed by peripherals and the
I/O pins.
dynamic dynamic
Power (μA*V)
…..
wake-up
static
Time (μs)
Definition
Static Power is the power consumed while the application is on but
not active (i.e. system clock is off). This power dissipation comes from
transistor leakage inherent in CMOS processes, real-time clocks
necessary for time keeping which run during sleep, system voltage
supervisors, watch-dog timer circuits, I/O leakage and similar sources.
source drain
Sub-threshold Leakage
Drain to substrate
leakage
Smaller transistors increase static power BUT this can be offset by LOWER
DYNAMIC power since they can operate at a lower voltage.
Low power design is a series of tradeoffs at the design and application levels.
dynamic dynamic
Power (μA*V)
…..
PAVG wake-up
static
Time (μs)
Definition
Multimeter Vdd
Measures RMS current
Typically accurate down to 20nA-100nA 3.3V device
under test
© 2010 Microchip Technology Incorporated. All Rights Reserved. eXtreme Low Power
PWR0110 Slide 16 of 98
Power Budgeting & Planning
Power Budgeting & Planning
Operating Mode Summary
RUN [active power]
Core & Peripherals system clock speed
Typical current of 50-360µA/MHz (3V, 25°C)
LP INTRC (31kHz) as low as 8µA (1.8V, 25°C, PIC24F04KA201)
ACQUIRE
PROCESS
OUTPUT
RTCC
Run Run
B B
…
Run Run
A A
Idle wake-up
NOT TO SCALE
Time
Select Battery
New battery data can be added by
modifying “CustomBattery.csv”
6
5 PIC MCU
4 Competitor
3
2
1
0
Analog
Temp
Sensor S2
MCP9700 I2C
Serial E2
24AA256
S3
8Mhz
High
Current
Output
32kHz
Analog
Temp
Sensor S2
MCP9700 I2C
GPIO GPIO Serial E2
24AA256
S3
8Mhz GPIO
High
Current
Output
32kHz
3.30V
15μA 3mA 11mA
2.50V
2mA
8μA
32kHz
Choices are:
Use F device with internal LDO
Design for 2.5V (or 1.8V) I/O & power supply
Use multiple power supplies
The routine reads _T1IF (Timer 1 interrupt flag) and writes i every
time through the loop.
At 32MHz:
Loop time is 187ns
Measured average current is 19.1mA while in this loop
It will read & write RAM twice every 187ns
Does the application really need this response time?
Architectural
Dominance
PIC® MCU
PWM Controller
Vcc
Crystal X1 Vcc
32.768 kHz ___ Or LDO
X2 IRQ/CLK Vcc
MCU
Flexibility
Multiple clocking options
Dynamically configurable speeds and sources
Peripherals equipped for low power modes
Peripheral & wakeup source configuration options for low
power modes
Low power oscillators
Allow timekeeping with WDT, Timer1 or RTCC without
breaking the power budget
Low digital input leakage
Typically < 50nA, some as low as 5nA
Minimizes static power
Fast wake-up times
Minimizes time lost in wake-up transition zone
Defined as:
Standby (Sleep mode) power < 1μW
@3V Ipd < 333nA (PIC24H)
@2V Ipd < 500nA (PIC16,PIC18,PIC24F)
Definition
nanoWatt Technology
Microchip proprietary suite of design techniques used to design
microprocessors capable of power consumption below 1μW in
standby mode (Ipd).
IDLE mode
CPU OFF, Peripherals ON
On chip, high speed internal RC oscillator (INTRC) with PLL and
programmable post-scaler. This enabled:
Rapid startup in 1µs-5µs
Two speed start up (start on INTRC, then switch to crystal if needed)
Dynamically selectable clock speeds
Extended WDT time out interval
Maximum time out increased from 18ms to 131s
Low power redesign for Timer 1 (TMR1) and the 32kHZ secondary
oscillator (SOSC)
Low power software controllable BOR
Standard BOR was redesigned to consume less power
Software can turn it off when not needed, e.g. during sleep
Definition
nanoWatt XLP (eXtreme Low Power) Technology
Microchip proprietary technology used to design microprocessors with
power consumption below 100nA in standby mode, 800nA running
RTCC and 800nA running WDT.
DOZE
CPU slower than peripherals
IDLE
CPU off, Peripherals on
SLEEP
System clock off
DEEP SLEEP
RAM off, Vreg off
Primary
OSC RUN
CPU &
4X PLL
Peripherals
Secondary
OSC
Internal SLEEP
RC POSTSCALER
(31kHz to
16MHz
...
16MHz)
500kHz
31kHz
Optional Peripheral
Clock Source
WDT, PWRT
& FSCM
PIC16 XLP Clock Options
Internal CPU
RC POSTSCALER
IDLE
(31kHz to
16MHz
...
16MHz)
500kHz
31kHz
Optional Peripheral
Clock Source
WDT, PWRT
& FSCM
PIC18 XLP Clock Options
500kHz
8MHz) IDLE
31kHz
Optional Peripheral
Clock Source
WDT, PWRT
& FSCM
PIC24 XLP Clock Options
All resources
VDD VREG VDDCORE CPU active
POSC Post-Scaler RAM
Dynamically
HS
reconfigurable
system clock
INTRC Flash
LP
INTRC Peripherals
BOR
T1OSC Analog
SOSC
INT0
WDT
RTCC
Timer1
Can switch
dynamically
HS
Flash
INTRC
LP
INTRC Peripherals Affects all parts
BOR
of the chip
T1OSC Analog
SOSC
INT0
WDT
RTCC
Timer1
BOR
T1OSC
SOSC
Analog clock
INT0
Timer1
Mode current
WDT
RTCC
Timer1
Timer1
Peripheral Clocks All All ~25% of Run Anytime device is waiting for
Timer1 Current an event
IDLE Secondary OSC
INTRC
LPRC
ADC RC
Timer1 RTCC Timer1 All 50-100 nA base Most low-power apps
Secondary OSC WDT INTx
SLEEP INTRC BOR ADC 3-5 uA with
LPRC HLVD CVREF Internal
ADC RC Comparators Regulator
UART-RX
Secondary OSC RTCC RTCC < 50 nA base Long-life battery based
LPRC DSWDT DSWDT applications, applications
DEEP DSBOR DSBOR Peripherals add with long sleep times
SLEEP INT0 INT0 incremental
MCLR current
ULPWU
PIC24FJ64GA104
PIC24FJ64GB004
PIC24F16KA102
PIC24F04KA201
PIC18LF14K50
PIC18LF46K20
PIC18LF14K22
PIC18LF46J11
PIC18LF46J50
PIC16LF1827
PIC16LF1937
PIC16LF727
Deep Sleep (nA) 13 15 20 20 20 20
Sleep (nA) 20 60 20 34 24 54 60 100 25 25 200 200
WDT (nA) 500 500 500 460 450 820 780 600 400 400 200 200
32kHz SOSC/RTCC (nA) 600 600 600 650 790 850 830 600 500 500 500 500
1 MHz Run (μA) 80 93 80 131 125 275 275 131 195 195 250 250
Minimum Vdd (V) 1.8 1.8 1.8 1.8 1.8 2.0 2.0 1.8 1.8 1.8 2.0 2.0
Power
Power-On Reset Power-On Reset
Reset Pin (MCLR) Reset Pin (MCLR) Sleep
Peripherals
UART (RX) Deep Sleep
Wake Up Time Shorter (~1µ-5µS typ) Longer (same as POR)
Operation Time
Pin State Maintained Maintained
25ºC
870nA
Current (nA) 60ºC
430nA
25nA 20nA
Sleep Deep Sleep
PIC24F16KA102
25ºC specifications - Typ Ipd @ 1.8V
60ºC specifications - Max Ipd @ 1.8V
RTCC
Continues to keep time
RTCC pin can optionally output every second
I/O Pins
Maintain State
Special Deep Sleep registers retain values:
DSGPR0 – DS General Purpose Register 0
DSGPR1 – DS General Purpose Register 1
RTCC – Real Time Clock Calendar
DSBOR (Deep Sleep Brown Out Reset)
Monitors VDD during DS
DSWDT (Deep Sleep Watch Dog Timer)
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 82 of 98
Deep Sleep
Which Devices Support DS?
PIC MCU Family Min. Family Flash Pins Sleep DS WDT TMR1 1MHz
Vdd Members kB (nA) (nA) DSWDT RTCC Run
(nA) (nA) (µA)
PIC18F46J11 2.0 6 16-64 28-44 54 13 820 850 275
PIC18F46J50 2.0 6 16-64 28-44 60 15 780 830 275
PIC24F04KA201 1.8 2 4 14-20 25 20 400 500 195
PIC24F16KA102 1.8 4 8-16 20-28 25 20 400 500 195
PIC24FJ64GA104 2.0 4 32-64 28-44 200 20 200 500 250
PIC24FJ64GB004 2.0 4 32-64 28-44 200 20 200 500 250
dynamic
…..
Power
Wake-Up Time
….. static
Vreg start up time Time
typically 10μs
Required when using devices with internal LDO
Power Up Time
Typically 72ms
Clock start up time
Crystals can be many ms
Resonators can start up within 100μs-200μs
Two speed start up
Fast RC OSC starts up within 1μs-5μs at % accuracy
Operate application while waiting for crystal
Switch to crystal at PPM accuracy when crystal is ready
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 85 of 98
Deep Sleep
Break-Even Time
Power used during Sleep
t I V
P
sleep sleep sleep supply
15 0
15 0
Application Code
; DSWDT & DSBOR are configured by the configuration bits (_FDS) and are not accessible at run time
2 CALL ENABLE-RTCC ; configure and enable the RTCC and clock source
BSET DSCON, #DSEN ; setting this bit means that sleep command will invoke Deep Sleep
4 PWRSAV #0 ; enter within one instruction cycle or the #DSEN bit will be cleared
IF RCON<DPSLP> = 1 ; are we at the reset vector because of wake-up due to Deep Sleep?
{
CALL RESTORE-DSGPR0 ; retrieve context from deep sleep GPR0
1 CALL RESTORE-DSGPR1 ; retrieve additional context from deep sleep GPR1
CALL RESTORE-EEPROM ; retrieve any context saved in EEPROM
RTCC Alarm
Alarm resolution from seconds up
through days & years
Uses the same clock sources as DSWDT
Save power: avoid using two different clock
sources
Optionally output a seconds clock or
Alarm Pulse on RTCC Pin During Deep
Sleep
Provides a wake-up or alarm signal to
external devices
Time
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 98 of 98
Summary & References
nanoWatt XLP
Extreme Low Power Microcontrollers
PIC MCU Family Min Family Flash Pins Sleep DS WDT TMR1 1MHz
.Vdd Members kB (nA) (nA) DSWDT RTCC Run
(nA) (nA) (µA)
PIC12LF1822 1.8 1 3.5 8 20 - 500 600 75
PIC16LF1827 1.8 5 3.5-7 18-28 20 - 500 600 80
PIC16LF1937 [LCD] 1.8 8 7-28 28-44 60 - 500 600 93
PIC16LF727 1.8 5 3.5-14 28-44 20 - 500 600 80
PIC18LF14K22 1.8 2 8-16 20 34 - 460 650 131
PIC18LF14K50 1.8 2 8-16 20 24 - 450 790 125
PIC18F46J11 2.0 6 16-64 28-44 54 13 820 850 275
PIC18F46J50 2.0 6 16-64 28-44 60 15 780 830 275
PIC18F46K20 1.8 8 8-64 28-44 100 - 600 600 131
PIC24F04KA201 1.8 2 4 14-20 25 20 400 500 195
PIC24F16KA102 1.8 4 8-16 20-28 25 20 400 500 195
PIC24FJ64GA104 2.0 4 32-64 28-44 200 20 200 500 250
PIC24FJ64GB004 2.0 4 32-64 28-44 200 20 200 500 250
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 100 of 98
XLP Development Tools
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 101 of 98
Summary
References
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 102 of 98
Summary
XLP Home Page
www.microchip.com/xlp
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 103 of 98
Low Power Design with nanoWatt XLP
Summary
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 104 of 98
Thank You!
Trademarks
The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KeeLoq, KeeLoq logo,
MPLAB, PIC, PICmicro, PICSTART, rfPIC, SmartShunt and UNI/O are registered
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor
and The Embedded Control Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, In ‑Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, nanoWatt XLP, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo,
PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total
Endurance, TSHARC, WiperLock and ZENA are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their respective companies.
© 2009, Microchip Technology Incorporated, All Rights Reserved.
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 106 of 98
APPENDIX
Deep Sleep
Break Even Time Derivation (AN1267)
Charge used in Sleep (Power Down)
q t I
PD PD PD
t t
t INITIIDD t POR IPOR
BE PD
I I
PD DS
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 108 of 98
Deep Sleep
Break Even Time Derivation (AN1267)
q t I
PD PD PD
q t I
t I
t I
DS
PD DS
INIT IDD
POR POR
q q
PD DS
t I
t I
t I
t I
PD PD PD PDDS
INIT IDD POR POR
t I
t I
t I
t I
PD PD PD PDDS
INIT IDD POR POR
t
I I
t I
t I
PD PD PDDS
INIT IDD POR POR
t t
BE PD
I I
PD DS
© 2010 Microchip Technology Incorporated. All Rights Reserved. PWR0110 Slide 109 of 98
System Considerations
Lithium AAA Battery