![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 362](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838362.webp)
18.3.3 Change-of-flow information
To minimize the amount of information stored in the FIFO, only information related to
instructions that cause a change to the normal sequential execution of instructions is
stored. With knowledge of the source and object code program stored in the target
system, an external debugger system can reconstruct the path of execution through many
instructions from the change-of-flow information stored in the FIFO.
For conditional branch instructions where the branch is taken (branch condition was
true), the source address is stored (the address of the conditional branch opcode). Because
BRA and BRN instructions are not conditional, these events do not cause change-of-flow
information to be stored in the FIFO.
Indirect JMP and JSR instructions use the current contents of the H:X index register pair
to determine the destination address, so the debug system stores the run-time destination
address for any indirect JMP or JSR. For interrupts, RTI, or RTS, the destination address
is stored in the FIFO as change-of-flow information.
18.3.4 Tag vs. force breakpoints and triggers
Tagging is a term that refers to identifying an instruction opcode as it is fetched into the
instruction queue, but not taking any other action until and unless that instruction is
actually executed by the CPU. This distinction is important because any change-of-flow
from a jump, branch, subroutine call, or interrupt causes some instructions that have been
fetched into the instruction queue to be thrown away without being executed.
A force-type breakpoint waits for the current instruction to finish and then acts upon the
breakpoint request. The usual action in response to a breakpoint is to go to active
background mode rather than continuing to the next instruction in the user application
program.
The tag vs. force terminology is used in two contexts within the debug module. The first
context refers to breakpoint requests from the debug module to the CPU. The second
refers to match signals from the comparators to the debugger control logic. When a tag-
type break request is sent to the CPU, a signal is entered into the instruction queue along
with the opcode so that if/when this opcode ever executes, the CPU will effectively
replace the tagged opcode with a BGND opcode so the CPU goes to active background
mode rather than executing the tagged instruction. When the TRGSEL control bit in the
DBGT register is set to select tag-type operation, the output from comparator A or B is
qualified by a block of logic in the debug module that tracks opcodes and produces only a
trigger to the debugger if the opcode at the compare address is actually executed. There is
separate opcode tracking logic for each comparator so more than one compare event can
be tracked through the instruction queue at a time.
On-chip debug system (DBG)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
362
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 ...