CHAPTER 22 ADDRESS MATCH DETECTION FUNCTION
22.4
Explanation of Operation of Address Match Detection
Function
If the addresses of the instructions executed in the program match those set in the
detection address setting registers (PADR0 to PADR5), the address match detection
function will replace the first instruction code executed by the CPU with the INT9
instruction (01
) to branch to the interrupt processing program.
H
Operation of Address Match Detection Function
Figure 22.4-1 shows the operation of the address match detection function when the detect addresses are set
and an address match is detected.
Figure 22.4-1 Operation of Address Match Detection Function
The instruction address to be
executed by program matches
detect address setting register 0
Setting Detect Address
1) Disable the detection address setting register 0 (PADR0) where the detect address is set for address
match detection (PACSR0: AD0E=0).
2) Set the detect address in the detection address setting register 0 (PADR0). Set "FF
"00
" at the middle bits, and "1F
H
(PADR0).
3) Enable the detect address setting register 0 (PADR0) where the detect address is set for address match
detection (PACSR0: AD0E=1).
Program Execution
1) If the address of the instruction to be executed in the program matches the set detect address, the first
instruction code at the matched address is replaced by the INT9 instruction code ("01
2) INT9 instruction is executed. INT9 interrupt is generated and then interrupt processing program is
executed.
516
Program execution
Address
Instruction code
FF001C :
A8 00 00
FF001F :
4A 00 00
FF0022 :
4A 80 08
Replaced by INT9 instruction (01
" at the lower bits of the detection address setting register 0
H
Mnemonic
MOVW
RW0,#0000
MOVW
A,#0000
MOVW
A,#0880
)
H
" at the higher bits,
H
").
H