
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
966
Freescale Semiconductor
NOTE
A HALT instruction placed after a no-flushing branch, dispatch or return
may be a problem from the debugger application standpoint: after the HALT
is executed, the eTPU debug interface informs the address of the
branch/dispatch/return destination, and the debugger application has no
direct way to identify which HALT instruction was executed, if multiple
HALTs lead to the same address. This can be solved if the debug support
block (NDEDI) has a register holding the address of the last instruction
executed, otherwise one should forbid non-flushed HALT instructions.
Software breakpoint setting and removal is possible only with SCM RAM implementations or ROM
implementations with SCM RAM emulation (see
Section 24.5.10.2.11, SCM emulation
). There is only
one way of inserting software breakpoints into SCM RAM: writing bit VIS = 1 in register ETPU_MCR,
and then accessing SCM as an ordinary RAM from the slave bus. This can be done only if both engines
are halted or stopped.
24.5.10.2.6
Single-step execution
When microengine is already in halt_exec state, it can run the next microinstruction in the normal program
flow and get back to halt state. PC is incremented, or assigned the BAF value in a branch with satisfied
condition. Note that the executed instruction was already prefetched in the instruction pipeline, and a new
microinstruction is fetched during its execution. The prefetched instruction may be cleared during halt
state by the forced execution of a branch with flush (see
Section 24.5.10.2.7, Forced microinstruction
), making single-step execute a NOP instead of the next instruction in the program flow.
Single-step execution is controlled by the debug interface, and is a feature available from Nexus if eTPU
is connected to the NDEDI block.The single-step execution of a NOP instruction can be useful to control
input signal sampling and filtering, if signal ndedi_stop_pins = 1 at the Debug Interface. Single-step does
not happen if VIS = 1.
24.5.10.2.7
Forced microinstruction execution
When microengine is already in halt state (either halt_idle or halt_exec), it can run forced
microinstructions through the debug interface. This feature is available from Nexus if eTPU is connected
to the NDEDI block. The microinstruction, specified by the user, is not fetched from SCM and comes
directly from the debug interface. MDU start commands issued by forced instructions are executed, and
the MDU runs the operation until the end, independently of the halt state. The microinstruction field END
is ignored.
During forced execution of any instruction except Branches, Returns and Dispatches, the PC does not
change, and the prefetched instruction in the pipeline is bypassed, but not discarded. When halt state is
suspended, the prefetched instruction is executed and the instruction pointed by the PC is prefetched in
parallel (two-stage pipeline).
Forced execution of a Branch, Dispatch or Return loads the PC with the BAF field (if branch condition is
satisfied), PC+P or RAR, respectively. If branch condition is not satisfied, PC value stays unaltered. The
flush control (field FLS) also works, so that a successful forced branch with flush replaces the prefetched
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...