3 capture mode operation – Samsung S3F401F User Manual

Page 229

Advertising
background image

S3F401F_UM_REV1.00

TIMER

11-5

2.3 CAPTURE MODE OPERATION

In capture mode, the timer can perform the capturing operation, which is that the counter value is transferred into the
capture register (Timer Data Register) in synchronization with an external trigger. The external triggering signal for
capturing operation is a pre-defined valid edge on the capture input pin. When this valid signal happens, the counter
value in process should be moved into the capture register (Timer Data Register). By using the capturing function,
you can measure the time difference between external events. If a valid trigger signal on the pin does not happen
before the overflow, an overflow interrupt will be generated and the counter value will be counted from 0x0000,
again.

TDAT.15-.0:

DATA

Timer Data Register

TCON.5-.3:

OMS

Clear

Overflow

TCLK

TnCAP

TCON.6:

CL

INT_TOFn

INT_TMCn

INTMASK

INTPND

TCNT.15-.0:

CNT

16-bit Counter

INTMASK

INTPND

Match

Figure 11-4. Simplified Timer Function Diagram: Capture Mode

Advertising