beautypg.com

3 breakpoint register 5 (bp5) -14, 3 using breakpoints -14, 3 using breakpoints – Maxim Integrated MAXQ7666 User Manual

Page 310

background image

11.3.2.3 Breakpoint Register 5 (BP5)

This register is accessible only through background mode read/write commands.

When (REGE = 0): This register serves as one of the two data memory address breakpoints. When DME is set in background mode,
the debug engine monitors the data memory address bus activity while the CPU is executing the user program. If an address match
is detected, a break occurs, allowing the debug engine to take control of the CPU and enter debug mode.

When (REGE = 1): This register serves as one of the two register breakpoints. A break occurs when the following two conditions are
met:

• Condition 1: The destination register address for the executed instruction matches with the specified module and index. When

used as register breakpoint, the bits BP5.3:BP5.0 are recognized as module specifier and bits BP5.8:BP5.4 are recognized as
the register index within the module. Bits BP5.15:BP5.9 are ignored.

• Condition 2: The bit pattern written to the destination register matches those bits specified for comparison by the ICDD data reg-

ister and ICDA mask register. Only those ICDD data bits with their corresponding ICDA mask bits will be compared. When all bits
in the ICDA register are cleared, Condition 2 becomes a don’t care.

This register defaults to FFFFh after a power-on reset or test-logic-reset TAP state.

Register Description:

Breakpoint Register 5

Register Name:

BP5

Bits 15 to 0: Breakpoint Register 5 Bits 15 to 0 (BP5.15 to BP5.0)

11.3.3 Using Breakpoints

All breakpoint registers (BP0–BP5) default to the FFFFh state on power-on reset or when the test-logic-reset TAP state is entered. The
breakpoint registers are accessible only with background mode read/write commands issued over the TAP communication link. The
breakpoint registers are not read/write accessible to the CPU.

Setting the debug-mode enable (DME) bit in the ICDC register to logic 1 enables all six breakpoint registers for breakpoint match com-
parison. The state of the break-on register enable (REGE) bit in the ICDC register determines whether the BP4 and BP5 breakpoints
should be used as data memory address breakpoints (REGE = 0) or as register breakpoints (REGE = 1).

When using the register matching breakpoints, it is important to realize that debug mode operations (e.g., read data memory, write
data memory, etc.) require the use of ICDA and ICDD for passing information between the host and MAXQ7665/MAXQ7666 ROM rou-
tines. It is advised that these registers be saved and restored, or be reconfigured before returning to the background mode if register
breakpoints are to remain enabled.

When a breakpoint match occurs, the debug engine forces a break and the MAXQ7665/MAXQ7666 enter debug mode. If a breakpoint
match occurs on an instruction that activates the PFX register, the break is held off until the prefixed operation completes. The host can
assess whether debug mode has been entered by monitoring the status bits of the 10-bit word shifted out of the TDO pin. The status
bits change from the nondebug (00b) state associated with background mode to the debug-idle (01b) state when debug mode is
entered. Debug mode can also be manually invoked by host issuance of the debug background command.

MAXQ7665/MAXQ7666 User’s Guide

11-14

Bit #

15

14

13

12

11

10

9

8

Name

BP5.15 BP5.14 BP5.13 BP5.12 BP5.11 BP5.10 BP5.9 BP5.8

Reset

1 1 1 1 1 1 1 1

Access

s s s s s s s s

Bit #

7

6

5

4

3

2

1

0

Name

BP5.7 BP5.6 BP5.5 BP5.4 BP5.3 BP5.2 BP5.1 BP5.0

Reset

1 1 1 1 1 1 1 1

Access

s s s s s s s s

s = special (accessible only by background mode read/write commands)

Maxim Integrated

This manual is related to the following products: