Software Commands - Renesas M16C Series Hardware Manual

16-bit microcopmuter
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

R8C/11 Group

17.4.3 Software Commands

Software commands are described below. The command code and data must be read and written in
8-bit units.
Table 17.4 Software Commands
Command
Read array
Read status register
Clear status register
Program
Block erase
SRD: Status register data (D
WA: Write address (Make sure the address value specified in the the first bus cycle is the same address
as the write address specified in the second bus cycle.)
WD: Write data (8 bits)
BA: Given block address
X: Any address in the user ROM area
• Read Array Command
This command reads the flash memory.
Writing 'FF
16
address in the next or subsequent bus cycles, and the content of the specified address can be read
in 8-bit units.
Because the microcomputer remains in read array mode until another command is written, the con-
tents of multiple addresses can be read in succession.
• Read Status Register Command
This command reads the status register.
Write '70
' in the first bus cycle, and the status register can be read in the second bus cycle. (Refer
16
to Section 17.4.4, "Status Register.") When reading the status register too, specify an address in the
user ROM area.
Avoid executing this command in EW1 mode.
• Clear Status Register Command
This command sets the status register to "0".
Write '50
' in the first bus cycle, and the FMR06 to FMR07 bits in the FMR0 register and SR4 to SR5
16
in the status register will be set to "0".
Rev.1.20
Jan 27, 2006
REJ09B0062-0120
First bus cycle
Mode
Write
Write
Write
Write
Write
to D
)
7
0
' in the first bus cycle places the microcomputer in read array mode. Enter the read
page 174 of 204
Data
Address
(D
to D
)
7
0
X
FF
16
X
70
16
X
50
16
WA
40
16
X
20
16
17.4 CPU Rewrite Mode
Second bus cycle
Mode
Address
X
Read
WA
Write
BA
Write
Data
(D
to D
)
7
0
SRD
WD
D0
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/11 seriesR8c/tiny series

Table of Contents