![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 859](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659859.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
859
Preliminary—Subject to Change Without Notice
23.4.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
the correct estimated angle. This logic also includes the Tooth Program Register (TPR, see
Section 23.4.7.2, “Angle Mode Registers
for more information).
The Count Control and High Rate Logic handles deceleration, acceleration, missing teeth and last tooth.
On High Rate (acceleration) it ensures that the angle bus scans all valid angle values in a rate which can
be traced by the Red Line bus. This operation enables external Red Line clients (if TCR2 is a Red Line
server) or channels working in “equal-only” comparator mode to match the TCR2 exported angle
information in “equal” mode, in an exact match.
Because the eTPU channels are capable of capturing either TCR1 or TCR2 due to signal transition, the
microcode can get either the angle or time of the physical pin transition. Since the EAC channel (0, 1 or
2) is connected to the physical tooth, the microcode can get the EAC error in angle domain (tooth appears
at the wrong angle) or time domain (physical tooth captured time into the EAC channel, relative to the
estimated tooth time). Note that in angle mode, the transition detect logic of the channel 0, if selected as
the EAC channel, is fed from the digital filter of the TCRCLK signal, and not from the channel 0 internal
digital filter. This ensures synchronous operation of channel 0 and the EAC hardware.
Another feature of the eTPU channel, when working in Single Match And Single Transition Enhanced
Mode (refer to
Section , “Single Match Enhanced Mode (sm_st_e)
), is capturing a single time base due to
signal transition before and after the digital filter. This option allows subtracting the digital filter delay to
get accurate signal transition timing on the channel. This way, the TCRCLK signal may be programmed
with a slow and reliable digital filter, and get accurate time measurement of the digital filter delay.
To assert the end of the estimated tooth period the Count Control and High Rate logic compares the TICKS
field in TPR (refer to
Section 23.4.7.2, “Angle Mode Registers
) with the current value of the tooth tick
counter. When the Tooth Tick value is greater or equal to TICKS, it determines the end of the estimated
tooth period. On acceleration this event occurs during High Rate mode operation, after the arrival of a
physical tooth. In deceleration, this event occurs during Normal Mode, before the arrival of a physical
tooth. On constant angular velocity, this event appears together with the arrival of a physical tooth.
The following sections describe the operation of the Counter Control and High Rate logic.
23.4.7.5.1
Normal Mode
In Normal mode the Counter Control logic advances TCR2 and the Tooth Tick counter as if the engine has
a constant speed during the tooth period. It receives the angle ticks from the Angle Tick Generator in an
average rate which is determined by the Tooth Rate Register (TRR). This is the reset mode.
When the Tooth Tick Counter is about to reach the last value effectively stored in TPR field TICKS plus
one, the hardware detects the end of the estimated tooth period. If the physical tooth and the estimated
tooth arrive at the same time the EAC stays in Normal mode, the Tooth Tick Counter is reset, and TCR2
is incremented (depending on TPR bits LAST and MISSCNT). If the physical tooth and the estimated
tooth do not arrive at the same time, either acceleration or deceleration is detected, and the EAC switches
to the proper mode. See
for a detailed diagram of Normal Mode behavior.
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...