Datasheet

User’s Manual U18698EJ1V0UD
508
CHAPTER 24 FLASH MEMORY
The 78K0/LC3 incorporates the flash memory to which a program can be written, erased, and overwritten while
mounted on the board.
24.1 Internal Memory Size Switching Register
The internal memory capacity can be selected 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 Be sure to set each product to the values shown in Table 24-1 after a reset release.
Figure 24-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
1 1 0 1024 bytes
Other than above Setting prohibited
ROM3 ROM2 ROM1 ROM0 Internal ROM capacity selection
0 0 1 0 8 KB
0 1 0 0 16 KB
0 1 1 0 24 KB
1 0 0 0 32 KB
Other than above Setting prohibited
Table 24-1. Internal Memory Size Switching Register Settings
Flash Memory Version (78K0/LC3) IMS Setting ROM Capacity Internal High-Speed RAM Capacity
μ
PD78F0400, 78F0410
42H 8 KB 512 bytes
μ
PD78F0401, 78F0411
04H 16 KB 768 bytes
μ
PD78F0402, 78F0412
C6H 24 KB
μ
PD78F0403, 78F0413
C8H 32 KB
1 K bytes