Renesas M32R/ECU Series User Manual page 152

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

Advertisement

6
Note 1: When a programming operation started, the internal flash memory is automatically readied to run the Read Status
command, so that there is no need to enter the Read Status command until another command is entered.
Note 2: Inspect the Flash Status Register 2 ERASE (erase status), WRERR1 (write status 1) and WRERR2 (write status 2)
bits to check for programming error.
Figure 6.5.9 Lock Bit Program Command
START
Write the Lock Bit Program command
(H'7777) to any address of the
internal flash memory
Write the Verify command (H'D0D0)
to the last even address of the flash
memory block to be protected
Lock bit is programmed
by Lock Bit Program (Note 1)
Wait for 1 µs
(using a hardware or software timer)
FSTAT bit = 1
YES
Read any address of the internal flash
memory (Note 2) to check for
programming error (see Figure 6.4.2)
END
6.5 Programming the Internal Flash Memory
NO
TIME OUT?
0.5s
Forcibly terminated
(see Figure 6.4.3.)
6-23
INTERNAL MEMORY
NO
YES
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents