
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
887
Figure 24-49. TCR1 Clock Selection
24.5.6.1.2
Internally clocked mode
TCR1 can be driven by the system clock or system clock divided by 2, before the prescaler. TCR1 can also
be clocked by a Peripheral Timebase Clock generated within the MCU, also selected by TCR1CTL. The
maximum frequency of the Peripheral Timebase Clock is system clock divided by two. TCR1 advances
only on the rising edges of the Peripheral Timebase Clock. The use of this clock is MCU-dependent.
TCR1CTL can also be used to freeze TCR1 clock independently of TCR2 (unlike GTBE).
24.5.6.1.3
TCR1 clock prescaling
Any clock source selected by TCR1CTL is prescaled by a factor of 1 to 256, selected by ETPU_TBCR
field TCR1P. For more information on prescaler configuration refer to
eTPU Time Base Configuration Register
. The TCR1 Prescaler resets when etpu_gtbe_in is negated. After
reset, it starts counting up to TCR1P when etpu_gtbe_in is asserted. When TCR1 increments
(etpu_gtbe_in = 1), the prescaler starts a new count and the new TCR1P becomes effective. When TCR1
is written by microcode, the prescaler is reloaded with TCR1P and it becomes effective, if etpu_gtbe_in is
asserted.
24.5.6.1.4
STAC bus client mode
In this mode the TCR1 register is continuously updated from the STAC bus, and the clock selection and
prescaling logic becomes ineffective. It is not writable by the microcode, and when read, it reflects the
STAC bus imported value. The use of EAC is forbidden in client mode. This mode is configured through
the register ETPU_REDCR (see
Section 24.4.3.4, ETPU_REDCR – eTPU STAC Configuration Register
24.5.6.1.5
STAC bus server mode
TCR1 bus can be exported to the STAC bus as a server, providing time information to other peripherals.
This mode is configured through the register ETPU_REDCR (see
Section 24.4.3.4, ETPU_REDCR –
eTPU STAC Configuration Register
24.5.6.2
Timer Count Register 2 – TCR2
The TCR2 is a 24-bit counter which can be used in the following modes:
•
Pin Transition Mode: Count the rise, fall or both transitions of TCRCLK signal.
TCR1CTL
TCR1
System
10
00
TCRCLK Prescaler
Input Originated
TCR1
Prescaler
In TCRCLK pin,
after the filter
1,2,3,..,256
TCR1P
8
01
Peripheral Timebase Clock
Red Line (STAC) bus
11
no clock
0
1
div 2
TCR1CS
Clock
Содержание 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...