DEBUG FUNCTION
17.4 Out-of-address-area detection mode
17.4 Out-of-address-area detection mode
When the contents of PG and PC go out of the range of the specified area, an address matching detection
interrupt request occurs.
17.4.1 Setting procedure for out-of-address-area detection mode
Figure 17.4.1 shows an initial setting example for registers relevant to the out-of-address-area detection
mode.
Disables interrupts.
The interrupt disable flag (I) is set to “1.”
Selection of detect condition
b7
b0
b7
b0
Debug control register 1 (Address 6716
)
0
0
0
0
0
1
0
1
Debug control register 0 (Address 6616
)
Address compare register access enable bit
(Note 1)
0 : Disabled.
Selection of out-of-address-area detection
Detect enable bit
0 : Detection disabled.
Set the detect enable bit to “1.”
b7
b0
Processing for setting of address compare registers
Debug control register 0 (Address 6616
)
1
b7
b0
Detect enable bit
1 : Detection enabled.
1
1
Debug control register 1 (Address 6716
)
Address compare register access enable bit
(Note 1)
1 : Enabled.
Clear the interrupt disable flag (I) to “
0” (Note 2).
Setting of address compare registers
b23
b
0
Address compare register 0
(Addresses 6A16 to 6816
)
Detection starts
The start address of the programming
area is set here.
b23
b
0
Notes 1: Be sure to set this bit to “1” immediately before reading from or
writing to the address compare registers 0, 1. Then, be sure to
clear this bit to “0” immediately after this reading or writing.
2: This processing is unnecessary when no maskable interrupt is
used.
Address compare register 1
(Addresses 6D16 to 6B16
)
The last address of the programming
area is set here.
Fig. 17.4.1 Initial setting example for registers relevant to out-of-address-area detection mode
7905 Group User’s Manual Rev.1.0
17-10