Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Thank you Darrel,

    That's nice from you.

    By the way ... I also modified "a bit" your Elapsed Timer to get only HHHH:MM:SS, using The Timer 1 Clock with a 32.768 Khz Xtal.

    That gives more computing time for other tasks ... especially other interrupts.

    Alain
    ************************************************** ***********************
    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
    Jun 2007
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    I downloaded your Instant Interrupts files and I am having trouble compiling them. I am using MPASM assembler with PBP. I take your 3 files and try to compiler them straight from what I downloaded.

    On the DT_INTS-14.bas I get the following:

    Error [113] c:\pbp\pbppic14.lib 1141: Symbol not previously defined (INT_ENTRY)

    On the ReEnterPBP.bas I get the following:

    Warning [207] c:\pbp\reenterpbp.asm 217: Found label after column 1 (INT_RETURN)

    Warning [207] c:\pbp\reenterpbp.asm 313: Found label after column 1 (INT_RETURN)

    Error [116] c:\pbp\reenterpbp.asm 313 : Address label duplicated or different in second pass (INT_RETURN)

    The Elapsed_INT.bas compiles without any errors but gives me the following warning:

    Warning [207] c:\pbp\elapsed_INT.asm 237: Found Label after column 1 INT_RETURN


    Do you have any ideas what might be wrong?

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


    Did you find this post helpful? Yes | No

    Default

    What do you have in the main program?

    Error [113] c:\pbp\pbppic14.lib 1141: Symbol not previously defined (INT_ENTRY)
    Usually means there isn't an INT_LIST macro.

    The files won't compile without it.
    DT

  4. #4
    Join Date
    Jun 2007
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    As of yet I have not put your code into my main program. I was just trying to compile each on their own. If I understand you correctly, your code needs to be put of another program or it will not compile. Is that correct?

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


    Did you find this post helpful? Yes | No

    Default

    That's correct!
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Alain,

    Well, you may have noticed I didn't get the "GLOBAL" for INT_ENABLE/DISABLE put in the last version of DT_INTS-18.
    It turns out that GLOBAL is a reserved word for MPASM. It's used with relocatable code.

    I could have used GLBL or GLBAL I suppose, but somehow

    @ INT_DISABLE GLBL

    Seems even more cryptic than

    GIE = 0

    I still think it should be in there, as should PERIPHERAL, HIPRIORITY and LOWPRIORITY.

    But I'm not sure what the best way is, AKA less confusing.

    Any thoughts?
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Alain,

    Well, you may have noticed I didn't get the "GLOBAL" for INT_ENABLE/DISABLE put in the last version of DT_INTS-18.
    It turns out that GLOBAL is a reserved word for MPASM. It's used with relocatable code.

    I could have used GLBL or GLBAL I suppose, but somehow

    @ INT_DISABLE GLBL

    Seems even more cryptic than

    GIE = 0

    I still think it should be in there, as should PERIPHERAL, HIPRIORITY and LOWPRIORITY.

    But I'm not sure what the best way is, AKA less confusing.

    Any thoughts?
    <br>

    Hi, Darrel

    What about

    @ G_INT_DISABLE and @ G_INT_ENABLE ??? ... would be simple enough. ... and it's just "ordinary" macros !!!

    Remember the goal was only to use something simple to remind ( in other words: to use for datasheet non-lovers !!! )

    To me, GIE = 0 is also the simpler ... But, as you've seen, nowadays nobody dares to read the datasheets !!!




    The Tractor computer soft is just finished (!)... I had some precedence headaches ( particularly with // !!! ), and it was really difficult to see what was wrong ...

    despite result was good for setting a flag, operation was wrong !!! ... and was no way to cancel that flag ...

    Now, I must translate my comments to English ...

    Regards
    Alain
    ************************************************** ***********************
    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. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 8

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