Go Down

Topic: attachInterrupt() with non external interrupt ? (Read 703 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy