Renesas M16C FAMILY Hardware Manual page 169

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

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group
• Program Command
This command writes data to the flash memory in one byte units.
Write '40
' in the first bus cycle and write data to the write address in the second bus cycle, and an
16
auto program operation (data program and verify) will start. Make sure the address value specified in
the first bus cycle is the same address as the write address specified in the second bus cycle.
Check the FMR00 bit in the FMR0 register to see if auto programming has finished. The FMR00 bit
is "0" during auto programming and set to "1" when auto programming is completed.
Check the FMR06 bit in the FMR0 register after auto programming has finished, and the result of
auto programming can be known. (Refer to Section 17.4.6, "Full Status Check.")
Writing over already programmed addresses is inhibited.
When the FMR02 bit in the FMR0 register is set to "0" (rewrite disabled), the Program command on
the Block0 and Block1 is not accepted.
In EW1 mode, do not execute this command on any address at which the rewrite control program is
located.
In EW0 mode, the microcomputer goes to read status register mode at the same time auto program-
ming starts, making it possible to read the status register. The status register bit 7 (SR7) is set to "0"
at the same time auto programming starts, and set back to "1" when auto programming finishes. In
this case, the microcomputer remains in read status register mode until a read command is written
next. The result of auto programming can be known by reading the status register after auto pro-
gramming has finished.
Figure 17.7 Program Command
Rev.0.91
2003 Sep 08
Write the command code '40
the write address
Write data to the write address
Full status check
page 159 of 184
Start
' to
16
NO
FMR00=1?
YES
Program
completed
17.4 CPU Rewrite Mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents