English
Language : 

M16C65 Datasheet, PDF (749/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
30. Flash Memory
30.8.4.4 Program Command
The program command is used to write two words (4 bytes) of data to the flash memory.
By writing xx41h in the first bus cycle and data to the write address in the second and third bus
cycles, auto-program operation (data program and verify) is started. Make sure 0, 4, 8 or C
(hexadecimal) comes at the end of the write address, e.g. xxxx0h.
The FMR00 bit in the FMR0 register indicates whether the auto-program operation has been
completed. The FMR00 bit is set to 0 (busy) during the auto-program operation and to 1 (ready) after
the auto-program operation is completed.
After the auto-program operation is completed, the FMR06 bit in the FMR0 register indicates whether
or not the auto-program operation has been completed as expected. (Refer to 30.8.5.4 “Full Status
Check”).
Do not rewrite the addresses already programmed. Figure 30.3 shows a Flow Chart of the Program
Command Programming (Suspend Function Disabled).
The lock bit protects individual blocks from being programmed inadvertently. (Refer to 30.8.2 “Data
Protect Function”.)
In EW1 mode, do not execute this command on a block to which the rewrite control program is
allocated.
In EW0 mode, the flash memory enters read status register mode as soon as the auto-program
operation starts. The status register can be read. The SR7 bit in the status register is set to 0 at the
same time the auto-program operation starts. It is set to 1 when the auto-program operation is
completed. The flash memory remains in read status register mode until the read array command is
written. After the auto-program operation is completed, the status register indicates whether or not
the auto-program operation has been completed as expected.
Start
Write the command
code xx41h to the write
address
Write data to the write
address
NO
FMR00 = 1?
YES
Full status check
Program operation is
completed
Note:
1. Write the command code and data to even addresses.
Figure 30.3 Program Command (Suspend Function Disabled)
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 714 of 791