beautypg.com

1 capture control register (tccr), Capture control register (tccr), Figure 8.4-2 capture control register (tccr) – FUJITSU F2MC-8L F202RA User Manual

Page 187

background image

171

CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER

8.4.1

Capture Control Register (TCCR)

The capture control register (TCCR) is used to select functions and detection edges,
control interrupts, and check interrupt states in timer 0 for the 8-bit mode of the 8/16 bit
capture timer/counter or in capture mode (16-bit mode).

Capture Control Register (TCCR)

Figure 8.4-2 Capture Control Register (TCCR)

RESV

0

EDGS1 EDGS0

0

0

0

1

1

0

1

1

TCMSK

0

1

CCMSK

0

1

CPIEN

0

1

CFCLR

0

1

CPIF

0

1

bit7

bit6

bit5

bit4

bit3

bit2

bit1

bit0

CPIF

CFCLR CPIEN CCMSK TCMSK EDGS1 EDGS0 RESV

R

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W : Readable/Writable

R

: Read only
: Initial value

1

Address

Initial value

Capture input selection bit

Operation is not affected at all.

Capture mode enable/edge detection selection bit

Capture input prohibition Operation in timer/counter mode

Falling edge selection

Rising edge selection

Selection of both falling

and rising edges

Operation in capture mode

Compare match counter clear mask bit

The counter is cleared per compare match.

The counter is not cleared at compare match.

Counter clear mask bit (at capture operation)

The counter is cleared when a capture edge is detected.

The counter is not cleared when a capture edge is detected.

Capture interrupt request enable bit

Capture interrupt request output is prohibited.

Capture interrupt request output is allowed.

Capture edge detection flag clear bit

Not affected (at read, always "0")

The capture edge detection flag is cleared.

Capture edge detection flag bit

No capture edge was detected.

A capture edge was detected.

0019

H

00000000

B

This manual is related to the following products: