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
Содержание 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 ...