R01UH0092EJ0110 Rev.1.10
Page 689 of 807
Jul 31, 2012
M16C/64C Group
30. Flash Memory
30.8.6
Software Commands
Table 30.16 lists Software Commands. Read or write commands and data in 16-bit units. When
command code is written, the upper 8 bits (D15 to D8) are ignored.
Software commands are described below.
For symbols shown in the flowcharts, refer to those in Table 30.16.
Refer to 30.8.5 “Suspend Function” for program, block erase, and lock bit program commands when
using suspend function.
30.8.6.1
Read Array Command
The read array command is used to read the flash memory.
By writing the command code xxFFh in the first bus cycle, the flash memory enters read array mode.
The value of the specified address can be read in 16-bit units by entering the address to be read after
the next bus cycle.
The flash memory remains in read array mode until another command is written. Therefore, the
values of multiple addresses can be read consecutively.
Figure 30.16 Read Array Command
Table 30.16
Software Commands
Command
First Bus Cycle
Second Bus Cycle
Third Bus Cycle
Mode
Address
Data
(D15 to D0)
Mode
Address
Data
(D15 to D0)
Mode
Address
Data
(D15 to D0)
Read array
Write
x
xxFFh
−
−
−
−
−
−
Read status register
Write
x
xx70h
Read
x
SRD
−
−
−
Clear status register
Write
x
xx50h
−
−
−
−
−
−
Program
Write
WA
xx41h
Write
WA
WD0
Write
WA
WD1
Block erase
Write
x
xx20h
Write
BA
xxD0h
−
−
−
Lock bit program
Write
BA
xx77h
Write
BA
xxD0h
−
−
−
Read lock bit status
Write
x
xx71h
Write
BA
xxD0h
−
−
−
Block blank check
Write
x
xx25h
Write
BA
xxD0h
−
−
−
SRD
: Data in the status register (D7 to D0)
WA
: Write address (set the end of the address to 0h, 4h, 8h, or Ch)
WD0
: Write data lower word (16 bits)
WD1
: Write data upper word (16 bits)
BA
: Highest block address (even address)
x
: Any even address in program ROM 1, program ROM 2, or data flash
xx
: 8 upper bits of command code (ignored)
Note:
1.
Block blank check command is designed for programmer manufacturer. Not for customers in general.
Write command code xxFFh
to X address
Read array mode
Read arbitrary address
Read arbitrary address
Start
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...