Software Commands; Read Array Command (Ff ); Read Status Register Command (70 ) - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6

17.7 Software Commands

Read or write 16-bit commands and data from or to even addresses in the user ROM area. When writing
a command code, 8 high-order bits (D
Table 17.7.1. Software Commands
Command
Read array
Read status register
Clear status register
Program
Block erase
SRD: Status register data (D
WA : Write address (However,even address)
WD : Write data (16 bits)
BA : Highest-order block address (However,even address)
X : Any even address in the user ROM area
xx : 8 high-order bits of command code (ignored)
17.7.1 Read Array Command (FF
This command reads the flash memory.
By writing command code 'xxFF
specified address can be read in 16-bit unit after the next bus cycle. The microcomputer remains in
read array mode until an another command is written. Therefore, contents of multiple addresses can
be read consecutively.
17.7.2 Read Status Register Command (70
This command reads the status register.
By writing command code 'xx70
bus cycle (Refer to 17.8 Status Register). Read an even address in the user ROM area. Do not
execute this command in EW1 mode.
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
15
First bus cycle
Mode
Write
Write
Write
Write
Write
to D
)
7
0
16
' in the first bus cycle, read array mode is entered. Content of a
16
' in the first bus cycle, the status register can be read in the second
16
page 247
f o
3
2
9
C
2 /
6
) T
–D
) are ignored.
8
Data
Address
(D
to D
)
15
0
X
xxFF
16
X
xx70
16
X
xx50
16
WA
xx40
16
X
xx20
16
)
)
16
17. Flash Memory Version
Second bus cycle
Mode
Address
X
Read
WA
Write
Write
BA
Data
(D
to D
)
15
0
SRD
WD
xxD0
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents