Help Needed with DT Instant Interrupts


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Help Needed with DT Instant Interrupts

    Hi, Keith

    looks your DT Ints files are not correctly installed in the folder where the .bas programs are...

    the errors reported show the compiler/assembler didn't find them ...

    the listing you provided compiles fine with MCSPX IDE ... so, the problem is in your PC.

    Alain
    Attached Files Attached Files
    ************************************************** ***********************
    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default Re: Help Needed with DT Instant Interrupts

    EDIT ...
    DT Ints here in V3.4 ...

    30 mins to edit posts is a pain !!!

    Alain
    Attached Files Attached Files
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default Re: Help Needed with DT Instant Interrupts

    Thanks for the help guys.

    I have sussed out the two issues that I had.

    For the INTS-14 version on the 16F877 that wouldnt compile, the problem was highlighted in DT_INTS-14 itself. I should have read through the comments rather than just blindly following the examples on the web. I missed this very important bit of information......

    Code:
    ;-- Place a copy of these variables in your Main program -------------------
    ;--   The compiler will tell you which lines to un-comment                --
    ;--   Do Not un-comment these lines                                       --
    ;---------------------------------------------------------------------------
    ;wsave   VAR BYTE    $20     SYSTEM      ' location for W if in bank0
    wsave   VAR BYTE    $70     SYSTEM      ' alternate save location for W 
                                             ' if using $70, comment wsave1-3
    
    ' --- IF any of these three lines cause an error ?? ------------------------
    '       Comment them out to fix the problem ----
    ' -- Which variables are needed, depends on the Chip you are using -- 
    ;wsave1  VAR BYTE    $A0     SYSTEM      ' location for W if in bank1
    ;wsave2  VAR BYTE    $120    SYSTEM      ' location for W if in bank2
    ;wsave3  VAR BYTE    $1A0    SYSTEM      ' location for W if in bank3
    ' --------------------------------------------------------------------------
    The problem with the DT_INTS-18 version was also self inflicted. When I first tried to use them I got a compiler error saying that INTHAND wasnt defined.

    I looked at the include file and saw the following.....

    Code:
    DEFINE  INTHAND       INT_ENTRY_H  ' Context saving for High Priority Ints
    DEFINE  INTLHAND      INT_ENTRY_L  ' Context saving for Low Priority Ints
    I saw that one was for low priority and one for high priority and assumed the first one should be INTHHAND so I edited the file. I didnt get the error anymore but it also crashed the whole program !!!

    Anyway, putting that behind me, thanks to you guys for pointing me in the right direction. If I ever stop looking at these pretty toggling LEDs I will be attempting amazing feats with interrupts to make my programs run faster and smoother.
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. DT's Instant Interrupts
    By andywpg in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st June 2014, 18:01
  2. instant Interrupts
    By Timmoore in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th October 2009, 06:07
  3. V 2.60 and DT Instant Interrupts?
    By jderson in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd July 2009, 06:48
  4. DT Instant Interrupts
    By krohtech in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 25th February 2009, 15:33
  5. DT Instant Interrupts help
    By perides in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th November 2008, 18:41

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