Timer Pulse Generation
12-9
Timers
12.6 Timer Pulse Generation
The two basic pulse generation modes are pulse mode and clock mode, as
shown in Figure 12–5 and Figure 12–6, respectively. You can select the mode
with the C/P bit of the timer control register. Note that in pulse mode, PWID in
the timer control register can set the pulse width to either one or two input clock
periods. The purpose of this feature is to provide minimum pulse widths in the
case in which TSTAT drives the TOUT output. TSTAT drives this pin when
TOUT is used as a timer pin (FUNC = 1), and may be inverted by setting
INVOUT = 1. The value actually driven out to the TOUT pin is reflected by DAT-
OUT. Table 12–4 gives equations for various TSTAT timing parameters in
pulse and clock modes.
Figure 12–5. Timer Operation in Pulse Mode (C
/
P = 0)
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
2
timer clock source period (PWID = 1)
Timer counter = timer period, TINT timer interrupt period
1
timer clock source period (PWID = 0)
Period Register
B
f(timer input clock)
TSTAT, TINT
Figure 12–6. Timer Operation in Clock Mode (C
/
P = 1)
timer counter = timer period
Timer clock source period
2
Period Register
B
f(timer input clock)
STAT, TINT
Period
TINT timer interrupt period