
___________________________________________________________________________________ Maxim Integrated Products 6-1
MAXQ7667 User’s Guide
SECTION 6: TYPE 2 TIMER/COUNTER MODULE
This section contains the following information:
6.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3
6.1.1 Modes of Operation for Type 2 Timer/Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3
6.1.2 Type 2 Timer/Counter I/O Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-6
6.2 Type 2 Timer/Counter Peripheral Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-7
6.3 Type 2 Status/Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-8
6.3.1 Type 2 Timer/Counter Configuration Register (T2CFGx) . . . . . . . . . . . . . . . . . . . . . . .6-8
6.3.2 Type 2 Timer/Counter Control Register A (T2CNAx) . . . . . . . . . . . . . . . . . . . . . . . . . .6-9
6.3.3 Type 2 Timer/Counter Control Register B (T2CNBx) . . . . . . . . . . . . . . . . . . . . . . . . . .6-11
6.4 Type 2 Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-12
6.4.1 Type 2 Timer/Counter Value Register (T2Vx) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-12
6.4.2 Type 2 Timer/Counter Value High Register (T2Hx) . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-13
6.5 Type 2 Reload Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-14
6.5.1 Type 2 Timer/Counter Reload Register (T2Rx) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-14
6.5.2 Type 2 Timer/Counter Reload High Register (T2RHx) . . . . . . . . . . . . . . . . . . . . . . . . .6-15
6.6 Type 2 Capture/Compare Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-16
6.6.1 Type 2 Timer/Counter Capture/Compare Register (T2Cx) . . . . . . . . . . . . . . . . . . . . . .6-16
6.6.2 Type 2 Timer/Counter Capture/Compare High Register (T2CHx) . . . . . . . . . . . . . . . .6-17
6.7 Type 2 Timer/Counter Operation Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-18
6.7.1 16-Bit Timer: Autoreload/Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-20
6.7.2 16-Bit Timer: Capture Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-21
6.7.3 16-Bit Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-21
6.7.4 Dual 8-Bit Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-22
6.7.5 8-Bit Timer/8-Bit Capture Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-22
6.7.6 8-Bit Timer/8-Bit Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-22
6.7.7 Type 2 Timer Input Clock Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-23
6.7.8 Type 2 Timer Compare Application Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-23
6.7.8.1 A Simple Waveform Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-23
6.7.8.2 Waveform Output with Gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-25
Comentários a estes Manuais