Renesas M16C/62P Series Hardware Manual page 309

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
F u ll s ta tu s c h e c k
F M R 0 6 = 1
a n d
F M R 0 7 = 1 ?
N O
F M R 0 7 = 0 ?
Y E S
F M R 0 6 = 0 ?
Y E S
F u ll s ta tu s c h e c k c o m p le te 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 s e t to "1 " (te rm in a te d b y e rro r ) , th e p ro g ra m , b lo c k e ra s e , e r a s e a ll u n lo c k e d b lo c k ,
lo c k b it p ro g ra m a n d re a d lo c k b it s ta tu s c o m m a n d s c a n n o t b e a c c e p te d .
E x e c u te th e c le a r s ta tu s re g is te r c o m m a n d b e fo re e a c h c o m m a n d .
Figure 22.14
Full Status Check and Handling Procedure for Each Error
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
Y E S
C o m m a n d
s e q u e n c e e rro r
N O
E ra s e e rro r
N O
P ro g ra m e rro r
Page 294 of 390
提供单片机解密、IC解密、芯片解密业务
( 1 ) E x e c u te th e c le a r s ta tu s re g is te r c o m m a n d a n d s e t th e S R 4 a n d S R 5
b its to "0 " (c o m p le te d a s e x p e c te d ) .
( 2 ) R e w r ite c o m m a n d a n d e x e c u te a g a in .
(1 ) E x e c u te th e c le a r s ta tu s re g is te r c o m m a n d a n d s e t th e S R 5 b it to "0 ".
(2 ) E x e c u te th e lo c k b it re a d s ta tu s c o m m a n d . S e t th e F M R 0 2 b it to "1 "
( lo c k b it d is a b le d ) if th e lo c k b it in th e b lo c k w h e re th e e rro r o c c u r re d is
s e t to "0 " (lo c k e d ).
(3 ) E x e c u te th e b lo c k e ra s e o r e ra s e a ll u n lo c k e d b lo c k c o m m a n d a g a in .
(4 ) E x e c u te (1 ), ( 2 ) a n d ( 3 ) a t le a s t 3 tim e s u n til a n e ra s e e rro r is n o t
g e n e ra te d .
N O T E : If s im ila r e rro r o c c u rs , th a t b lo c k c a n n o t b e u s e d .
If th e lo c k b it is s e t to " 1 " (u n lo c k e d ) in ( 2 ) a b o v e , th a t b lo c k
c a n n o t b e u s e d .
[W h e n a p r o g ra m o p e r a tio n is e x e c u te d ]
(1 ) E x e c u te th e c le a r s ta tu s re g is te r c o m m a n d a n d s e t th e S R 4 b it to "0 "
( c o m p le te d a s e x p e c te d ) .
(2 ) E x e c u te th e re a d lo c k b it s ta tu s c o m m a n d a n d s e t th e F M R 0 2 b it to "1 "
if th e lo c k b it in th e b lo c k w h e re th e e r ro r o c c u rr e d is s e t to 0 .
(3 ) E x e c u te th e p ro g r a m c o m m a n d a g a in .
N O T E : W h e n a s im ila r e rro r o c c u r s , th a t b lo c k c a n n o t b e u s e d .
If th e lo c k b it is s e t to " 1 " in (2 ) a b o v e , th a t b lo c k c a n n o t b e u s e d .
[W h e n a lo c k b it p ro g r a m o p e ra tio n is e x e c u te d ]
(1 ) E x e c u te th e c le a r s ta tu s r e g is te r c o m m a n d a n d s e t th e S R 4 b it to "0 ".
(2 ) S e t th e F M R 0 2 b it in th e F M R 0 re g is te r to "1 ".
(3 ) E x e c u te th e b lo c k e ra s e c o m m a n d to e ra s e th e b lo c k w h e re th e e rro r
o c c u rre d .
(4 ) E x e c u te th e lo c k b it p ro g r a m c o m m a n d a g a in .
N O T E : If s im ila r e rr o r o c c u rs , th a t b lo c k c a n n o t b e u s e d .
22. Flash Memory Version
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents