English
Language : 

M37905F8CFP Datasheet, PDF (21/34 Pages) Mitsubishi Electric Semiconductor – 16-BIT CMOS MICROCOMPUTER
PRELIMINARY NSootimcee: pTahriasmisentroict alimfinitsalasrpeescuifbicjeactitotno. change.
Start
Write 4016
Write,
Address, Data
Flash memory control
register Read
RY/BY Status NO
Bit = 1?
YES
Full status check
Programming
Completed
Fig. 9 Programming flowchart
Start
Write 2016
Write D016,
Block address
Flash memory control
register Read
RY/BY Status NO
Bit = 1?
YES
Full status check
Block erase Completed
Fig. 10 Block erase flowchart
MITSUBISHI MICROCOMPUTERS
M37905F8CFP, M37905F8CSP
16-BIT CMOS MICROCOMPUTER
Erase All Block Command (2016/2016)
Writing command code “2016” at the 1st bus cycle and writing com-
mand code “2016” at the subsequent 2nd bus cycle initiate the con-
tinuous block erase (chip erase) operations for all the blocks.
The completion of the chip erase operation, as well as of the block
erase operation, is confirmed by a read of the flash memory control
register. The result of the automatic erase operation is also reported
by a read of the status register.
During the automatic erase operation (when the RY/BY status bit =
“0”), writing of commands and access to the flash memory must not
be performed.
Status Register
The status register is used to indicate whether the programming/
erase operation has been completed normally or terminated by an
error. By writing the read status register command (7016), the con-
tents of the status register can be read out; by writing the clear sta-
tus register command (5016), the contents of the status register can
be cleared.
Table 3 lists the definition of each bit of the status register.
The status register outputs “8016” after reset is removed.
The status of each bit is described below.
21