English
Language : 

M16C6S_09 Datasheet, PDF (173/208 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6S Group
Flash Memory Version
Software Commands
Software commands are described below. The command code and data must be read and written in 16-
bit units, to and from even addresses in the user ROM area. When writing command code, the 8 high-
order bits (D1t–D8) are ignored.
Table 1.21.2. Software Commands
Command
Read array
Read status register
Clear status register
Program
Block erase
Mode
Write
Write
Write
Write
Write
First bus cycle
Data
Address (D0 to D7)
X
xxFF16
X
xx7016
X
xx5016
WA
xx4016
X
xx2016
Mode
Second bus cycle
Address
Data
(D0 to D7)
Read
X
SRD
Write
WA
WD
Write
BA
xxD016
SRD: Status register data (D7 to D0)
WA: Write address (Make sure the address value specified in the the first bus cycle is the same even address
as the write address specified in the second bus cycle.)
WD: Write data (16 bits)
BA: Uppermost block address (even address, however)
X: Any even address in the user ROM area
x: High-order 8 bits of command code (ignored)
Read Array Command (FF16)
This command reads the flash memory.
Writing ‘xxFF16’ in the first bus cycle places the microcomputer in read array mode. Enter the read
address in the next or subsequent bus cycles, and the content of the specified address can be read in
16-bit units.
Because the microcomputer remains in read array mode until another command is written, the con-
tents of multiple addresses can be read in succession.
However, when you use Read array command immediately after a program command, please read
data in the following procedure.
(1) FF16, FF16, FF16, and FF16 are written to 4 arbitrary continuous addresses.
(2) The head address of (1) is specified in Read array mode.
(3) (2) is repeated until the read value and FFFF16 are in agreement.
(4) The head address +2 of (1) is specified.
(5) (4) is repeated until the read value and FFFF16 are in agreement.
(6) Arbitrary addresses are specified.
Read Status Register Command (7016)
This command reads the status register.
Write ‘xx7016’ in the first bus cycle, and the status register can be read in the second bus cycle. (Refer
to “Status Register.”) When reading the status register too, specify an even address in the user ROM
area.
Do not execute this command in EW1 mode.
Rev.5.01 Dec 10, 2009 page 173 of 201
REJ03B0014-0501