Skip to main content
durgesh777
Associate III
August 8, 2012
Question

Problem:Immediate call to ISR

  • August 8, 2012
  • 0 replies
  • 483 views
Posted on August 08, 2012 at 16:31

I have used external interrupt 0, 8 and 9. Before enabling the interrupt i have written the following codes:

EXTI_ClearITPendingBit(EXTI_Line8);

EXTI_ClearITPendingBit(EXTI_Line9);

The interrupt is only called by toggle switch. For the first time when i run the program, the interrupt service routine is called instantly once.

Apart from that everything works well but i could not debug why the interrupt is called immediately once when the program runs.

The input are PC8 and PC9 and they are configured as 'floating input mode'

I would be happy if someone could help me on this.

#interrupt-immediately-called
    This topic has been closed for replies.