English
Language : 

M37905F8CFP Datasheet, PDF (21/35 Pages) Mitsubishi Electric Semiconductor – 16-BIT CMOS MICROCOMPUTER
PRELIMINARY NSootimcee: pTahriasmisentroict alimfinitsalasrpeescuifbicjeactitotno. change.
MITSUBISHI MICROCOMPUTERS
M37905F8CFP, M37905F8CSP
16-BIT CMOS MICROCOMPUTER
Table 2. Software commands (CPU reprogramming mode)
1st cycle
Command
Mode
Data
Address (D0 to D7)
Read Array
Read Status Register
Clear Status Register
Programming
Block Erase
Erase All Block
Write
Write
Write
Write
Write
Write
X (Note 2)
X
X
X
X
X
FF16
7016
5016
4016
2016
2016
2nd cycle
Mode Address Data
—
Read
—
Write
Write
Write
—
—
X SRD (Note 3)
—
—
WA (Note 4) WD (Note 4)
BA (Note 5) D016
X
2016
Notes 1: At software commands’ input, the high-order byte of data (D8–D15) is ignored.
2: X = An arbitrary address in the user ROM area. (Note that A0 = “0”.)
3: SRD = Status Register Data
4: WA = Write Address, WD = Write Data (16 bits).
5: Block address: the maximum address of each block must be input. Note that address A0 = “0”.
Block Erase Command (2016/D016)
Writing command code “2016” at the 1st bus cycle and writing confir-
mation command code “D016” and the maximum address of the
block (Note that address A0 = “0”.) at the subsequent 2nd bus cycle
initiate the automatic erase (erasing and erase verification) operation
for the specified block.
The completion of the automatic erase operation is confirmed by a
read of the flash memory control register. The RY/BY status bit of the
flash memory control register goes “0” simultaneously with start of
the automatic erase operation; and also, it goes “1” simultaneously
with completion of it.
Before execution of the next command, be sure to confirm that the
RY/BY status bit is set to “1” (READY). During the automatic erase
operation, writing of commands and access to the flash memory
must not be performed.
Simultaneously with start of the automatic erase, the read status reg-
ister mode is automatically active. In this case, the read status regis-
ter mode is retained until the next read array command (FF16) is
written or until the reset is performed by using the flash memory re-
set bit.
Reading out the status register after the automatic erase operation
is completed reports the result of it. For details, refer to the section
on the status register.
Figure 10 shows an example of the block erase flowchart.
20