
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
902
Freescale Semiconductor
Figure 24-57. Angle Ticks Generation
24.5.7.4.2
Generating the angle ticks
The integer part of TRR is preloaded to a prescaler, which counts down at input clock rate equals to the
TCR1 clock rate (TCR1CS = 0) or TCR1 clock rate divided by 2 (TCR1CS = 1) (see
). When
the down counter reaches zero, it generates an angle tick pulse to the Angle Counter Logic and a Load
pulse to the Fraction Accumulator. It is then preloaded with most updated TRR integer part. Due to the
Load pulse, the 9-bit fraction is accumulated in a 9-bit Fraction Accumulator. If a fraction overflow
condition occurs (the 9-bit adder asserts carry out), the accumulator saves the lower 9 bits of the addition
result, which is the remaining fractional part. The carry out bit indicates an accumulated integer “one”
which means that the angle tick is early by one input clock. It halts the prescaler operation for one input
clock to compensate the accumulated error generated by the integer prescaler. As a result, the average
angle tick period takes into account both the integer and the fraction parts. The accuracy depends on the
bit count of the fraction. Using 9-bit fraction part while the width of the field TICKS in register TPR is 10
bits provides accuracy of two LSB on a full scale (TICKS = 1023) or one LSB on lower scale
(TICKS<=511).
When the Tick Prescaler gets High Rate mode indication from the Angle Counter Logic, it generates angle
ticks at a rate of system clock divided by eight. In this case it does not generate Load pulses to the Fraction
Accumulator, ignores its “hold” input and preloads internally to a fixed period of eight system clocks.
When High Rate mode is entered, the prescaler is preloaded to a period of eight system clocks before its
first angle tick generation, ensuring separation of at least eight system clocks between the last Normal
mode angle tick and the first High Rate mode angle tick. The fraction accumulator resets when the tick
count advances to the next tooth, or when TRR is written by the microcode.
24.5.7.5
Count control and high rate logic
The Count Control and High Rate Logic controls TCR2 operation in Angle Mode, using the angle ticks
generated by the Angle Tick Generator. Count Control logic is responsible for advancing, holding and
resetting the TCR2 and Tooth Tick Counter in the proper timing, such that the TCR2 time base will reflect
Tooth Signal
Angle Tick
P1
P2
P3
Acceptance window
from EAC channel
2 4 6 9 11 13 16 18 20 23
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
TCR1 Clocks
EAC Channel
Capture
TCR2
0 1 2
Glitch rejected
TCR1 = 1000
TCR1 = 1023
1046
3 6 9 2 5 8 1 4 7 0
3 6 9 2 5 8 1 4 7 0
3 6
0
Fraction
Accumulator
(modes m2_o_st/dt)
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19 20 21
Tooth Tick Counter
Содержание 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...