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.

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
 

You have to test the interrupt flag in order to know which interrupt occurred.
 

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

Back
Top