English
Language : 

32171 Datasheet, PDF (166/772 Pages) Renesas Technology Corp – 32-BIT RISC SINGLE-CHIP MICROCOMPUTER M32R FAMILY / M32R/ECU SERIES
6
INTERNAL MEMORY
6.5 Programming of the Internal Flash Memory
START
Write Page Program command (H'4141)
to any address of internal flash memory.
Write data to the internal flash memory
address to which you want to write. (Note 1)
Increment the previous write address by 2
and write the next data to the new address.
NO
Programmed
for one page ?
YES
Written to the internal flash memory by
Page Program (Note 2)
1 µs wait
(by hardware timer or software timer)
NO
FSTAT bit = 1
Go to next page
YES
Read any address of internal flash memory
to check for program error. (Note 3)
NO
Last address ?
TIME OUT ?
NO
0.5s
YES
Forcibly terminated
YES
END
Note 1: Start writing from the beginning of a 256-byte boundary of the flash memory (lower address H'00).
Note 2: 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 3: Examine the Flash Status Register 2 ERASE (Auto Erase operating condition), WRERR1
(Program operating condition 1), and WRERR2 (Program operating condition 2) bits to check for
program error.
Figure 6.5.11 Page Program
6-34
32171 Group User's Manual (Rev.2.00)