Pages: [1]   Go Down
Author Topic: attachInterrupt() with non external interrupt ?  (Read 608 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 148
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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) {
.......
}
« Last Edit: January 29, 2010, 06:43:09 am by wally123 » Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 200
Posts: 12779
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 148
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank You, Coding Badly
It works already smiley
Logged

Pages: [1]   Go Up
Jump to: