What is the address from where the PIC begins execution ?
Posted: Thu Dec 22, 2005 12:08 am
Hi,
I read that the PIC mcu begins execution from 0 address of the Program Memory, is this correct ??
Is it possible to change this starting address to something using C commands ?? Also how would interrupt service routines be addressed, do ISR's have seperate pre-defined addresses of their own ??
thanks
arunb
kypec
Joined: 20 Sep 2003 Posts: 54
Posted: Thu Dec 22, 2005 12:29 am
Yes, that is correct -> PIC always begins its program execution from address 0x0000 and ISR vectors are generally fixed at 0x0004 (PIC16) or 0x0008 (PIC18).
However, you can relocate your main() and ISR routines with use of the compiler directive
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum