How to set before entering power down mode for low power consumption?
Before entering Power down mode, you need to make some settings as follows:
1. First of all, set IO port according to I/O state, if the outside is low, the output is set to low, and if the input is high, set pull-up or output high. That is, to ensure IO has a fixed state.
2. Turn off LCD display (LCDBNK = 1), disable LCD driver (LCDENB = 0).
3. If you enable LBTENB function, as LBT has two different application circuit, the settings are different:
a) If use P4.1 and P4.2, P4.1 is set as IO port, close LBT function (LBTENB = 0);
b) If you only use P4.2 port, you only need to close the LBT function (LBTENB = 0) (note that there will be current leakage this connection method itself);
4. Disable CPR (AVEENB=0, ACMENB=0, AVDDRENB=0, BGRENB=0, CPRENB=0);
5. Disable ADC (ADCENB=0);
6. Disable PGIA (AMPENB=0);
1. First of all, set IO port according to I/O state, if the outside is low, the output is set to low, and if the input is high, set pull-up or output high. That is, to ensure IO has a fixed state.
2. Turn off LCD display (LCDBNK = 1), disable LCD driver (LCDENB = 0).
3. If you enable LBTENB function, as LBT has two different application circuit, the settings are different:
a) If use P4.1 and P4.2, P4.1 is set as IO port, close LBT function (LBTENB = 0);
b) If you only use P4.2 port, you only need to close the LBT function (LBTENB = 0) (note that there will be current leakage this connection method itself);
4. Disable CPR (AVEENB=0, ACMENB=0, AVDDRENB=0, BGRENB=0, CPRENB=0);
5. Disable ADC (ADCENB=0);
6. Disable PGIA (AMPENB=0);