ISC Bit Setting for Interrupt Service Routine

  • Thread starter Thread starter angelspikes
  • Start date Start date
  • Tags Tags
    Bit
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
angelspikes
Messages
10
Reaction score
0
I'm setting up an interrupt service routine, but I'm unsure which ISC bit setting I should use.

ISC bit settings:

ISCx1 ISCx Description
0 0 Low level of INTx generates an interrupt request
0 1 Any logic change on INTx generates an interrupt request
1 0 The falling edge of INTx generates an interrupt request
1 1 The rising edge of INTx generates an interrupt request

I want the interrupt to take place, when an input signal on a pin in the external interrupt control register goes high.

Would the following ISC bit setting be correct:

EICRA = (1<<ISC11)
 
Engineering news on Phys.org
It might help if you identified the processor you are using.