TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-52 V2.0, 2007-07
GPTA, V2.0
The width of the core observation window is defined by:
2 × (period - 2
k
)(24.5)
As a consequence, the width of the “Before” window within the core observation window
is (period - 2
k
) and the width of the “After” window within the core observation window is
(period - 2
k
), including the value T.
Additional Information: Illustration on the General Case
The previous section illustrated the greater/equal compare for the particular case of a
4-bit timer. The purpose of this section is to describe the implementation from a general
point of view, that is, for a timer period equal to M - m + 1.
In the following figures, the X axis indicates the timer value (elapsing time) and the Y axis
indicates the threshold value T. The 45° line starting at (m, m) represents the position in
time of T. The graphic shows the observation performed by the hardware for all cases of
T (m ≤ T ≤ M).
Figure 24-39 illustrates the Unsigned compare. A particular case is shown in which, for
a higher value of T, the observation indicates “Before” at the beginning of the period, and
until the timer reaches the value T. Thereafter, the observation switches to “After” and
remains there until the timer exits the period.
Figure 24-39 Graphical Representation of Unsigned Compare
Figure 24-40 illustrates the Signed compare where the period equals a multiple of 2 (that
means M - m + 1 = 2 × 2
k
). In this case, for a higher value of T, the observation indicates
“After” at the beginning of the period (not yet inside the observation window). When
entering the observation window, “Before” is indicated until the timer reaches the
After
Before
MCT05948
After
Before
Timer
Mmm
Threshold
M
Value of T
T (point in time)