ON INTERRUPT questions


Results 1 to 12 of 12

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Question interrupt jam ...

    Quote Originally Posted by Charles Linquis
    I'm thinking that there should be some easy assembly language routine that - upon interrupt, just dumps me to a particular line and starts execution there. As I said before, I don't need to pick up right where I left off. If I'm sending a string, and a character comes in, I can stop sending data and respond to the new request.
    Hi, PbP kings ... Mel and Co.

    I see something interesting here ...

    Just add :

    ON INTERRUPT GOTO xxxy
    DISABLE INTERRUPT

    at the very top of the pbp program.

    DO not Forget to end your interrupt routine xxxy: with a ( PbP ) GOTO where you want to go back then.


    What's new in the asm Program window ???

    program address 3 and 4 are now free, there's a new "return" at address 5 ... change it for a nop.

    Label L 0001 ( a bit further ) contains the interrupt lines for PbP ... replace them by nops.

    as there are no PbP lines between ON Interrupt and Disable ....There are no Gosub L0001 !!!

    at address 3 put a GOTO 0006 to skip line 4 and 5

    at address 4 ... just set the page bits ( if necessary ) and add an asm "GOTO" to the PBP interrupt label ( in address 4 or 5, Then)

    we've seen 8 lines on 8 ...

    I think it might work now ...

    Alain

    PS: example given for an interrupt vector at line 4 ... of course !!!
    Last edited by Acetronics2; - 14th December 2005 at 16:09.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 10:00
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 03:35
  3. Interrupt questions
    By ruijc in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2008, 23:18
  4. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 19:14
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

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