Renesas M16C/64A Series User Manual page 712

Table of Contents

Advertisement

M16C/64A Group
30.8.5
Software Commands
Table 30.15 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.
Table 30.15
Software Commands
Command
Read array
Read status register
Clear status register
Program
Block erase
Lock bit program
Read lock bit status
Block blank check
(1)
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.
Software commands are described below.
For symbols shown in the flowcharts, refer to those in Table 30.15.
30.8.5.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.7
Read Array Command
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
First Bus Cycle
Data
Mode Address
(D15 to D0)
Write
x
xxFFh
Write
x
xx70h
Write
x
xx50h
Write
WA
xx41h
Write
x
xx20h
Write
BA
xx77h
Write
x
xx71h
Write
x
xx25h
Start
Write command code xxFFh
to X address
Read arbitrary address
Read arbitrary address
Second Bus Cycle
Data
Mode Address
(D15 to D0)
Read
x
SRD
Write
WA
WD0
Write
BA
xxD0h
Write
BA
xxD0h
Write
BA
xxD0h
Write
BA
xxD0h
Read array mode
30. Flash Memory
Third Bus Cycle
Data
Mode
Address
(D15 to D0)
Write
WA
WD1
Page 679 of 800

Advertisement

Table of Contents
loading

Table of Contents