Clear Status Register Command; Program Command - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

21.7.3 Clear Status Register Command (50

This command clears the status register to "0".
By writing 'xx50
16
SR5 bits in the status register are set to "0".

21.7.4 Program Command (40

The program command writes 2-byte data to the flash memory. By writing 'xx40
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 "Full Status Check"). Also, each
block disables writing (Refer to "Table 21.5.2.1"). Do not write additions to the address which is already
programmed. When commands other than a program command are executed immediately after a 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 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 com-
pleted. The microcomputer remains in read status register 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.
Figure 21.7.4.1. Flow Chart of Program Command
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
' in the first bus cycle, and the FMR06 to FMR07 bits in the FMR0 register and SR4 to
)
16
Write command code 'xx40
the write address (Note 1)
Write data to the write address
(Note 1)
FMR00=1?
Full status check
(Note 2)
completed
Note 1: Write the command code and data at even address.
Note 2: Refer to "Figure 21.8.4.1. Full Status Check and
Handling Procedure for Each Error"
page 383 of 402
)
16
Start
' to
16
NO
YES
Program
21. Flash Memory Version
' in the first bus cycle
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents