English
Language : 

M16C Datasheet, PDF (235/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV.B
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M16C / 6N Group
Parallel I/O Mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Software Commands
Table 24-4 lists the software commands available with the M16C/6NT (with on-chip flash memory). By
entering a software command from the data I/O pins (D0 – D7) in Write mode, specify the content of the
operation, such as erase- or program operation, to be performed. When entering a software command, the
upper byte (D8 – D15) is ignored.
Table 24-4. Software command list (parallel I/O mode)
Command
Read array
Read status register
Clear status register
Page program (Note 3)
Block erase
Erase all unlock block
Lock bit program
Read lock bit status
First bus cycle
Data
Mode Address (D0 to D7)
Second bus cycle
Mode
Address
Data
(D0 to D7)
Third bus cycle
Mode
Address
Data
(D0 to D7)
Write
Write
X (Note 6)
X
FF16
7016
Read
X
SRD (Note 2)
Write
X
5016
Write
X
4116
Write WA0 (Note 3) WD0 (Note 3) Write
WA1
WD1
Write
X
2016
Write BA (Note 4) D016
Write
X
A716
Write
X
D016
Write
X
7716
Write
BA
D016
Write
X
7116
Read
BA
D6 (Note 5)
Note 1: When a software command is input, the upper byte of data (D8 to D15) is ignored.
Note 2: SRD = Status Register Data
Note 3: WA = Write Address, WD = Write Data
WA and WD must be set sequentially from 0016 to FE16 (an even address). The page size is 256 bytes.
Note 4: BA = Block Address (Enter the maximum address of each block that is an even address.)
Note 5: D6 corresponds to the block lock status. Block not locked when D6 = 1, block locked when D6 = 0.
Read Array Command (FF16)
The Read Array mode is entered by writing the command code "FF16" in the first bus cycle. When an
address to read is input in one of the bus cycles that follow, the content of the specified address is output
from the data bus (D0 – D15). The address entered here must be an even address when the BYTE pin is
high (16-bit mode).
The Read Array mode is retained intact until another command is written.
The Read Array mode is also selected automatically when the device is powered on and after it exits Deep
Power Down mode.
Read Status Register Command (7016)
When the command code "7016" is written in the first bus cycle, the content of the status register is output
from the data bus (D0 – D7) by a read in the second bus cycle. Since the content of the status register
is updated at the falling edge of OE or CE, the OE- or CE signal must be asserted each time the
status is read. The status register is explained in the next section.
Clear Status Register Command (5016)
This command is used to clear the bits SR3 to 5 of the status register after they are set. These bits
indicate that operation has ended in an error. To use this command, write the command code "5016" in the
first bus cycle.
235