Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 24th February 2006, 06:23 PM   #1
Default external interrupt address

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
neelam29 is offline  
Old 24th February 2006, 06:56 PM   #2
Default

the pic will go to ORG 0x04 in any interrupt. Then you just check different interrupt flags to find out which interrupt occurred.
__________________
Here...let me improve it for you!

*Puff of smoke* ....oops...
raitl is offline  
Old 24th February 2006, 07:00 PM   #3
Default

thanks for replying could u please tell me one more thing ...how to complement a bit in pic.cause comf instruction is used to comple ment the whole register......which instruction is used to complement only a bit ...
neelam29 is offline  
Old 24th February 2006, 07:12 PM   #4
Default

check this link: http://fribotte.free.fr/bdtech/picnu...heAide_en.html
__________________
Here...let me improve it for you!

*Puff of smoke* ....oops...
raitl is offline  
Old 25th February 2006, 03:00 AM   #5
Default

Quote:
Originally Posted by neelam29
thanks for replying could u please tell me one more thing ...how to complement a bit in pic.cause comf instruction is used to comple ment the whole register......which instruction is used to complement only a bit ...
You can use the XOR instruction to complement a bit.
To complement bit 5 you would do,
Code:
         movlw   b'00100000'
         xorwf   Location,F
Mike.
Pommie is online now  
Reply

Tags
address, external, interrupt

Thread Tools
Display Modes




All times are GMT. The time now is 11:52 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker