Renesas M16C/64C User Manual page 802

Table of Contents

Advertisement

M16C/64C Group
The following is an example program for entering stop mode:
Program Example: FSET
L2:
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 con-
sumption 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).
32.6.4
Low Current Consumption Read Mode
Enter low current consumption read mode through slow read mode (see Figure 9.5 "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).
32.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).
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
I
BSET
0, CM1 ; Enter stop mode
JMP.B
L2
; Insert a JMP.B instruction
NOP
; At least four NOP instructions
NOP
NOP
NOP
32. Usage Notes
Page 769 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents