
521
CHAPTER 22 ADDRESS MATCH DETECTION FUNCTION
Figure 22.4-5 Flow of Patch Processing for Patch Program
E
2
PROM :
0000H = 0
INT9
INT9
NO
YES
NO
YES
MB90360
ROM
RAM
E
2
PROM
000000H
000100H
000400H
000480H
000900H
FF0000H
FF8000H
FF8050H
FFFFFFH
0000H
0001H
0002H
0003H
0010H
0090H
FFFFH
I/O area
Register/RAM area
Patch program
RAM area
Stack area
Detection address setting
register
Program error
Patch program byte count : 80H
Detect address (Low): 00H
Detect address (Middle): 80H
Detect address (High): FFH
Patch program
Reset
Read the 00H of
E2PROM
Read detect address
E2PROM:
0001H to 0003H
Å´
MCU: Set to PADR0
Read patch program
E2PROM:
0010H to 008FH
Å´
MCU:
000400H to 000047FH
Enable address match
detection
(PACSR: AD0E = 1)
Execution of normal
program
Program address
= PADR0
Branch to patch program
JMP 000400H
Execution of patch program
000400H to 000480H
End of patch program
JMP FF8050H