breakpoints. To use comparators A and B as hardware breakpoints, set DBG_T = 0x81
for tag-type breakpoints and 0x01 for force-type breakpoints. This sets up an end-type
trace with trigger mode "A OR B".
Comparator C is not involved in the trigger logic for the on-chip ICE system.
19.4.3 Trigger selection
The DBG_T[TRGSEL] bit is used to determine the triggering condition of the on-chip
ICE system. DBG_T[TRGSEL] applies to both trigger A and B except in the event only
trigger modes. By setting the DBG_T[TRGSEL] bit, the comparators will qualify a match
with the output of opcode tracking logic. The opcode tracking logic is internal to each
comparator and determines whether the CPU executed the opcode at the compare
address. With the DBG_T[TRGSEL] bit cleared a comparator match is all that is
necessary for a trigger condition to be met.
NOTE
If the DBG_T[TRGSEL] is set, the address stored in the
comparator match address registers must be an opcode address
for the trigger to occur.
19.4.4 Trigger break control (TBC)
The TBC is the main controller for the DBG module. Its function is to decide whether
data should be stored in the FIFO based on the trigger mode and the match signals from
the comparator. The TBC also determines whether a request to break the CPU should
occur.
The DBG_C[TAG] bit controls whether CPU breakpoints are treated as tag-type or force-
type breakpoints. The DBG_T[TRGSEL] bit controls whether a comparator A or B
match is further qualified by opcode tracking logic. Each comparator has a separate
circuit to track opcodes because the comparators could correspond to separate
instructions that could be propagating through the instruction queue at the same time.
In end-type trace runs (DBG_T[BEGIN] = 0), when the comparator registers match,
including the optional R/W match, this signal goes to the CPU break logic where
DBG_C[BRKEN] determines whether a CPU break is requested and the DBG_C[TAG]
control bit determines whether the CPU break will be a tag-type or force-type breakpoint.
When DBG_T[TRGSEL] is set, the R/W qualified comparator match signal also passes
through the opcode tracking logic. If/when it propagates through this logic, it will cause a
Functional description
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
390
NXP Semiconductors
Содержание MC9S08PA4
Страница 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Страница 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Страница 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Страница 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Страница 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Страница 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Страница 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Страница 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Страница 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Страница 268: ...Initialization application information MC9S08PA4 Reference Manual Rev 5 08 2017 268 NXP Semiconductors ...
Страница 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Страница 370: ...Memory map and register description MC9S08PA4 Reference Manual Rev 5 08 2017 370 NXP Semiconductors ...
Страница 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Страница 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...