Mitsubishi Electric M32R Series User Manual page 170

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
Note 1: When Program operation starts, you have the Read Status Register command automatically
entered. (You do not need to enter the Read Status Register command until you issue another
command.)
Note 2: Examine the Flash Status Register 2 ERESE (Auto Erase operating condition), WRERR1
(Program operating condition 1), and WRERR2 (Program operating condition 2) bits to check for
program error.
Figure 6.5.12 Lock Bit Program
START
Write Lock Bit Program command (H'7777)
to any address of internal flash memory.
Write Verify command (H'D0D0) to the last
even address of the block you want to protect.
Written to the lock bit by program
(Note 1)
1 µs wait
(by hardware timer or software timer)
FSTAT bit = 1
YES
Read any address of internal flash memory
to check for program error. (Note 2)
END
6.5 Programming of the Internal Flash Memory
NO
TIME OUT ?
Forcibly terminated
6-36
INTERNAL MEMORY
NO
0.5s
YES
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents