Professional Documents
Culture Documents
Embedded Systems
4 - Hardware Architecture
CPU Input/Output mechanisms Memory Buses and Aux I/O Input/Output interfaces
RMR2012
Power Management
RMR2012
Most modern CPUs are designed with power consumption in mind to some degree. Power vs. energy:
heat depends on power consumption;
Maths is not everything
RMR2012
Voltage drops: power consumption proportional to V2. Toggling: more activity means more power. Leakage: basic circuit characteristics; can be eliminated by disconnecting power.
Maths is not everything
RMR2012
Reduce power supply voltage. Run at lower clock frequency. Disable function units with control signals when not in use.
2008 Wayne Wolf
RMR2012
RMR2012
RMR2012
Specint92!! Specfp92 29%!! ! 29%!! ! 35%!! ! 38%!! ! 99%!! ! 28% 17% 17% 76% 30% 97%
oating-point!
RMR2012
Power-down costs
RMR2012
Idle: stops CPU clock, with logic still powered. Sleep: shuts off most of chip activity; 3 steps, each about 30 s; wakeup takes > 10 ms.
RMR2012
Prun = 400 mW
run
10 !s 90 !s 10 !s 90 !s 160 ms
idle
2008 Wayne Wolf
Maths is not everything
sleep
Psleep = 0.16 mW
Pidle = 50 mW
RMR2012
RMR2012
e on-demand
MSP430: achieving ultra-low power
Extended Ultra-low Power standby mode Minimum active duty cycle Performance on-demand
RMR2012
13
RMR2012
14
RMR2012
15
RMR2012
16
RMR2012
17
RMR2012
18
RMR2012
19
RMR2012
20
RMR2012
Use bit mask instead of bitfields for unsigned int and unsigned char. Use unsigned data types where possible Use pointers to access structures and unions Use static const class to avoid run-time copying of structures, unions, and arrays. Avoid modulo Count down for loops
21
Maximize the time in standby (LPM3) Use interrupts to control program flow Replace software functions with peripheral hardware Power manage internal peripherals Power manage external devices Device choice can make a difference
Maths is not everything
RMR2012
22