MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
799
Preliminary—Subject to Change Without Notice
register
captures one of the two time bases as a result of a Match or Transition detection. Service Requests
are issued on particular combination of match and capture events, defined by the selected Channel Mode.
In the context of the eTPU channels, a
Match
is a comparison between a time base value and a channel
Match register. If those two values are coincident, or the time base value is greater than the value of the
Match register, a
Match Event occurs
. Depending on the channel mode of operation and current state of
the channel logic, the match event may be recognized, i.e., change the state of the channel, or be ignored.
A match event recognized by the channel logic is called a
Match Recognition
. Match Recognitions can
cause, also depending on Channel Mode and current state, the channel to request service, configuring a
Match Service Request
.
eTPU uses two kinds of comparator to assert a Match Event: an
Equal comparator
, in which both the
Match Register and the value of the selected time base must match exactly, and a
Greater-Equal
comparator
. The Greater-Equal comparator considers any time base value between the range [N :
N+0x800000-1] as a valid match against the value of N in the Match Register, even when the value
N+0x800000-1 wraps around the point of origin (0x0). Refer to
matching values on a Greater-Equal comparator.
The second source of events for the eTPU channel is a
Transition
detected at the corresponding channel’s
input signal. Two distinct Transition detections can be programmed individually for each channel,
allowing recognition of all possible combinations of edge detection. It is also possible to check the
sampled state of an input signal upon the occurrence of a Match: the sampling of the expected value is
treated as a Transition, even if the input signal did not necessarily toggled at the time of the Match, or at
any time at all.
Like Match Events,
Transitions Events
may or not be recognized by the channel logic. When they are, a
Transition Detection
occurs. As well as Match Recognitions, Transition Detections can issue a Channel
Service Request, depending on Channel Mode and current state.
Transition Detections and Match Recognitions are sometimes simply called Transitions and Matches
throughout this document, for short.
Input and output signals can be processed separately by the channel logic and microcode, and can also be
combined such that Matches and Transitions are used to cause
output signal actions
. The output signals
can also be directly controlled by microcode. Many event combinations are allowed for a channel, given
the possibility of configuring pairs of matches and transitions for the dual action logic, where each event
is able to block or enable the next one. There is a full set of Channel Modes described in
, exploring all the capabilities mentioned here.
Each channel has its own set of registers and flags. They are selected, and made accessible to the
Microengine, according to the value written into the microengine
CHAN Register
that points to the
desired channel. Every time the CHAN register is written, even if with the same previous value, a channel
is selected and its flags and registers are updated. For further detail, see