
Capture Timers 1/2
PRELIMINARY V1.8
15
9.
Capture Timers 1/2
9.1.
Overview
There are two 16-bit Capture Timer in the MCU, C-Timer1 and C-Timer2. Capture-
Timer1 (or C-Timer1) can be used as an Auto-Reload Timer, an Event Counter, an Up
Down-Counter or a Capture Timer. Capture-Timer2 (or C-Timer2) can be used as an
Auto-Reload Timer, an Event Counter or a Capture Timer. A C-Timer is composed of a
input frequency select MUX, a 16-bit up down-counter(16-bit up-counter for C-
Timer2), a Comparator, a 16-bit data register(CT1DATH-CT1DATL, CT2DATH-
CT2DATL), an Edge Detector for Capture, and a control register(CT1CR, CT2CR).
C-Timer1 can operate in three different modes. They are Auto-Reload Mode, Up Down-
Count Mode and Capture Mode. All of these modes can be selected by the CT1MD[2:0]
bits in the CT1CR. On the other hand, C-Timer2 can only operate in two different
modes. They are Auto-Reload Mode and Capture Mode. All of these modes can be
selected by the CT2MD[1:0] bits in the CT2CR.
In Auto-Reload Mode, the C-Timer can be used as an Auto-Reload Timer and an Auto-
Reload Event Counter. In Up Down-Count Mode, C-Timer1 can be used as an Up
Down-Counter. In Capture mode, the C-Timer can be used as a Capture Timer.
Figure 6.
Capture Timer in Auto-Reload Mode
Fsys/12
Ffast/24
Ffast/25
Ffast/27
Ffast/210
Ffast/214
Ffast/218
IRQ
MUX
CTCNTH:CTCNTL
16-bit up-counter
Comparator
CTDATH:CTDATL
CTint
ena
clear
CTEN
CTCNTL CTFS
CTMD
[7]
[6]
[5:3]
[1:0]
8-bit data bus
or
Match