i am working with a PIC16f877a type uC... i want to use the interrupt feature for my project...
it is mentioned in the datasheet that when an interrupt is responded to, the PC is loaded with the address 0004h....
but this location also contains the FSR register... what exactly happens here?
and if in my code, i use the following,
org 0x04 ; control comes here on encountering an interrupt
intsrvc: ; my interrupt service routine
// some actions
can this be the correct way to service the interrupt?
it is mentioned in the datasheet that when an interrupt is responded to, the PC is loaded with the address 0004h....
but this location also contains the FSR register... what exactly happens here?
and if in my code, i use the following,
org 0x04 ; control comes here on encountering an interrupt
intsrvc: ; my interrupt service routine
// some actions
can this be the correct way to service the interrupt?