M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 257

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
CPU Rewrite Mode (Flash Memory Version)
242
Table 1.29.1. List of Software Commands (CPU Rewrite Mode)
Software Commands
Read array
Read status register
Clear status register
Block erase
Lock bit program
Read lock bit status
Note 1: When a software command is input, the high-order byte of data (D
Note 2: SRD = Status Register Data
Note 3: WA = Write Address, WD = Write Data
Note 4: BA = Block Address (Enter the maximum address of each block that is an even address.)
Note 5: D
Note 6: X denotes a given address in the user ROM area (that is an even address).
Page program
Erase all unlock block
Table 1.29.1 lists the software commands available with the M16C/62 (flash memory version).
After setting the CPU rewrite mode select bit to 1, write a software command to specify an erase or
program operation. Note that when entering a software command, the upper byte (D
The content of each software command is explained below.
Read Array Command (FF
Read Status Register Command (70
Clear Status Register Command (50
The read array mode is entered by writing the command code “FF
even address to be read is input in one of the bus cycles that follow, the content of the specified
address is read out at the data bus (D
The read array mode is retained intact until another command is written.
When the command code “70
read out at the data bus (D
The status register is explained in the next section.
This command is used to clear the bits SR3 to 5 of the status register after they have been set. These
bits indicate that operation has ended in an error. To use this command, write the command code
“50
Command
WA and WD must be set sequentially from 00
256 bytes.
6
16
corresponds to the block lock status. Block not locked when D
” in the first bus cycle.
(Note 3)
Mode
Write
Write
Write
Write
Write
Write
Write
Write
16
First bus cycle
0
–D
)
Address
X
16
7
(Note 6)
X
X
X
X
X
X
X
) by a read in the second bus cycle.
” is written in the first bus cycle, the content of the status register is
16
16
(D
0
)
)
–D
Data
0
FF
70
50
41
20
A7
77
71
16
to D
16
16
16
16
16
16
to FE
16
16
15
), 16 bits at a time.
7
)
16
Write
Write
Write
Write
Read
Read
Mode
(byte address; however, an even address). The page size is
Second bus cycle
WA0
BA
Address
6
8
= 1, block locked when D
BA
BA
to D
X
(Note 4)
X
(Note 3)
15
) is ignored.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
SRD
(D
WD0
D0
D0
D0
D
16
0
Data
16
16
16
6
to D
” in the first bus cycle. When an
(Note 2)
(Note 3)
(Note 5)
7
)
Mode Address
Write
6
= 0.
8
Third bus cycle
to D
Mitsubishi microcomputers
M16C / 62 Group
WA1
15
) is ignored.
(D
0
WD1
Data
to D
7
)

Related parts for M30622MA-XXXFP