[SOLVED] How to define ISR for INTO and INT1 in Winavr for ATmega32

Status
Not open for further replies.

shahbaz.ele

Advanced Member level 1
Joined
Aug 12, 2008
Messages
454
Helped
72
Reputation
146
Reaction score
73
Trophy points
1,308
Location
Islamabad, Pakistan
Activity points
3,669
dear all
I am out of touch with AVR now a days.
can anyone suggest quickly how to define ISR for INT0 and INT1.
 

Also take a look at Newbie's Guide to AVR Interrupts https://www.fourwalledcubicle.com/AVRArticles.php

Alex

---------- Post added at 12:11 ---------- Previous post was at 12:04 ----------

If you are just asking about the interrupt functions then


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
// External Interrupt 0 service routine
ISR(INT0_vect)  
{
// Place your code here
 
}
 
// External Interrupt 1 service routine
ISR(INT1_vect)  
{
// Place your code here
 
}

 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…