English
Language : 

M16C1N Datasheet, PDF (200/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
19. Flash Memory Version
19.5.4 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 (D15-D8) are ignored.
Table 19.4 shows the list of software commands.
Table 19.4 List of software commands
Software Command
Read array
Mode
Write
First bus cycle
Address
Data
(D15-D0)
X
xxFF16
Read status register
Write
X
xx7016
Clear status register
Write
X
xx5016
Program
Write
WA
xx4016
Block erase
Write
X
xx2016
SRD: Status register data (D7-D0)
WA: Write address (even address, however)
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)
Second bus cycle
Mode
Address
Data
(D15-D0)
Read
X
SRD
Write
WA
WD
Write
BA
xxD016
(1) Read array
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.
(2) Read status register
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 19.5.5 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.
(3) Clear status register
This command clears the status register to "0".
Write 'xx5016' in the first bus cycle, and the FMR0 register's FMR06 to FMR07 bits and the status
register's SR4 to SR5 will be cleared to "0".
Rev.1.00 Oct 20, 2004 page 188 of 222
REJ09B0007-0100Z