Forum breadcrumbs - You are here:ForumGeneral: HelpATmega8_ ICP1_Capture Interrupt
You need to log in to create posts and topics.

ATmega8_ ICP1_Capture Interrupt

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:

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.