I think my interrupt is not saving context properly?


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

    Default I think my interrupt is not saving context properly?

    Hi everyone. Could anyone tell me how I can make a bullet proof ASM interrupt? I am testing a simple xor'ing of an output connected to an led on portb.1 to make it flash once every second. It seems to be working but the pic never seems to get to my main code? I have been careful with saving context and clearing intcon.2. I am using picbasic pro 2.45 and the 16f84 pic. I have a feeling it has something to do with the wdt resetting the chip. Any guiding hands would be greatly appreciated....

    Kindest regards,

    Roy Fisher

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    can you post your whole code to see what's happening?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    royly's Avatar
    royly Guest


    Did you find this post helpful? Yes | No

    Default interrupt problem

    Steve thank you for your response, I have(thank goodness) solved the problem.....

Similar Threads

  1. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  2. 16F to 18F context saving differences
    By brittons in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2007, 03:40
  3. NEWBIE: Some basic questions using interrupts
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2006, 02:59
  4. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 1

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