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

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
Figure 17.7 Setting and Resetting of EW1 Mode
Figure 17.5 Timing on Suspend Operation
Figure 17.6 Setting and Resetting of EW0 Mode
N O T E S :
E W 0 m o d e o p e r a t i o n p r o c e d u r e
1 . S e l e c t 5 M H z o r l e s s f o r C P U c l o c k u s i n g t h e C M 0 6 b i t i n t h e C M 0 r e g i s t e r a n d t h e C M 1 7 t o C M 1 6 b i t s i n t h e C M 1 r e g i s t e r .
2 . T o s e t t h e F M R 0 1 b i t t o “ 1 ” , w r i t e “ 0 ” a n d t h e n “ 1 ” i n s u c c e s s i o n . M a k e s u r e n o i n t e r r u p t s w i l l o c c u r b e f o r e w r i t i n g “ 1 ” a f t e r w r i t i n g “ 0 ” .
3 . D i s a b l e s t h e C P U r e w r i t e m o d e a f t e r e x e c u t i n g t h e R e a d A r r a y c o m m a n d .
Figures 17.6 and 17.7 show the setting and resetting of EW0 mode and EW1 mode, respectively.
J u m p t o t h e r e w r i t e c o n t r o l p r o g r a m w h i c h h a s b e e n
t r a n s f e r r e d t o a n y a r e a o t h e r t h a n t h e f l a s h m e m o r y
( T h e s u b s e q u e n t p r o c e s s i n g i s e x e c u t e d b y t h e
r e w r i t e c o n t r o l p r o g r a m i n a n y a r e a o t h e r t h a n t h e
f l a s h m e m o r y )
E W 1 m o d e o p e r a t i o n p r o c e d u r e
Figures 17.5 shows the timing on suspend operation.
Transfer a CPU rewrite mode based rewrite control
program to any area other than the flash memory
W r i t e t o t h e F M R 0 1 b i t f r o m a p r o g r a m i n o t h e r t h a n t h e f l a s h m e m o r y .
Jan 27, 2006
S e t C M 0 a n d C M 1 r e g i s t e r s
FMR00
FMR46
S e t t h e F M R 0 1 b i t b y w r i t i n g “ 0 ” a n d t h e n “ 1 ” ( C P U
r e w r i t e m o d e e n a b l e d )
S e t t h e F M R 1 1 b i t b y w r i t i n g “ 0 ” a n d t h e n “ 1 ” ( E W 1
m o d e )
page 173 of 205
Erase
Starts
During Erase
E x e c u t e s o f t w a r e c o m m a n d s
( C P U r e w r i t e m o d e d i s a b l e d )
W r i t e “ 0 ” t o t h e F M R 0 1 b i t
P r o g r a m i n R O M
(1 )
Erase
Suspends
Check that the FMR00 bit is
set to “0”, and that the erase
operation has not ended.
(1 )
R e w r i t e c o n t r o l p r o g r a m
Jump to a specified address in the flash memory
Set the FMR01 bit by writing “0” and then “1”
(CPU rewrite mode enabled)
Execute the Read Array command
E x e c u t e s o f t w a r e c o m m a n d s
(CPU rewrite mode disabled)
Write “0” to the FMR01 bit
N O T E S :
1 . T o s e t t h e F M R 0 1 b i t t o “ 1 ” , w r i t e
“ 0 ” a n d t h e n “ 1 ” i n s u c c e s s i o n .
M a k e s u r e n o i n t e r r u p t s w i l l o c c u r
b e f o r e w r i t i n g “ 1 ” a f t e r w r i t i n g “ 0 ” .
Erase
Starts
During Erase
(2)
Erase
Ends
Check the status,
and that the program
ends normally.
(3)
17.4 CPU Rewrite Mode

Related parts for R5F21133DFP