
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
886
Freescale Semiconductor
•
Match channel’s internal registers MatchA or MatchB;
•
Capture time base value to channel’s internal registers, CaptureA and/or CaptureB, when a match
recognition or an Input transition detection occurs. For more information on channel events refer
to
Section 24.5.5, Enhanced Channels
.
The TCR1 and TCR2 counters are accessible by the microcode for read and write operations. Its current
value is used for getting the current time, and the captured values are used for channel relative time
calculations of future events. When they are written at the same time they are incremented from any clock
source, the written value prevails.
TCR1 with ETPU_TBCR[TCR1CS] = 0 and TCR2 values are updated in T2 and read in T4 (see
Section 24.7.1, Microcycle and I/O timing
). TCR1 can also work at full-speed system clock, and so be
updated on both T2 and T4, when ETPU_TBCR[TCR1CS] = 1. Both TCR1 and TCR2 values can be
imported from or exported to the STAC bus. When their values are imported (STAC Clients), these
registers are written from the STAC bus and can only be read by microcode. For information on STAC
bus protocol and definition of STAC modules refer to IPI STAC and
Section 24.5.6.3, STAC Interface
The TCR2 counters between the two engines are out of phase by 1 system clock, even when Time Bases
are shared between them through STAC. It also applies to TCR1 counters if ETPU_TBCR[TCR1CS] = 0,
but they can be in phase otherwise.
24.5.6.1
Timer Count Register 1 – TCR1
TCR1 can be used in the following modes:
•
Internally Clocked Mode
•
Externally Clocked Mode
•
STAC Bus Client Mode
The host program can read TCR1 time base through the ETPU_TB1R (see
– eTPU Time Base 1 (TCR1) Visibility Register
The TCR1 bus runs through all the local engine channels. In channels which select TCR1 as MatchA
and/or MatchB source, when its value is greater or equal to the programmed match value, a Match A and/or
Match B event occurs on that channel. A recognized match event sets its related Match Recognition Latch
1 or 2, and according to the Predefined Channel Modes (PDCM) it may generate a channel service request.
For details on eTPU channels refer to
Section 24.5.5, Enhanced Channels
.
24.5.6.1.1
Externally clocked mode
TCR1 can be driven externally by the TCRCLK input, after the digital filter. The TCR1 clock source is
configured by the TCR1CTL bit, as shown in
. For more information on clock source
selection, please refer to
Section 24.4.3.1, ETPU_TBCR – eTPU Time Base Configuration Register
.
Содержание 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...