MB89202R Series
DS07-12562-3E
13
■ PROGRAMMING AND ERASE FLASH MEMORY
1.
Flash Memory
The flash memory incorporates a flash memory interface circuit that allows read access and program access
from the CPU to be performed in the same way as mask ROM. Programming and erasing flash memory is also
performed via the flash memory interface circuit by executing instructions in the CPU. This enables the flash
memory to be updated in place under the control of the CPU, providing an efficient method of updating program
and data.
2.
Flash Memory Features
16 K byte
× 8-bit configuration or 8 K byte × 8-bit configuration*
Automatic programming algorithm (Embedded Algorithm)
Data polling and toggle bit for detection of program/erase completion
Detection of program/erase completion via CPU interrupt
Compatible with JEDEC-standard commands
No. of program / erase cycles: Minimum 10,000
* : Check section “Memory Space”.
3.
Procedure for Programming and Erasing Flash Memory
Programming and reading flash memory cannot be performed at the same time. Accordingly, to program or
erase flash memory, the program must first be copied from flash memory to RAM so that programming can be
performed without program access from flash memory. Also for flash memory program or erase, a high voltage
(instead of an external pull-up) must be applied to external reset RST pin. Check section “ 6. Flash Memory
Program/Erase Characteristics” in “
■ ELECTRICAL CHARACTERISTICS”.
4.
Flash Memory Control Status Register (FMCS)
5.
Memory Space
The series has 1 flash memory size configuration. The memory space for the CPU access and for the flash
programmer access of the configuration is listed below. Check section “ 6. Flash Memory Program/Erase Char-
acteristics” in “
■ ELECTRICAL CHARACTERISTICS”.
6.
Flash Content Protection
Flash content can be read using parallel / serial programmer if the flash content protection mechanism is not
activated.
One predefined area of the flash (FFFCH) is assigned to be used for preventing the read access of flash content.
If the protection code “01H” is written in this address (FFFCH), the flash content cannot be read by any parallel/
serial programmer.
Note: The program written into the flash cannot be verified once the flash protection code is written ("01H" in
FFFCH). It is advised to write the flash protection code at last.
Part Number
Memory size
CPU address
Programmer address
MB89F202RA
MB89F202RAY
16 K bytes
FFFFH to C000H
3FFFH to 0000H
INTE RDYINT
WE
RDY
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
R
Address
0079H
Initial value
000X----B