Software Commands; Read Array Command (Ff ); Read Status Register Command (70 ); Clear Status Register Command (50 ) - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

20.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 20.5 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)
20.7.1 Read Array Command (FF
The read array command reads the flash memory.
Read array mode is entered by writing command code xxFF
fied address can be read in 16-bit unit after the next bus cycle. The MCU remains in read array mode until
an another command is written. Therefore, contents of multiple addresses can be read consecutively.
20.7.2 Read Status Register Command (70
The read status register command reads the status register.
By writing command code xx70
cycle (Refer to 20.8 Status Register). Read an even address in the user ROM area. Do not execute this
command in EW mode 1.
20.7.3 Clear Status Register Command (50
The clear status register command clears the status register to 0.
By writing xx50
16
SR5 in the status register are set to 0.
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
–D
) are ignored.
15
8
First bus cycle
Mode
Address
Write
Write
Write
Write
Write
to D
)
7
0
16
in the first bus cycle, the status register can be read in the second bus
16
in the first bus cycle, and bits FMR06 to FMR07 in the FMR0 register and bits SR4 to
page 347
f o
4
5
8
Data
(D
to D
)
15
0
X
xxFF
16
X
xx70
16
X
xx50
16
WA
xx40
16
X
xx20
16
)
in the first bus cycle. Content of a speci-
16
)
16
)
16
20. Flash Memory Version
Second bus cycle
Mode
Address
(D
X
Read
WA
Write
BA
Write
Data
to D
)
15
0
SRD
WD
xxD0
16

Advertisement

Table of Contents
loading

Table of Contents