NEC MuPD78F0132H User Manual page 449

8-bit single-chip microcontrollers, 78k0/ke1plus
Table of Contents

Advertisement

Figure 26-19. Format of Flash Programming Mode Control Register (FLPMC)
Address: FFC4H
After reset: 0×H
Symbol
FLPMC
0
0
FWEDIS
0
Writing/erasing enabled
Writing/erasing disabled
1
FWEPR
0
Low level
1
High level
Note 4
Note 4
FLSPM1
FLSPM0
0
0
0
1
1
1
1
0
Notes 1. Differs depending on the operation mode.
• User mode:
• On-board mode: 0CH
2. Bit 2 (FWEPR) is read-only.
3. For actual writing/erasing, the FLMD0 pin must be high (FWEPR = 1), as well as
FWEDIS = 0.
FWEDIS FWEPR
Other than above
4. The user ROM (flash memory) or firmware ROM can be selected by FLSPM1
and FLSPM0, and the operation mode set on the application system by the
mode pin or the self-programming mode can be selected.
Cautions 1. Be sure to keep FWEDIS at 0 until writing or erasing of the flash memory
is completed.
2. Make sure that FWEDIS = 1 in the normal mode.
3. Manipulate FLSPM1 and FLSPM0 after execution branches to the
internal RAM.
address signal from the CPU when FLSPM1 = 0 or the set value of the
firmware written when FLSPM1 = 1.
specifications of FLSPM1 and FLSPM0 are ignored.
CHAPTER 26 FLASH MEMORY
Note 1
Note 2
R/W
0
0
FWEDIS
Control of flash memory writing/erasing
Note 3
Status of FLMD0 pin
Note 3
Selection of operation mode during self-programming
Normal mode
Instructions of flash memory can be fetched from all
addresses.
Self-programming mode A1
Firmware can be called (CALL #8100H).
Self-programming mode A2
Instructions are fetched from firmware ROM.
This mode is set in firmware and cannot be set by the user.
Setting prohibited
08H
Enable or disable of flash memory writing/erasing
0
1
Writing/erasing enabled
Writing/erasing disabled
The address of the flash memory is specified by an
User's Manual U16899EJ2V0UD
FWEPR
FLSPM1 FLSPM0
In the on-board mode, the
449

Advertisement

Table of Contents
loading

Table of Contents