TOP

How to set to enter low-speed mode properly?

Switching into low-speed mode can be divided into two situations: keep on external high-speed oscillator or external high-speed oscillator stopped.
1 If user cares little about power consumption, he can not stop the external high-speed oscillator.
Program settings are as follows:

B0BSET FCLKMD

2 Stop external high-speed oscillator to reduce power consumption.

B0BSET FCLKMD
B0BSET FSTPHX

The above instruction execution order can not be reversed, if user stops external high speed oscillator before switching into low speed mode, because the program is still running in the normal mode state at this time, once the oscillator stops vibration, the system will no longer execute, this will result in an error. For more information please refer to system operation mode section and system clock sections in datasheet.