English
Language : 

M16C28 Datasheet, PDF (335/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
18. Flash Memory Version
18.7.3 Clear Status Register Command (5016)
The clear status register command clears the status register to “0”.
By writing ‘xx5016’ in the first bus cycle, and the FMR06 to FMR07 bits in the FMR0 register and SR4 to
SR5 bits in the status register are set to “0”.
18.7.4 Program Command (4016)
The program command writes 2-byte data to the flash memory.
Auto program operation (data program and verify) start by writing ‘xx4016’ in the first bus cycle and data
to the write address specified in the second bus cycle. The address value specified in the first bus cycle
must be the same even address as the write address secified in the second bus cycle.
The FMR00 bit in the FMR0 register indicates whether an auto-programming operation has been com-
pleted. The FMR00 bit is set to “0” during the auto-program and “1” when the auto-program operation is
completed.
After the completion of auto-program operation, the FMR06 bit in the FMR0 register indicates whether or
not the auto-program operation has been successfully completed. (Refer to 18.8.4 Full Status Check).
Also, each block can disable programming command (Refer to Table 18.4).
An address that is already written cannot be altered or rewritten.
When commands other than the program command are executed immediately after executing the pro-
gram command, set the same address as the write address specified in the second bus cycle of the
program command, to the specified address value in the first bus cycle of the following command.
In EW mode 1, do not execute this command on the blocks where the rewrite control program is allo-
cated.
In EW mode 0, the microcomputer enters read status register mode as soon as the auto-program opera-
tion starts and the status register can be read. The SR7 bit in the status register is set to “0” as soon as the
auto-program operation starts. This bit is set to “1” when the auto-program operation is completed. The
microcomputer remains in read status register mode until the read array command is written. After
completion of the auto-program operation, the status register indicates whether or not the auto-program
operation has been successfully completed.
Start
Write command code "xx4016" to
the write address (1)
Write data to the write address (1)
NO
FMR00=1?
YES
Full status check(2)
Program completed
NOTES:
1. Write the command code and data at even address.
2. Refer to Figure 18.15 .
Figure 18.12 Flow Chart of Program Command
Rev. 2.00 Jan. 31, 2007 page 315 of 385
REJ09B0047-0200