English
Language : 

M16C62P_06 Datasheet, PDF (309/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
F ull status check
FMR06 =1
and
FM R 07=1?
NO
FM R 07=0?
YES
YES
C om m and
sequence error
NO
Erase error
(1 ) E xe cu te th e cle a r sta tu s re g iste r co m m a n d a n d se t th e S R 4 a n d S R 5
bits to “0” (com pleted as expected) .
(2) R ew rite com m and and execute again.
(1) E xecute the clear status register com m and and set the S R 5 bit to “0”.
(2) E xecute the lock bit read status com m and. S et the F M R 0 2 bit to “1”
(lo ck b it d isa b le d ) if th e lo ck b it in th e b lo ck w h e re th e e rro r o ccu rre d is
set to “0” (locked).
(3 ) E xe cu te th e b lo ck e ra se o r e ra se a ll u n lo cke d b lo ck co m m a n d a g a in .
(4) E xecute (1), (2) and (3) at least 3 tim es until an erase e rror is not
g e n e ra te d .
N O T E : If sim ila r e rro r o ccu rs, th a t b lo ck ca n n o t b e u se d .
If th e lo ck b it is se t to “1 ” (u n lo cke d ) in (2 ) a b o ve , th a t b lo ck
cannot be used.
FM R 06=0?
YES
NO
P rogram error
[W hen a program operation is exe cuted]
(1) E xe cu te the clear status register com m and and set the S R 4 bit to “0”
(co m p le te d a s e xp e cte d ) .
(2) E xe cu te the read lock bit status com m and an d set the FM R 02 bit to “1 ”
if the lock bit in the block w here the error occurred is set to 0.
(3 ) E xe cu te th e p ro g ra m co m m a n d a g a in .
N O TE : W hen a sim ilar e rror occurs, th at block canno t be used.
If th e lo ck b it is se t to “1 ” in (2 ) a b o ve , th a t b lo ck ca n n o t b e u se d .
[W hen a lock bit program operation is executed]
(1) E xecute the clear statu s register com m and an d se t the S R 4 bit to “0 ”.
(2 ) S e t th e F M R 0 2 b it in th e F M R 0 re g iste r to “1 ”.
(3) E xecute the block erase com m and to erase th e block w here the error
occurred.
(4 ) E xe cu te th e lo ck b it p ro g ra m co m m a n d a g a in .
N O T E : If sim ilar error occurs, that block cannot be used .
F ull status checkcom plete d
N O T E : W h e n e ith e r F M R 0 6 o r F M R 0 7 b it is se t to “1 ” (te rm in a te d b y e rro r) , th e p ro g ra m , b lo ck e ra se , e ra se a ll u n lo cke d b lo ck,
lock bit program and read lock bit status com m ands cannot b e acce pted.
E xe cu te th e cle a r sta tu s re g iste r co m m a n d b e fo re e a ch co m m a n d .
Figure 22.14 Full Status Check and Handling Procedure for Each Error
Rev.2.41 Jan 10, 2006 Page 294 of 390
REJ09B0185-0241