
R8C/14 Group, R8C/15 Group 18. Flash Memory Version
Rev.2.10 Jan 19, 2006 Page 206 of 253
REJ09B0164-0210
18.4.3.4 Program Command
The program command writes data to the flash memory in 1-byte units.
Write “40h” in the first bus cycle and write data to the write address in the second bus cycle, and an
auto program operation (data program and verify) will start. Make sure the address value specified in
the first bus cycle is the same address as the write address specified in the second bus cycle.
The FMR00 bit in the FMR0 register can determine whether auto programming has completed. The
FMR00 bit is set to “0” during auto programming and set to “1” when auto programming completes.
The FMR06 bit in the FMR0 register can determine the result of auto programming after it has been
finished.(Refer to
18.4.5 Full Status Check)
Do not write additions to the already programmed address.
When the FMR02 bit in the FMR0 register is set to “0” (disable rewriting), or the FMR02 bit is set to
“1” (rewrite enables) and the FMR15 bit in the FMR1 register is set to “1” (disable rewriting), the
program command on Block 0 is not acknowledged. When the FMR16 bit is set to “1” (disable
rewriting), the program command on Block 1 is not acknowledged.
In EW1 mode, do not execute this command on any address at which the rewrite control program is
allocated.
In EW0 mode, the microcomputer enters read status register mode at the same time auto
programming starts and the status register can be read. The status register bit 7 (SR7) is set to “0” at
the same time auto programming starts and set back to “1” when auto programming completes. In
this case, the microcomputer remains in read status register mode until a read array command is
written next. Reading the status register can determine the result of auto programming after auto
programming has completed.
Figure 18.11 Program Command
Start
Write the command code ‘40h’ to
the write address
Write data to the write address
FMR00=1?
Full status check
Program completed
No
Yes
Commentaires sur ces manuels