English
Language : 

M16C26A Datasheet, PDF (265/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
17. Flash Memory Version
17.7.3 Clear Status Register Command (5016)
This 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”.
17.7.4 Program Command (4016)
The program command writes 2-byte data to the flash memory. By writing ‘xx4016’ in the first bus cycle
and data to the write address specified in the second bus cycle, the auto-programming/erasing (data
prorgramming and verify) start. Set the address value specified in the first bus cycle to same and even
address as the write address specified in the second bus cycle. The FMR00 bit in the FMR0 register
indicates whether an auto-programming operation has been completed. The FMR00 bit is set to “0”
during the auto-programming and “1” when the auto-programming operation is completed. After the
auto-programming operation is completed, the FMR06 bit in the FMR0 register indicates whether or
not the auto-programming operation has been completed as expected. (Refer to 17.8.4 Full Status
Check). Also, each block disables writing (Refer to “Table 17.5.2.1”). Do not write additions to the
address which is already programmed. When commands other than a program command are ex-
ecuted immediately after a program 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 EW1 mode, do not execute this command on the blocks where the rewrite
control program is allocated. In EW0 mode, the microcomputer enters read status register mode as
soon as the auto-programming operation starts and the status register can be read. The SR7 bit in the
status register is set to “0” as soon as the auto-programming operation starts. This bit is set to “1”
when the auto-programming operation is completed. The microcomputer remains in read status regis-
ter mode until the read array command is written. After completion of the auto-programming operation,
the status register indicates whether or not the auto-programming operation has been completed as
expected.
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
NOTE:
1: Write the command code and data at even address.Note 2: Refer to "Figure 17.8.4.1. Full Status
Check and Handling Procedure for Each Error"
Figure 17.7.4.1. Flow Chart of Program Command
Rev. 2.00 Feb.15, 2007 page 248 of 329
REJ09B0202-0200