- #1
angelspikes
- 10
- 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)
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)