Download Print this page

Renesas M16C/50 Series User Manual page 720

Advertisement

M16C/5L Group, M16C/56 Group
26.8.6.4
Program Command
The program command is used to write 2 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, an auto-program operation (data program and verify) is started. Set the end of the write
address to 0h, 4h, 8h, or Ch.
The FMR00 bit in the FMR0 register indicates whether the auto-program operation has been
completed. The FMR00 bit is 0 (busy) during the auto-program operation, and becomes 1 (ready)
after the auto-program operation is completed. Do not execute other commands while the FMR00 bit
is 0.
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 26.8.7.1 "Full Status
Check").
Do not rewrite the addresses already programmed. Figure 26.19 shows a flowchart of the Program
Command (Suspend Function Disabled).
The lock bit protects individual blocks from being programmed inadvertently. (Refer to 26.8.4 "Data
Protect Function".)
In EW1 mode, do not execute this command on a block to which the rewrite control program is
allocated.
Figure 26.19 Program Command (Suspend Function Disabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Start
Write command code
xx41h to WA address
Write WD0 to WA address
Write WD1 to WA address
No
FMR00 = 1?
Yes
Full status check
Program command
completed
26. Flash Memory
Page 683 of 803

Advertisement

loading