![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 395](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838395.webp)
19.4.5 FIFO
The FIFO is an eight word deep FIFO. In all trigger modes except for event only, the data
stored in the FIFO will be change of flow addresses. In the event only trigger modes only
the data bus value corresponding to the event is stored. In event only trigger modes, the
high byte of the valid data from the FIFO will always read a 0x00.
19.4.5.1 Storing data in FIFO
In all trigger modes except for the event only modes, the address stored in the FIFO will
be determined by the change of flow indicators from the core. The signal core_cof[1]
indicates the current core address is the destination address of an indirect JSR or JMP
instruction, or a RTS or RTI instruction or interrupt vector and the destination address
should be stored. The signal core_cof[0] indicates that a conditional branch was taken
and that the source address of the conditional branch should be stored.
19.4.5.2 Storing with begin-trigger
Storing with begin-trigger can be used in all trigger modes. Once the DBG module is
enabled and armed in the begin-trigger mode, data is not stored in the FIFO until the
trigger condition is met. Once the trigger condition is met the DBG module will remain
armed until 8 words are stored in the FIFO. If the core_cof[1] signal becomes asserted,
the current address is stored in the FIFO. If the core_cof[0] signal becomes asserted, the
address registered during the previous last cycle is decremented by two and stored in the
FIFO.
19.4.5.3 Storing with end-trigger
Storing with end-trigger cannot be used in event-only trigger modes. After the DBG
module is enabled and armed in the end-trigger mode, data is stored in the FIFO until the
trigger condition is met. If the core_cof[1] signal becomes asserted, the current address is
stored in the FIFO. If the core_cof[0] signal becomes asserted, the address registered
during the previous last cycle is decremented by two and stored in the FIFO. When the
trigger condition is met, the DBG_C[ARM] and DBG_S[ARMF] will be cleared and no
more data will be stored. In non-event only end-trigger modes, if the trigger is at a change
of flow address the trigger event will be stored in the FIFO.
Chapter 19 Debug module (DBG)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
NXP Semiconductors
395
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 ...