Fujitsu FR81S User Manual
CHAPTER 30: POWER CONSUMPTION CONTROL
5. Operation
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : POWER CONSUMPTION CONTROL
FUJITSU SEMICONDUCTOR CONFIDENTIAL
34
5.5.2. Activation of Watch Mode with power-shutdown
Activation of watch mode with power-shutdown is described below.
To activate watch mode with power-shutdown, follow the steps below:
⋅
"1" 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 watch mode with power-shutdown.)
⋅
Write "010" 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 watch mode with power-shutdown.
[Example] Sample program of watch mode activation (power-shutdown )
LDI
#value_of_PMU, R0
;SHDE bit ="1", IOCTMD/IOCT bit setting
LDI
#_PMUCTLR, R12
;
STB
R0, @R12
; Write
LDI
#value_of_timer, R0
;TIMER bit ="1", SLVL setting
LDI
#_STBCR, R12
;
STB
R0, @R12
; Write
LDUB @R12, R0
; Read (activation of watch mode with power-shutdown)
MOV
R0, R0
; Dummy processing for pipeline adjustment
NOP
; Dummy processing for pipeline adjustment
MB91520 Series
MN705-00010-1v0-E
1121