Assertion: interrupt's isr | /r/HasProperty | timer1_capt_vect
Facets:
Source sentences:
text: ISR(TIMER1_CAPT_vect){ //do something here } 1 2 3 ISR ( TIMER1_CAPT_vect ) {
text: 17 18 void setup ( ) { pinMode ( ledPin , OUTPUT ) ; pinMode ( 8 , INPUT ) ; Serial . begin ( 9600 ) ; TIMSK1 = ( TIMSK1 & B11011111) | 0x20; //enable timer capture interrupt TCCR1B = ( TCCR1B & B10111000) | 0x41; //falling edge, no prescale } void loop ( ) { digitalWrite ( ledPin , state ) ; } ISR ( TIMER1_CAPT_vect ) { int t = ICR1 ; //must be read first, according to datasheet Serial .