Atmega8515(l) – Rainbow Electronics ATmega8515L User Manual

Page 122

Advertising
background image

122

ATmega8515(L)

2512A–AVR–04/02

• Bit 3 – ICF1: Timer/Counter1, Input Capture Flag

This flag is set when a capture event occurs on the ICP1 pin. When the Input Capture
Register (ICR1) is set by the WGM13:0 to be used as the TOP value, the ICF1 flag is set
when the counter reaches the TOP value.

ICF1 is automatically cleared when the Input Capture Interrupt Vector is executed. Alter-
natively, ICF1 can be cleared by writing a logic one to its bit location.

Advertising