English
Language : 

PXR40RM Datasheet, PDF (1193/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
Enhanced Time Processing Unit (eTPU2)
FEND assertion terminates any current running thread as if an END instruction have been executed
(see eTPU Reference Manual for details).
1 = Ends any ongoing thread.
0 = Normal operation.
This bit is self-negating when the thread ends1. 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 registers2 (see list of channel registers on Section 29.2.10, Channel
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 eTPU 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 | device stop request
STF_2 := (after stop completed) MDIS_2 | device 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 eTPU Reference Manual) 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 SDM can be accessed normally.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
29-25