beautypg.com

7 type 2 timer/counter ope, 7 type 2 timer/counter operation modes -18, Maxq7667 user’s guide – Maxim Integrated MAXQ7667 User Manual

Page 112: 7 type 2 timer/counter operation modes

background image

__________________________________________________________________________________________________________

6-18

MAXQ7667 User’s Guide

6.7 Type 2 Timer/Counter Operation Modes

The 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

T2MD

C/T2

CCF[1:0]

CONTROL BITS

T2OE1:0: Output enables (PWM out)

T2POL1:0: Output polarity select

T2POL0: Defines gating level (when set to input)

SS2: Single-shot pulse control

16-Bit

Autoreload/Compare

Timer

0

0

00

G2EN: Gated PWM output on secondary pin, primary pin is used for gating signal

T2OE0 = 0

T2POL0: Gate level/reload edge select

SS2: Single-shot capture

G2EN: Gate timer clock (or gate reload)

CPRL2: 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: Output polarity select

T2OE1:0: Output enables (PWM out)

T2POL1:0: Output polarity select (primary for gating)

Dual 8-Bit Autoreload

Timers

1

0

00

T2Hx Only:

SS2: Single-shot pulse control

T2Lx Only:

T2OE1: Output enable

T2POL1: Output polarity 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 polarity select

8-Bit Counter and 8-Bit

Timer/PWM

1

1

01, 10, or 11

T2Hx Only:

T2OE[0] = 0