PDA

View Full Version : reset and interrupt vectors



dtoohey
- 28th February 2005, 18:00
Hello,
I'm kinda new at this stuff.. I'm hoping to find out how to adjust the reset and interrupt vectors from their default settings. I understand that the reset is normally at 0x000, with interrupt vectors at 0x008 and 0x018. I need to insert an 0x200 offset for them all (reset at 0x200, interrupts at 0x208 and 0x218). This is a requirement for the EZ-controller (www.EZ-devices.com), which uses a PIC18F252...

Is this something that can be done with PBP, or does the compiler require the reset vector to remain at 0x000? I'm hoping that all it would take is a little assembly language added to the top of my code, but before I buy PBP, I want to make sure.

Thanks,
Damian

Darrel Taylor
- 28th February 2005, 18:46
Hi Damian,

This DEFINE will do what your looking for.

Define RESET_ORG 200h


HTH,
   Darrel

dtoohey
- 28th February 2005, 22:02
Easy enough, thanks.