During Deep power-down mode, the contents of the SRAM and registers are not retained except for a small amount of data which can be stored in five 32-bit general purpose registers of the power management unit block. All functional pins are tri-stated in Deep power-down mode except for the WAKEUP pin.
DeepPowerDown.h@0:959f4e23f133, 2015-01-03 (annotated)
- Committer:
- bundgus
- Date:
- Sat Jan 03 17:22:30 2015 +0000
- Revision:
- 0:959f4e23f133
During Deep power-down mode, the contents of the SRAM and registers are not retained except for a small amount of data which can be stored in five 32-bit general purpose registers of the power management unit block. All functional pins are tri-stated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bundgus | 0:959f4e23f133 | 1 | /* |
bundgus | 0:959f4e23f133 | 2 | * DeepPowerDown.h |
bundgus | 0:959f4e23f133 | 3 | * |
bundgus | 0:959f4e23f133 | 4 | * Created on: Dec 26, 2014 |
bundgus | 0:959f4e23f133 | 5 | * Author: bundgus |
bundgus | 0:959f4e23f133 | 6 | */ |
bundgus | 0:959f4e23f133 | 7 | |
bundgus | 0:959f4e23f133 | 8 | /* AN11027 |
bundgus | 0:959f4e23f133 | 9 | 2.1.3 Deep power-down mode |
bundgus | 0:959f4e23f133 | 10 | In Deep Power-down mode, power and clocks are shut off to the entire chip with the |
bundgus | 0:959f4e23f133 | 11 | exception of the WAKEUP pin. |
bundgus | 0:959f4e23f133 | 12 | During Deep power-down mode, the contents of the SRAM and registers are not retained |
bundgus | 0:959f4e23f133 | 13 | except for a small amount of data which can be stored in five 32-bit general purpose |
bundgus | 0:959f4e23f133 | 14 | registers of the power management unit block. |
bundgus | 0:959f4e23f133 | 15 | All functional pins are tri-stated in Deep power-down mode except for the WAKEUP |
bundgus | 0:959f4e23f133 | 16 | pin. |
bundgus | 0:959f4e23f133 | 17 | |
bundgus | 0:959f4e23f133 | 18 | On the LPC11xx, LPC11xx(L) and LPC11Cxx parts, the RESET /PIO0_0 pin needs to |
bundgus | 0:959f4e23f133 | 19 | be externally pulled up via 10k – 47k resistor when in deep power-down mode. If the pin |
bundgus | 0:959f4e23f133 | 20 | is left floating, user will see an increase in current consumption. |
bundgus | 0:959f4e23f133 | 21 | |
bundgus | 0:959f4e23f133 | 22 | */ |
bundgus | 0:959f4e23f133 | 23 | |
bundgus | 0:959f4e23f133 | 24 | #ifndef DEEPPOWERDOWN_H_ |
bundgus | 0:959f4e23f133 | 25 | #define DEEPPOWERDOWN_H_ |
bundgus | 0:959f4e23f133 | 26 | |
bundgus | 0:959f4e23f133 | 27 | class DeepPowerDown { |
bundgus | 0:959f4e23f133 | 28 | public: |
bundgus | 0:959f4e23f133 | 29 | DeepPowerDown(); |
bundgus | 0:959f4e23f133 | 30 | virtual ~DeepPowerDown(); |
bundgus | 0:959f4e23f133 | 31 | void powerDown(); |
bundgus | 0:959f4e23f133 | 32 | void setGPREG0(unsigned int newregval); |
bundgus | 0:959f4e23f133 | 33 | unsigned int getGPREG0(); |
bundgus | 0:959f4e23f133 | 34 | void setGPREG1(unsigned int newregval); |
bundgus | 0:959f4e23f133 | 35 | unsigned int getGPREG1(); |
bundgus | 0:959f4e23f133 | 36 | void setGPREG2(unsigned int newregval); |
bundgus | 0:959f4e23f133 | 37 | unsigned int getGPREG2(); |
bundgus | 0:959f4e23f133 | 38 | void setGPREG3(unsigned int newregval); |
bundgus | 0:959f4e23f133 | 39 | unsigned int getGPREG3(); |
bundgus | 0:959f4e23f133 | 40 | void setGPREG4(unsigned int newregval); |
bundgus | 0:959f4e23f133 | 41 | unsigned int getGPREG4(); |
bundgus | 0:959f4e23f133 | 42 | }; |
bundgus | 0:959f4e23f133 | 43 | |
bundgus | 0:959f4e23f133 | 44 | #endif /* DEEPPOWERDOWN_H_ */ |