
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
.
Summary of Contents for MPC5644A
Page 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Page 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Page 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Page 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Page 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Page 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Page 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...