
Channel Modes
Understanding the eTPU Channel Hardware, Rev. 0
Freescale Semiconductor
17
The mode can be further simplified by disabling either the match or the transition. Since the TPU
effectively was either an input or an output, this is the true TPU compatible mode.
NOTE
Matches are disabled by default and can only be enabled by setting the
MRLE. This is done as a side effect of writing the ERT to the corresponding
Match register, using
EnableMatchA()
or
EnableMatchB()
.
Transition detection is disabled by programming the IPAC using
DetectADisable()
or
DetectBDisa
ble(). This is the default setting.
When an application needs to change the state of an output pin or even just request service from the host
at some known time or angle in the future, the single match is all that is needed. If the action is to be
repeated, the match will trigger a service request to the eTPU, which can set up a subsequent match.
Likewise, if a future pin transition must be detected and the time of the transition captured, this mode is
completely adequate.
The sm_st mode should be the first mode considered for new designs. With software support it can handle
85% of all eTPU applications. However, the eTPU enhancements were added primarily to address most of
the 15% that were difficult or impossible in the TPU. The rest of the channel modes were each designed
with a specific type of application in mind. They should be considered in cases where the simple TPU
mode is inadequate, or where the additional features in the channel logic simplify or enhance the features
of a function.
3.2
Single Match, Double Transition
The
SingleMatchDoubleTransition()
(sm_dt) mode adds a second transition detection to the previous
mode.
NOTE
The only difference between single transition (_st) and double transition
(_dt) modes is that a channel service request is made at the first or second
transition respectively. In both modes, two transitions can be triggered
depending on the IPAC programming. TDLB in _st modes and TDLA in _dt
modes will not cause a service request, but the latch conditions will be
considered in the entry vector decoding if a service request is made for
another reason.
In the eTPU, the transitions are always ordered. The transition detection in
Action Unit A must always occur before the transition in Action Unit B can
be detected.