Renesas M16C/62P Hardware Manual page 278

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
Full status check
FMR06 =1
and
FMR07=1?
NO
FMR07=0?
YES
FMR06=0?
YES
Full status check completed
NOTE: When either FMR06 or FMR07 bit is set to "1" (terminated by error) , the program, block erase, erase all unlocked block, lock bit
program and read lock bit status commands cannot be accepted.
Execute the clear status register command before each command.
Figure 22.12 Full Status Check and Handling Procedure for Each Error
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
YES
Command
sequence error
NO
Erase error
NO
Program error
page 264
f o
3
6
4
(1) Execute the clear status register command and set the SR4 and SR5
bits to "0" (completed as expected) .
(2) Rewrite command and execute again.
(1) Execute the clear status register command and set the SR5 bit to "0".
(2) Execute the lock bit read status command. Set the FMR02 bit to "1" (
lock bit disabled) if the lock bit in the block where the error occurred is
set to "0" (locked).
(3) Execute the block erase or erase all unlocked block command again.
NOTE: If similar error occurs, that block cannot be used.
If the lock bit is set to "1" (unlocked) in (2) above, that block
cannot be used.
[When a program operation is executed]
(1) Execute the clear status register command and set the SR4 bit to "0"(
completed as expected) .
(2) Execute the read lock bit status command and set the FMR02 bit to "1" if
the lock bit in the block where the error occurred is set to "0".
(3) Execute the program command again.
NOTE: When a similar error occurs, that block cannot be used.
If the lock bit is set to "1" in (2) above, that block cannot be used.
[When a lock bit program operation is executed]
(1) Execute the clear status register command and set the SR4 bit to "0".
(2) Set the FMR02 bit in the FMR0 register to "1".
(3) Execute the block erase command to erase the block where the error
occurred.
(4) Execute the lock bit program command again.
NOTE: If similar error occurs, that block cannot be used.
22. Flash Memory Version

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents