![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 867](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659867.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
867
Preliminary—Subject to Change Without Notice
2. start a thread to reconfigure the EAC. The thread must set the EAC controlling channel (0, 1 or 2)
flags in a state, depending on the channel mode, that lets the channel tooth detection window open
(see
Section 23.4.7.10, “Angle Logic and Channel Modes
). It can optionally write TCR2 with an
angle preset value equivalent to the first tooth expected after restart. The thread must also set TPR
bit HOLD=1. The TPR bit IPH must be 0.
3. after the thread is finished, write ETPUTBCR setting AM=01, 10 or 11, and TCR2CTL according
to the desired tooth edge selection if AM=01.
The first tooth detected after this procedure restarts the TCR2 counting, unfreezing the Angle Mode logic
into normal mode.
23.4.7.12 Special TPR Write Cases
This section describes how simultaneous modification of TPR fields are resolved, and how the effect of
TPR writes depend on the EAC mode.
23.4.7.12.1
TPR Buffering
Section 23.4.7.5.3, “High Rate Mode (Acceleration)
), TPR writes are immediately
effective only for bits IPH and HOLD. Writes to all other fields are “buffered” and become effective when
EAC leaves High Rate mode. However, if TPR is written a second time right after IPH is asserted in
Normal mode, this second write behaves as if EAC is still in Normal mode. Only in the next microcycle
(after execution of a nop, for instance) the TPR writes are buffered, acknowledging High Rate mode.
MISSCNT and LAST can be written any value during High Rate mode, and the value that prevails for the
next tooth is the one sampled when EAC goes back to Normal mode (or the value written in Normal or
Halt mode thereafter). If MISSCNT and/or LAST are not zero when High Rate mode begins, they are
sampled into the internal EAC logic and are effective while High Rate lasts (missing teeth count continues
and TCR2 is reset at the end of High Rate if LAST=1). However, their values in TPR are reset when High
Rate mode starts. After that and until the end of High Rate mode, the value read by microcode is the same
written. This behavior prevents read-modify-writes to TPR from unwillingly rewriting LAST or
MISSCNT.
23.4.7.12.2
IPH and LAST
If both IPH and LAST are asserted in the same microinstruction, the EAC acts as if LAST was set first and
then IPH right after, so that:
•
in Normal mode, it goes to High Rate with LAST=1;
•
in Halt mode, it goes to Normal Mode resetting LAST (and TCR2);
•
in High Rate mode, IPH is ignored and LAST becomes effective in the next tooth (physical or
inserted) after it goes back to Normal mode.
23.4.7.12.3
IPH and TICKS
Because of different results depending on the EAC mode at the time of TPR write, it is not advisable to
write 1 to IPH and change TICKS at the same microinstruction. A consistent behavior is obtained if IPH
Содержание 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 ...