Fujitsu FR81S User Manual

Page of 2342
CHAPTER 30: POWER CONSUMPTION CONTROL 
 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : POWER CONSUMPTION CONTROL 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
46 
5.7.2. Activation of Stop Mode with power-shutdown   
Activation of stop mode with power-shutdown is described below. 
To activate stop 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 stop mode with power-shutdown.) 
  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 with power-shutdown. 
[Example] Sample program of stop mode with power-shutdown activation 
 
LDI 
#value_of_PMU, R0  
;SHDE bit ="1", IOCTMD/IOCT bit setting 
 
LDI 
#_PMUCTLR, R12   
;   
 
STB 
R0, @R12 
 
; Write 
 
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 with power-shutdown) 
 
MOV 
R0, R0   
 
; Dummy processing for pipeline adjustment 
 
NOP 
 
 
 
; Dummy processing for pipeline adjustment 
 
MB91520 Series
MN705-00010-1v0-E
1133