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
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......