Go Down

Topic: attachInterrupt() with non external interrupt ? (Read 659 times) previous topic - next topic

wally123

Jan 29, 2010, 12:10 pm Last Edit: Jan 29, 2010, 12:43 pm by wally123 Reason: 1
Can i use "attachInterrupt()" with non external interrupts INT0/ INT1 as e.g. the internal interrupt "ADC" (ADC conversion complete).
How such a code line is designed ?

Or is it eneogh to put an ISR routine in the code ?
e.g.

ISR(SIG_ADC) {
.......
}

Coding Badly

Quote
Can i use "attachInterrupt()" with non external interrupts INT0/ INT1 as e.g. the internal interrupt "ADC" (ADC conversion complete).

No.  attachInterrupt only works with INT0 / INT1.

Quote
Or is it eneogh to put an ISR routine in the code ?
ISR(SIG_ADC) {}

Yes.

wally123


Go Up