Software Environment - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

16.7.5 Software environment

The following conditions must be satisfied before using the entry program to call the device internal processing.
Item
Location of entry
Execute the entry program in memory other than the block 0 space and flash memory area.
program
The device internal processing cannot be directly called by the program that is executed on the flash
memory.
Execution status of
The device internal processing cannot be called while an interrupt is being serviced (NP bit of PSW =
program
0, ID bit of PSW = 1).
Masking interrupts
Mask all the maskable interrupts used. Mask each interrupt by using the corresponding interrupt
control register.
To mask a maskable interrupt, be sure to specify masking by using the corresponding interrupt
control register. Mask the maskable interrupt even when the ID bit of the PSW = 1 (interrupts are
disabled).
Manipulation of V
Stabilize the voltage applied to the V
PP
voltage
memory. After completion of the manipulation, return the voltage of the V
Initialization of internal
Do not use the internal timer while the flash memory is being manipulated.
timer
Because the internal timer is initialized after the flash memory has been used, initialize the timer with
the application program to use the timer again.
Stopping reset signal
Do not input the reset signal while the flash memory is being manipulated.
input
If the reset signal is input while the flash memory is being manipulated, the contents of the flash
memory under manipulation become undefined.
Stopping NMI signal
Do not input the NMI signal while the flash memory is being manipulated.
input
If the NMI signal is input while the flash memory is being manipulated, the flash memory may not be
correctly manipulated by the device internal processing.
If an NMI occurs while the device internal processing is in progress, the occurrence of the NMI is
reflected in the NMI flag of the RAM parameter. If manipulation of the flash memory is affected by
the occurrence of the NMI, the function of each self-programming function is reflected in the return
value.
Reserving stack area
The device internal processing takes over the stack used by the user program. It is necessary that
an area of 300 bytes be reserved for the stack size of the user program when the device internal
processing is called. r3 is used as the stack pointer.
Saving general-purpose
The device internal processing rewrites the contents of r6 to r14, r20, and r31 (lp).
registers
Save and restore these register contents as necessary.
CHAPTER 16 FLASH MEMORY ( µ µ µ µ PD70F3116)
Table 16-7. Software Environmental Conditions
PP
User's Manual U14492EJ3V0UD
Description
pin (V
voltage) before starting manipulation of the flash
PP
pin to 0 V.
PP
743

Advertisement

Table of Contents
loading

Table of Contents