Need 4 modes with just 3 switches - need all modes to be selectable QUICKLY!


Closed Thread
Results 1 to 40 of 68

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    See if this works.
    Attached Files Attached Files
    Last edited by Bruce; - 7th August 2010 at 15:22.
    Regards,

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

  2. #2
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    See if this works.
    Bruce,

    Many thanks for the example - you're a diamond.

    Alas, it's not compiling on my PC - I'm certain that I've a parameter wrong somewhere or other on my machine, becuase after finishing posting last night such was my keeness, I spent another hour trying to get a very minimalist IOC test program to compile - & I was getting the same type of compilation errors.

    The errors I'm seeing (both last night & now with your program) are as follows....

    Error[128] [filepath]test_ioc.asm: Missing Arguments
    Error[113] [filepath]test_ioc.asm: Symbol not previously defined (IntFlagReg)
    Error[113] [filepath]test_ioc.asm: Symbol not previously defined (IntFlagBit)
    Error[101] [filepath]test_ioc.asm: ERROR (Interupt Source (IntFlagReg, IntFlagBit) not found



    If I remove the RABC_INT entry in in the interupt header & replace with INT_INT - it always compiles fine.

    Any tips greatfully received, as I'm not getting off the ground with this IOC melarkey (& I'm chomping at the bit to breadboard the MKII 'no diodes' puppy!)

    Many thanks once again.

    Hank.

    (PS I'm using V1.0 - the latest DTS-14.BAS)
    Last edited by HankMcSpank; - 7th August 2010 at 14:04.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HankMcSpank View Post
    Bruce,

    Alas, it's not compiling on my PC
    (PS I'm using V1.0 - the latest DTS-14.BAS)
    Hi hank ...

    Did you select the right processor ???

    Compiles fine, here ( 386 Words ).

    PBP 2.60 " not patched yet" ...

    Alain
    Last edited by Acetronics2; - 7th August 2010 at 15:30.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi hank ...

    Did you select the right processor ???

    Compiles fine, here ( 336 Words ).

    PBP 2.60 " not patched yet" ...

    Alain

    Hi Alain,

    I'm selecting my intended PIC (a 16F690)

    Likewise PBP V2.6 (unpatched) but just patched it about 20 mins ago - still didn't compile (same errors)

    I'm thinking it's likely something to do with my DTS_INTS-14.bas (I used the one at the bottom of this page... http://darreltaylor.com/DT_INTS-14/intro2.html )

    ( A quick search for some of the errors I'm seeing brings up stuff relating to DT's interupt routines - so likely something I've not got right wrt that aspect )
    Last edited by HankMcSpank; - 7th August 2010 at 15:05.

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


    Did you find this post helpful? Yes | No

    Default

    Drop a copy of DT_INTS-14.bas and ReEnterPBP.bas in the same directory as the file you're compiling, or save the file to the same directory they're already in.
    Regards,

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

  6. #6
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Drop a copy of DT_INTS-14.bas and ReEnterPBP.bas in the same directory as the file you're compiling, or save the file to the same directory they're already in.
    Thanks Bruce.....that seems to have got rid of the majority of my errors.

    After dropping it into the right directory 9there was one in there...but it must have been ab older version?), I did get some relating to wsave, a judiscous amount of trial & error with commenting the DTS_INTS-14.bas....

    Code:
    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 out wsave1-3
    
    ' --- IF any of these three lines cause an error ?? ---------------------------- 
    '       Comment them out to fix the problem ----
    ' -- It depends on which Chip you are using, as to which variables are needed --
    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
    ' ------------------------------------------------------------------------------
    Now the only error I have left is this one....

    Error [118] [filepath]test_ioc.asm Overwriting previous address content (2007)

    ....which I'm without a clue how to sort! (help!)

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


    Did you find this post helpful? Yes | No

    Default

    The last error is because you have config settings in your code, and in your 16F690.INC file.
    Last edited by Bruce; - 7th August 2010 at 18:09.
    Regards,

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

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