+
+ ; reset timer
+ ldi tmp1,0
+ out TCNT1H,tmp1
+ out TCNT1L,tmp1
+
+ ; check for running state
+ cpi state,5
+ breq INT0_RUN
+
+ ; reconfigure int0
+ rcall INT0_IR_CONF_FR
+ ldi state,5
+ rcall TIMER1_INT_ENABLE
+
+ rjmp LEAVE_INT0_IR
+
+INT0_RUN:
+
+ ; write timer value into sram