MPC563XM Reference Manual, Rev. 1
742
Freescale Semiconductor
Preliminary—Subject to Change Without Notice
FEND assertion terminates any current running thread as if an END instruction have been executed
(see
Section 23.4.9.4.1, “Ending Current Thread - END
1 = Ends any ongoing thread.
0 = Normal operation.
This bit is self-negating when the thread ends
1
. Writing FEND=1 is ignored and FEND stays 0 when
the microengine is in TST, halted, stopped, or idle (no thread executing).
MDIS — Module Disable Bit
When MDIS is set, the Engine shuts down its internal clocks, going into Module Disable Mode. TCR1
and TCR2 cease to increment, and input sampling stops. The Engine asserts the stop flag (STF) bit to
indicate that it has stopped However, the BIU continues to run, and the Host can access all registers
except for the channel registers
2
(see list of channel registers on
Configuration and Control Registers
”). After MDIS is set, even before STF asserts, data read from the
channel registers is not meaningful and writes are ineffective, issuing a Bus Error. When the MDIS bit
is asserted while the microcode is executing, the eTPU will stop when the thread is complete.
1 = Commands Engine to stop its clocks.
0 = eTPU Engine runs.
Stop completes on the next system clock after the stop condition is valid. The MDIS bit is
write-protected when VIS=1.
NOTE
Once MDIS is switched from 1 to 0 or vice versa, it must not be written a
different value until STF changes accordingly.
STF — Stop Flag Bit
Each Engine asserts its stop flag (STF) to indicate that it has stopped. Only then the host can assume
that the Engine has actually stopped. The eTPU system is fully stopped when the STF bits of both
eTPU Engines are asserted. In case of IP-Bus stop, the eTPU system responds by acknowledging stop
only after both eTPU 1 and eTPU 2 have been stopped. Engine only stops when any ongoing thread is
complete also in this case.
1 = Engine has stopped (after the local MDIS bit has been asserted, or after the IP-Bus stop line has
been asserted).
0 = Engine is operating.
Summarizing Engine stop conditions, which STF reflects:
STF_1 := (after stop completed) MDIS_1 | SoC stop request
STF_2 := (after stop completed) MDIS_2 | SoC stop request
STF_1 and STF_2 mean STF bit from engine 1 and STF bit from engine 2 respectively.
HLTF — Halt Mode Flag
1.
Only on rare occasions (e.g., during a long stall, see
Section 23.4.10.2.10, “Microengine Stall
) FEND can be read as 1,
because it negates as soon as the end begins execution.
2.
The Timebase registers can still be read with MDIS=1, but writes are ineffective and a Bus Error is issued.
Global Channel
Registers and SPRAM can be accessed normally.