ATmega8_ ICP1_Capture Interrupt

Quote from KerimF on September 22, 2025, 7:01 amHi,
SimulIDE_1.1.0-R250918_Win32, W7
ATmega8, ICP1 capture interrupt
I tried to use an interrupt routine by using the input capture pin ICP1
Please note that almost all elements in the attached schematic are irrelevant to the topic. But I reduced the original code to minimum to find out why the capture interrupt routine is not called at the rising edge at pin ICP1.
I wish to know what I missed.
Thank you.
Hi,
SimulIDE_1.1.0-R250918_Win32, W7
ATmega8, ICP1 capture interrupt
I tried to use an interrupt routine by using the input capture pin ICP1
Please note that almost all elements in the attached schematic are irrelevant to the topic. But I reduced the original code to minimum to find out why the capture interrupt routine is not called at the rising edge at pin ICP1.
I wish to know what I missed.
Thank you.
Uploaded files:

Quote from KerimF on September 22, 2025, 2:47 pmI think I am getting old rather quickly.
After revising attentively both the reduced and original codes, I discovered that the instruction 'SEI', at the start, was erased by mistake while updating the project several times. Sorry for any inconvenience.
I think I am getting old rather quickly.
After revising attentively both the reduced and original codes, I discovered that the instruction 'SEI', at the start, was erased by mistake while updating the project several times. Sorry for any inconvenience.