CHAPTER 17 ROM CORRECTION FUNCTION
User’s Manual U13850EJ4V0UM
422
Figure 17-5. ROM Correction Operation and Program Flow
START (reset vector)
Correction address?
CORENn = 1?
CORRQn = 0?
Yes
No
Data for ROM correction setting is loaded
from an external memory into the internal
RAM to initialize ROM correction function.
If there is a correction code, it is loaded in
the internal RAM.
Microcontroller initialization
Clears CORRQn flag.
JMP channel n correct code address
Executes internal ROM
program
Executes correction program code
Jumps to internal ROM
Yes
No
Yes
No
CORRQn flag set
JMP r0
The address of the internal RAM that
stores the correction code of channel n
should be preset before the instruction
that makes the program jump to this
address is stored in the internal ROM.
: Executed by a program stored in the internal ROM
: Executed by a program stored in the internal RAM
: Executed by the ROM correction function
Caution Check the ROM correction generation from the vector table with a high interrupt level
when executing ROM correction during a vector interrupt routine. If an interrupt
conflicts with ROM correction, processing is branched to an interrupt vector, where, if
ROM correction is being re-executed, CORRQn is set (1) again and multiple CORRQn
flags are set (1). The channel for which ROM correction is to be executed is
determined by the interrupt level.
Remark
n = 0 to 3
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...