Functions Of Operations Of Capture Functions; Capture Function Operation - Fujitsu F2MC-8L F202RA Hardware Manual

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

8.8

Functions of Operations of Capture Functions

This section describes the capture function operation of the 8/16-bit capture timer/
counter.

Capture Function Operation

● 8-bit mode
To operate the capture function in the 8-bit mode, the function must be set as shown in Figure 8.8-1 .
DDR3
TCCR
TCR1
TCR0
TCR2
TCPL
0
The 8-bit capture mode is allowed by the capture mode enable/edge detection selection bits (EDGS1 and
EDGS0) of the capture control register (TCCR). "1" is written to the timer start bit (TSTR0) after the clock
source selection bits (TCS02, TCS01, and TCS00) of the timer 0 control register (TCR0) have been set.
In the capture mode, the count value is captured to the capture data register (TCPL) each time a capture
input edge is detected and the capture edge detection flag (CPIF) is set to "1". In this case, if the capture
interrupt enable bit (CPIEN) is already set to "1", an interrupt request is output to the CPU.
The capture mode is divided into free-run mode and clear mode.
Figure 8.8-1 Setting of Capture Function in 8-bit Mode
bit7
bit6
bit5
CPIF
CFCLR CPIEN CCMSK TCMSK EDGS1 EDGS0 RESV
TIF1
TFCR1 T1IEN
TIF0
TFCR0 T0IEN
Number of detected events
: Used bit
: Unused bit
: Set "0"
CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
bit4
bit3
bit2
0
Setting of a value
other than 00
TCS12
TCS11
Setting of a value other
than 111
CINV
TCS02
TCS01
Setting of a value other
than 111
bit1
bit0
TCS10
TSTR1
TCS00
TSTR0
PEN
TSEL
193

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents