ISC Bit Setting for Interrupt Service Routine

  • Thread starter Thread starter angelspikes
  • Start date Start date
  • Tags Tags
    Bit
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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