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.

external interrupt address

Status
Not open for further replies.

sush

Member level 4
Joined
Aug 24, 2005
Messages
78
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,946
if an timer overflow generates interrupt , the controller goes to location
ORG 0x04
so,when an external interrupt is generated where will the controller jump to ,i mean which address

org......?
and if it is same 0x04 ,then how will microcontroler differentiate between the two interrupts?

m using pic16f628a and pic16f877a

thanks
 

andreid

Newbie level 3
Joined
Nov 6, 2004
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
26
You have to test the interrupt flag in order to know which interrupt occurred.
 

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,464
Hai

Your main portion or ISR should be in 04h

right there you will back up all the critical registeres .

After that you will poll each of the unmasked interrupt flags one by one and branch accordingly. (One major diference from 8051)

So PIC hardware in case of Jump will not differentiate between different interrupts,Your software will have to .

with regards
picstudent
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top