![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 360](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838360.webp)
and a flexible trigger system to decide when to capture bus information and what
information to capture. The system relies on the single-wire background debug system to
access debug control registers and to read results out of the eight stage FIFO.
The debug module includes control and status registers that are accessible in the user's
memory map. These registers are located in the high register space to avoid using
valuable direct page memory space.
Most of the debug module's functions are used during development, and user programs
rarely access any of the control and status registers for the debug module. The one
exception is that the debug system can provide the means to implement a form of ROM
patching. This topic is discussed in greater detail in
.
18.3.1 Comparators A and B
Two 16-bit comparators (A and B) can optionally be qualified with the R/W signal and
an opcode tracking circuit. Separate control bits allow you to ignore R/W for each
comparator. The opcode tracking circuitry optionally allows you to specify that a trigger
will occur only if the opcode at the specified address is actually executed as opposed to
only being read from memory into the instruction queue. The comparators are also
capable of magnitude comparisons to support the inside range and outside range trigger
modes. Comparators are disabled temporarily during all BDC accesses.
The A comparator is always associated with the 16-bit CPU address. The B comparator
compares to the CPU address or the 8-bit CPU data bus, depending on the trigger mode
selected. Because the CPU data bus is separated into a read data bus and a write data bus,
the RWAEN and RWA control bits have an additional purpose, in full address plus data
comparisons they are used to decide which of these buses to use in the comparator B data
bus comparisons. If RWAEN = 1 (enabled) and RWA = 0 (write), the CPU's write data
bus is used. Otherwise, the CPU's read data bus is used.
The currently selected trigger mode determines what the debugger logic does when a
comparator detects a qualified match condition. A match can cause:
• Generation of a breakpoint to the CPU
• Storage of data bus values into the FIFO
• Starting to store change-of-flow addresses into the FIFO (begin type trace)
• Stopping the storage of change-of-flow addresses into the FIFO (end type trace)
On-chip debug system (DBG)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
360
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...