Datasheet

78K0/Ix2 CHAPTER 25 FLASH MEMORY
R01UH0010EJ0500 Rev.5.00 652
Feb 28, 2012
CHAPTER 25 FLASH MEMORY
The 78K0/Ix2 microcontrollers incorporates the flash memory to which a program can be written, erased, and
overwritten while mounted on the board.
25.1 Internal Memory Size Switching Register
Select the internal memory capacity using the internal memory size switching register (IMS).
IMS is set by an 8-bit memory manipulation instruction.
Reset signal generation sets IMS to CFH.
Caution Reset signal generation makes the setting of the ROM area undefined. Therefore, set the value
corresponding to each product as indicated Table 25-1 after release of reset.
Figure 25-1. Format of Internal Memory Size Switching Register (IMS)
Address: FFF0H After reset: CFH R/W
Symbol 7 6 5 4 3 2 1 0
IMS RAM2 RAM1 RAM0 0 ROM3 ROM2 ROM1 ROM0
RAM2 RAM1 RAM0 Internal high-speed RAM capacity selection
0 0 0 768 bytes
0 1 0 512 bytes
0 1 1 384 bytes
1 1 0 (Default value)
Other than above Setting prohibited
ROM3 ROM2 ROM1 ROM0 Internal ROM capacity selection
0 0 0 1 4 KB
0 0 1 0 8 KB
0 1 0 0 16 KB
1 1 1 1 (Default value)
Other than above Setting prohibited