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

    Also - just for the sake of other list members, you might want to just create a 2nd post, and leave whatever you had to change in the original.

    Just so folks can see where you made a mistake (if any), and learn from it. Rather than editing your previous post. I myself learn a lot from things that need to be changed to work properly, and it's a tad confusing for folks to follow-along if you edit a previous code example that needed changing.

    we were both wrong
    I don't think so. The 16F690 has different interrupt enable & flag bits for PORTA/PORTB interrupt-on-change.

    From DT_INTS-14;
    Code:
    #define RBC_INT      INTCON,RBIF,  INTCON,RBIE   ;-- RB Port Change
    These registers aren't available in the 16F690.

    These are;
    Code:
    #define RABC_INT     INTCON,RABIF, INTCON,RABIE  ;-- RAB Port Change     *
    Last edited by Bruce; - 7th August 2010 at 00:41.
    Regards,

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

  2. #2
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    Hey Bruce,

    Despite the very warm welcome from everyone here I feel that posting non-PBP examples isn't cool and probably is not helping anyone so perhaps it's best if I just stay on the sidelines and stop preaching (lol).

    Cheerful regards, Mike

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


    Did you find this post helpful? Yes | No

    Default

    Hi Mike,

    Sorry you feel that way, but i think everything you post has some benefit to some.

    Large portions of Darells' code that everyone uses BIG time here is in assembler, and that doesn't detract from its usefulness.
    Regards,

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

  4. #4
    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

  5. #5
    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.

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


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

  7. #7
    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.

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