R5F21133DFP RENESAS [Renesas Technology Corp], R5F21133DFP Datasheet - Page 198

no-image

R5F21133DFP

Manufacturer Part Number
R5F21133DFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY/R8C/Tiny SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R5F21133DFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/13 Group
Rev.1.20
REJ09B0111-0120
19. Usage Notes
19.1 Stop Mode and Wait Mode
19.1.1 Stop Mode
19.1.2 Wait Mode
When entering stop mode, set the CM10 bit to “1” (stop mode) after setting the FMR01 bit to “0” (CPU
rewrite mode disabled). The instruction queue pre-reads 4 bytes from the instruction which sets the
CM10 bit in the CM1 register to “1” (stop mode) and the program stops. Insert at least 4 NOP instruc-
tions after inserting the JMP.B instruction immediately after the instruction which sets the CM10 bit to
“1”.
Use the next program to enter stop mode.
• Program of entering stop mode
When entering wait mode, execute the WAIT instruction after setting the FMR01 bit to “0” (CPU re-
write mode disabled). The instruction queue pre-reads 4 bytes from the WAIT instruction and the
program stops. Insert at least 4 NOP instructions after the WAIT instruction.
Also, the value in the specific internal RAM area may be rewritten when exiting wait mode if writing to
the interna RAM area before executing the WAIT instruction and entering wait mode. The area for a
maximum of 3 bytes is rewirtten from the following address of the internal RAM in which the writing is
performed before the WAIT instruction. If this causes a problem, avoid by inserting the JMP.B instruc-
tion between the writing instruction to the internal RAM area and WAIT instruction as shown in the
following program example.
• Example to execute WAIT instruction
When accessing any area other than the internal RAM area between the writing instruction to the
internal RAM area and execution of the WAIT instruction, this situation will not occur.
Jan 27, 2006
Program Example
page 187 of 205
LABEL_001 :
LABEL_001:
BCLR
BSET
BSET
JMP.B
NOP
NOP
NOP
NOP
MOV.B
•••
JMP.B
FSET
BCLR
WAIT
NOP
NOP
NOP
NOP
1, FMR0
0, PRCR
0, CM1
LABEL_001
#055h,0601h
LABEL_001
I
1,FMR0
; CPU rewrite mode disabled
; Protect exited
; Stop mode
; Write to internal RAM area
; Interrupt enabled
; CPU rewrite mode disabled
; Wait mode
19. Usage Notes

Related parts for R5F21133DFP