www
.mcu.com.cn
41
/
239
Rev.
1.00
CMS80F731x Reference Manual
5.
Power Management
Low-power modes fall into 2 categories:
◆
IDLE: Idle mode
◆
STOP: Sleep mode
When users use C language for program development, it is strongly recommended to use IDLE and STOP macros to control
the system mode, and do not directly set THE IDLE and STOP bits. The macros are as follows:
Enter idle mode: IDLE();
Enter sleep mode: STOP();
5.1
Power Management Register PCON
0x87
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
PCON
SMOD0
SMOD1
--
--
--
THEIR
STOP
IDLE
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
0
0
0
0
0
0
0
Bit7
SMOD0:
UART0 baud rate multiplier;
0=
UART0 baud rate is normal;
1=
The UART0 baud rate doubles.
Bit6
SMOD1:
UART1 baud rate multiplier;
0=
UART1 baud rate is normal;
1=
The UART1 baud rate is doubled.
Bit5~Bit3
--
Reserved, all must be 0.
Bit2
THEIR:
STOP status function wake-up enable bit;
(The system can be restarted by a power-down reset or an enabled external reset
regardless of the SWE value)
0=
Disables functional wake-up;
1=
Enables function wake-up (wake-up by external interrupts and timed wake-ups).
Bit1
STOP:
Sleep state control bit;
0=
Not in hibernation;
1=
Enters a hibernate state (exits STOP mode to automatically clear zero).
Bit0
IDLE:
Idle state control bit;
0=
Not in the idle state;
1=
Enter the idle state (exit IDLE mode to clear automatically).