Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default Found label after column 1 etc errors

    OK. I am pulling my hair off. Cannot think what might be wrong here.

    I get errors like Found label after column 1 (INT_CREATE) or Illegal opcode (RBC_INT) or Address label duplicated in second pass (INT_RETURN).

    The PIC® is F819, with DT-INTS-14 and MPASM of course. Also commented the confg line in the *.inc file as it can be seen on the attached files.

    Ioannis
    Attached Files Attached Files
    Last edited by Ioannis; - 20th April 2010 at 14:14.

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


    Did you find this post helpful? Yes | No

    Default

    Did you forget these?

    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP.bas"
    Regards,

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

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default

    No Bruce. They are in pbp directory and the project too.

    It is not the first time I use these excellent routines.

    That is why I post here. I am almost driving myself in the la-la land with this!

    Ioannis

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Ioannis,

    Strange. It compiles fine for me. Tried it with the old & new versions of DT_INTS!
    Attached Files Attached Files
    Last edited by Bruce; - 20th April 2010 at 16:16. Reason: Added file
    Regards,

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

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Did you forget these?

    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP.bas"
    Compiles here as well, but I do get the same errors IF I leave the above lines out of the code. Are you sure the include lines are in your water?

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Ioannis

    Compiles fine adding ...

    Code:
    @ __CONFIG  _LVP_OFF & _BODEN_ON & _CP_ALL & _MCLR_OFF & _PWRTE_ON & _WDT_ON & _INTRC_IO
    to the top of your code ...

    and

    Code:
    '*****************************************************************************
    'Includes
    '*****************************************************************************
    
    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP.bas"
    
    '-------------   INTERRUPTS SETUP   ---------------------
    ASM
    INT_LIST  macro;    IntSource,  Label,      Type,  ResetFlag?
        INT_Handler     TMR1_INT,   _timer,     PBP,    yes
        INT_Handler     RBC_INT,    _in_triger, PBP,    yes
        endm
        INT_CREATE            ; Creates the interrupt processor
    ENDASM
    just BEFORE the Interrupts setup ... ( why ??? good question !!!)

    It DIDN'T Compile placed at the top of program ... that's it

    - also think to uncomment Wsave, Wsave1 .... etc. in DT INTs listing ....



    Alain
    Last edited by Acetronics2; - 20th April 2010 at 16:57.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default

    Alain, there is no problem here where the lines of includes are placed. Either on the very top or just before the macros... Are you sure about that?

    Ioannis
    Last edited by Acetronics2; - 20th April 2010 at 19:55.

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Ioannis View Post
    Alain, there is no problem here where the lines of includes are placed. Either on the very top or just before the macros... Are you sure about that?

    Ioannis
    Hi,

    Yess .. I'm pretty sure !!!

    I had an error raising ( Vars_Saved not defined ... but it was correctly defined in the listing ) .

    but now I've also uncommented Wsaves and compiler has compiled fine once ... no more compiler errors appears, whatever line the "includes" are placed ...

    a bit strange, but not the first strange thing I see with MCS ...

    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 " !!!
    *****************************************

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default

    Have tried to compile from command line and it went OK?

    Ioannis

  10. #10
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Your code compiles here without errors. PBP 2.60A
    http://www.scalerobotics.com

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default

    DT-INTS version 1.00 or 1.10?

    Ioannis

  12. #12
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Your code compiles here without errors. PBP 2.60A
    To be clearer, your code in post 609 compiles using the code shown. I had not tried it with the IOC_INT, only with the code listed in post 609. I guess you meant that when you changed it to IOC, you got the errors.....

    Sorry

    Walter
    http://www.scalerobotics.com

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 : 5

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