Instant Interrupts - Revisited


Results 1 to 40 of 773

Threaded View

  1. #11
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    The major issue you have with the Diolan loader is that it has Enhanced CPU mode
    enabled. I.E. XINST = ON.

    So code compiled with PBP simply is not compatible, and will not run on the PIC as
    expected unless you disable Enhanced CPU mode.

    Here's a simple example you can try. Make sure you set XINST = OFF, then run this;

    Code:
    MyVar VAR WORD
    LED VAR PORTD.0 
    
    Loops:
     FOR MyVar = 0 TO 100
       High LED        
       GOSUB BLINK  
    
       Low LED       
       GOSUB BLINK  
     NEXT MyVar
     
       Goto Loops 
    
    BLINK:
        PAUSE 200
        RETURN
        
        End
    Now run the exact same code, but set XINST = ON and give it a whirl.

    Once you flip that switch to enable Enhanced CPU mode, ALL your code needs to be using
    the extended instruction set. Try it with ACCESS EQU 1 as well. Still no go.
    Last edited by Bruce; - 26th March 2010 at 19:32.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 22:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 21:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 21:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 07:32
  5. Replies: 1
    Last Post: - 1st November 2006, 04:11

Members who have read this thread : 4

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

Tags for this Thread

Posting Permissions

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