reset and interrupt vectors


Closed Thread
Results 1 to 3 of 3
  1. #1
    dtoohey's Avatar
    dtoohey Guest

    Default reset and interrupt vectors

    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

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Damian,

    This DEFINE will do what your looking for.

    Define RESET_ORG 200h


    HTH,
       Darrel

  3. #3
    dtoohey's Avatar
    dtoohey Guest


    Did you find this post helpful? Yes | No

    Default

    Easy enough, thanks.

Similar Threads

  1. 16F876A CCP1 Capture/Interrupt Question
    By TDonBass in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th January 2008, 03:25
  2. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  3. Interrupt stack overflow problem with Resume {label}
    By Yuantu Huang in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd May 2005, 01:17
  4. Software Driven Reset Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th April 2005, 00:53
  5. Multi Interrupt How To ?
    By capitano in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd February 2005, 14:48

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts