Fujitsu FR81S User Manual
CHAPTER 30: POWER CONSUMPTION CONTROL
5. Operation
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : POWER CONSUMPTION CONTROL
FUJITSU SEMICONDUCTOR CONFIDENTIAL
41
5.6.2. Activation of Stop Mode
Activation of stop mode is described below.
To activate stop mode, follow the steps below.
⋅
"0" is written in bit7:SHDE of the PMUCTLR register.
⋅
When performing PLL RUN, CPU must go into main RUN state first. (When performing sub RUN state,
it transits directly to stop mode.)
⋅
Write "100" to bit7:STOP, bit6:TIMER, bit5:SLEEP in the STBCR register.
⋅
Read the STBCR register.
In FR81S core, if the read value will not be used in the next instruction, that instruction is executed before
the read is completed. Perform dummy processing to use the read value in the next instruction so as not to
make the program progress before entering stop mode.
[Example] Sample program of stop mode activation
LDI
#value_of_stop, R0
; STOP bit ="1", SLVL setting
LDI
#_STBCR, R12
;
STB
R0, @R12
; Write
LDUB @R12, R0
; Read (activation of stop mode)
MOV
R0, R0
; Dummy processing for pipeline adjustment
NOP
; Dummy processing for pipeline adjustment
MB91520 Series
MN705-00010-1v0-E
1128