
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
910
Freescale Semiconductor
When the microcode detects such a case, the Tooth Counter has been advanced by mistake to the next
tooth. The microcode can set the HOLD bit in the TPR, forcing the EAC to freeze and wait for the next
physical tooth to close the gap. When the next physical tooth arrives, HOLD is automatically negated and
the EAC proceeds from that point to the remaining portion of the tooth period, in the same mode it was
when HOLD bit was asserted.
24.5.7.10 Angle logic and channel modes
The TCRCLK transition detection is qualified by a signal that comes from channel 0 (see
and depends on the particular mode (PDCM) programmed for that channel. This configures a window for
TCRCLK detection for the angle logic which is the same (except on High Rate mode, see
Section 24.5.7.5.3, High rate mode (Acceleration)
) used to set the TDLA flag on single transition modes,
and TDLB on double transition modes (see signals TSE1,TSE2 in
channels 1 or 2 are used to control EAC (see signals TS1, TS2 in
window depends on the channel mode as follows:
•
On all modes, the window closes upon a tooth edge detection: TDLA asserted on single transition
modes, TDLB asserted on double transition modes.
•
On mode m2_st: the window opens on Match A (which enables Transition A) and does not close
with Match B. If Match B comes before Match A, it blocks Match A and, hence, Transition A.
•
On mode m2_o_st: the window opens on Match A (which enables Transition A) and closes on
Match B. Match B is enabled by Match A, so it cannot come before.
•
On all other Single Transition modes, the window is “always open”, independently of matches.
•
On mode m2_dt: the window opens on Transition A, which is enabled by Match A. The window
does not close with Match B, but if it comes before Match A the later gets blocked and, hence,
blocks Transitions. Match A is also a condition for the window, so the microcode closes it by
clearing MRLA.
•
On mode m2_o_dt: the window opens on Transition A, which is enabled by Match A. The window
closes on Match B, which is enabled by Match A. Match A is also a condition for the window, so
the microcode closes it by clearing MRLA.
•
On all other Double Transition modes, the window opens on Transition A.
24.5.7.11 Restarting angle logic
It is not advisable to toggle the ETPU_TBCR bit AM while GTBE = 1. However, if the Angle Logic must
be restarted without interfering with the timebase count running on TCR1, the procedure below must be
followed:
1. Write ETPU_TBCR setting AM = 00 and TCR2CTL = 111 at once. That prevents TCR2 from
incrementing while the Angle logic is disabled. The Angle Logic state-machine resets to Normal
mode and the tick prescaler to the initial count by AM = 00, but not the microengine registers TPR
and TRR.
Содержание 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...