Instruction Manual
__________________________________________________________________________________________________________ 6-18
MAXQ7667 User’s Guide
6.7 Type 2 Timer/Counter Operation Modes
T
he MAXQ7667 Type 2 timer/counter supports six operation modes. Table 6-3 summarizes the modes supported by the Type 2 timer
and the peripheral register bits associated with those modes.
The Type 2 timer operating mode selection is illustrated in Figure 6-3. Figure 6-4 shows the PWM timer output possibilities.
Table 6-3. Type 2 Timer/Counter Functions and Control
MODE T2 MD C /T2 C C F [1:0 ] CON T ROL BITS
T
2OE1:0: Output enables ( PWM out)
T2POL1:0: Output polarity select
T2POL0: D efines gating level ( when set to input)
SS2: Single-shot pulse control
1
6-Bit
Autoreload/Compare
T
imer
0 0 00
G2EN: Gated PWM output on secondary pin, primary p in is used for gating s ignal
T
2OE0 = 0
T2POL0: Gate level/reload edge select
SS2: Single-shot capture
G2EN: Gate timer clock (or gate reload)
C PRL2: Reload enable
16-Bit Capture
(CCF [1:0] bits define
capture edge)
0 0 01, 10, or 11
T2OE1: Not used
T2OE0 = 0
T2OE1: Pulse counter output enable
16-Bit Counter
(CCF [1:0] bits define
count edge)
0 1 01, 10, or 11
T2POL1: Out
p
ut
p
olarit
y
select
T2OE1:0: Output enables ( PWM out)
T2POL1:0: Output polarity select (pr imary for gating)
Dual 8-Bit Autoreload
Timers
1 0 00
T2Hx Only
:
SS2: Single-shot pulse control
T2Lx Only:
T2OE1: Output enable
T2POL1: Output polar ity select
T2Hx Only:
T2OE0 = 0
T2POL0: Gate level/reload edge select
SS2: Single-shot capture
G2EN: Gate timer (or gate reload)
8-Bit Capture and 8-Bit
Timer/PWM
1 0 01, 10, or 11
CPRL2: Reload enable
T2Lx Only:
T2OE1: Output enable
T2POL1: Output polar ity select
8-Bit Counter and 8-Bit
Timer/PWM
1 1 01, 10, or 11
T2Hx Only
:
T2OE[0] = 0