19.4 Functional description
This section provides a complete functional description of the on-chip ICE system. The
DBG module is enabled by setting the DBG_C[DBGEN] bit. Enabling the module allows
the arming, triggering and storing of data in the FIFO. The DBG module is made up of
three main blocks, the comparators, trigger break control logic and the FIFO.
19.4.1 Comparator
The DBG module contains three comparators, A, B, and C. Comparator A compares the
core address bus with the address stored in the DBG_CAH and DBG_CAL registers.
Comparator B compares the core address bus with the address stored in the DBG_CBH
and DBG_CBL registers except in full mode, where it compares the data buses to the data
stored in the DBG_CBL register. Comparator C compares the core address bus with the
address stored in the DBG_CCH and DBG_CCL registers. Matches on comparators A, B,
and C are signaled to the trigger break control (TBC) block.
19.4.1.1 RWA and RWAEN in full modes
In full modes ("A And B" and "A And Not B") DBG_CAX[RWAEN and
DBG_CAX[RWA] are used to select read or write comparisons for both comparators A
and B. To select write comparisons and the write data bus in Full Modes set
DBG_CAX[RWAEN] = 1 and DBG_CAX[RWA] = 0, otherwise read comparisons and
the read data bus will be selected. The DBG_CBX[RWBEN] and DBG_CBX[RWB] bits
are not used and will be ignored in full modes.
19.4.1.2 Comparator C in loop1 capture mode
Normally comparator C is used as a third hardware breakpoint and is not involved in the
trigger logic for the on-chip ICE system. In this mode, it compares the core address bus
with the address stored in the DBG_CCX, DBG_CCH, and DBG_CCL registers.
However, in loop1 capture mode, comparator C is managed by logic in the DBG module
to track the address of the most recent change-of-flow event that was captured into the
FIFO buffer. In loop1 capture mode, comparator C is not available for use as a normal
hardware breakpoint.
Functional description
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
388
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 ...