Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top