
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
894
Freescale Semiconductor
combines hardware with microcode processing at channel 0, 1 or 2. The angle measurement is based on
history knowledge of the tooth period, for predicting the period of the next tooth. The tooth period is
partitioned into a programmable number of
Angle Ticks
. The eTPU application will use the divider in the
MAC/Divide unit to calculate an integer and a fraction part of the angle tick such that the full tooth period
gets the correct programmed number of angle ticks with no accumulated error.
Each single tooth can be divided in angle ticks, up to 1024. In a 60-tooth flywheel, 128 Angle Ticks per
tooth provide resolution of ~0.05 degrees per tick, which meets the accuracy requirement of 0.1 degrees
in current automotive applications.
The measurement of one tooth in angle ticks is independent on engine RPM; it is the tooth period itself
(and the corresponding tick period) that is re-calculated for each new tooth, based on the difference
between the estimated tooth and the actual detection.
For these applications, one of the eTPU channels 0, 1 or 2 is dedicated to service the physical tooth
detection. Channel 0 shares the same filtered input as the TCRCLK signal to get the same timing as the
EAC. The TCRCLK edge detection is selected by ETPU_TBCR field TCR2CTL for the EAC, and by
IPACA/B on channel 0, which must be set to detect the same edge(s). When channels 1 or 2 are selected
to work with the EAC, IPACA/B is used to select the tooth signal edge detection for both the channel and
the EAC, and the tooth signal that feeds the EAC is the same filtered input which feeds the channel.
Channel 0, 1 or 2 generates the signal transition service request, and can also be used for generation of a
window filter on this transition, to qualify TCR2 clocks. For this purpose, the selected channel should be
configured with double match window filtering mode (refer to
Section 24.5.5.4, Channel Modes
Depending on the channel mode set for the channel, Match A recognition opens the window, and Match
B recognition may close it or leave it open. See
Section 24.5.7.10, Angle logic and channel modes
, for
details. Match B also generates a time-out service request. Its input signal transition comes from the tooth.
The window can be defined by microcode to open at a predefined point inside the tooth period, and stay
open for a desired percentage to the tooth period. The window can be measured in angle or time This
method improves the noise immunity by allowing transition detection only on an expected period, a feature
which was software responsibility in previous TPU versions.
The EAC supports deceleration, acceleration, last tooth and missing tooth scenarios. The large range of
angle ticks per tooth can be used to cover longer tick counts caused by one or more missing teeth, or to
provide extra resolution for future application requirements. In case of a missing tooth, the EAC can be
configured to insert a dummy tooth or to simply measure a longer tooth.
shows the block diagram of the Angle Counter system. TCR1 is used as a time base which
measures the tooth period and is used for partitioning the period to angle ticks.
24.5.7.2
Angle mode registers
In Angle Mode, the registers described below control eTPU angle operations. They are accessible only by
microengine as source and destination registers in microinstructions. When eTPU is not in angle mode
(AM bit is negated in ETPU_TBCR), all angle mode registers can be used as general purpose registers.
Содержание 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...