M16C/5L Group, M16C/56 Group
The following is an example program for entering stop mode:
Program Example: FSET
L2:
•
The CLKOUT pin outputs a high-level signal in stop mode. Thus, if stop mode is entered right after
output on the CLKOUT pin changes state from high to low, the low-level duration of the output
signal to the CLKOUT pin becomes shorter.
•
Do not enter stop mode from PLL operating mode. To enter stop mode from PLL operating mode,
first enter medium-speed mode, then set the PLC07 bit to 0 (PLL off).
•
Do not enter stop mode from low current consumption read mode. To enter stop mode from low
current consumption read mode, set the FMR23 bit in the FMR2 register to 0 (low current
consumption read mode disabled).
•
Do not enter stop mode from CPU rewrite mode. To enter stop mode from CPU rewrite mode, first
set the FMR01 bit in the FMR0 register to 0 (CPU rewrite mode disabled), then disable the DMA
transfer.
•
Do not enter stop mode when the oscillator stop/restart detect function is enabled. To enter stop
mode, set the CM20 bit in the CM2 register to 0 (oscillator stop/restart detect function disabled).
•
Do not enter stop mode when the FMR01 bit is 1 (CPU rewrite mode enabled), and do not enter
stop mode when the flash memory is stopped (bits FMR01 and FMSTP are 1).
28.6.4
Low Current Consumption Read Mode
•
Enter low current consumption read mode through slow read mode (see Figure 9.4 "Setting and
Canceling Low Current Consumption Read Mode" for details).
•
When the FMR23 bit in the FMR2 register is 1 (low current consumption read mode enabled), do
not set the FMSTP bit to 1 (flash memory stopped). Also, when the FMSTP bit is 1, do not set the
FMR23 bit to 1.
•
When the FMR01 bit in the FMR0 register to 1 (CPU rewrite mode enabled), do not set the FMR23
bit in the FMR2 register to 1 (low current consumption read mode enable).
28.6.5
Slow Read Mode
•
When the FMR01 bit in the FMR0 register to 1 (CPU rewrite mode enabled), do not set the FMR22
bit in the FMR2 register to 1 (slow read mode enabled).
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
I
BSET
0, CM1 ; Enter stop mode
JMP.B
L2
NOP
NOP
NOP
NOP
CLKOUT pin output
; Insert a JMP.B instruction
; At least four NOP instructions
Stop mode
28. Usage Notes
Page 768 of 803