Datasheet

Section 22 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 676 of 910
REJ09B0350-0300
Programming/erasing protection
Protection against programming/erasing of the flash memory can be set by hardware
protection, software protection, or error protection.
FCCS
FPCS
FECS
FKEY
FTDAR
FMATS
Control unit
Memory MAT unit
Flash memory
User MAT: 160 kbytes
User boot MAT: 8 kbytes
Operating
mode
Module bus
Mode pins
Internal data bus (16 bits)
Internal address bus
[Legend]
FCCS: Flash code control/status register
FPCS: Flash program code select register
FECS: Flash erase code select register
FKEY: Flash key code register
FMATS: Flash MAT select register
RAMER: Flash transfer destination address register
Note: To read/write the registers above, the FLSHE bit in the serial timer control register (STCR)
must be set to 1.
Figure 22.1 Block Diagram of Flash Memory
22.2 Mode Transition Diagram
When the mode pins are set in the reset state and reset start is performed, this LSI enters each
operating mode as shown in figure 22.2. Although the flash memory can be read in user mode, it
cannot be programmed or erased. The flash memory can be programmed or erased in boot mode,
user program mode, user boot mode, and programmer mode. The differences between boot mode,
user program mode, user boot mode, and programmer mode are shown in table 22.1.