limiting to "no less than" zero


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    DANG EDIT TIMER...

    Therefore
    If you subtract two BYTE variables and the result is NEGATIVE, the Carry Bit will be Cleared (0)
    If you add two Byte variables and the result is >255 then the Carry Bit will be SET (1)

    HEY!! I think that's what Darrel said earlier.
    Last edited by Heckler; - 18th September 2011 at 04:51.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

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


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    Sweet!
    And you made your own test program ... Perfect!

    I'm sure it all seems much clearer now.


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


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    Oops, sorry. I should have said borrow...

    Darrel was too polite! Thanks.

    @ Steve: I meant which audio chip are you controlling with the PIC©

    Ioannis
    Last edited by Ioannis; - 18th September 2011 at 12:23.

  4. #4
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    Quote Originally Posted by Ioannis View Post
    @ Steve: I meant which audio chip are you controlling with the PIC©
    Audio chip? LM380

    Ah, you asked because I used "volume" as a variable in my question...

    Actually it's not an audio project. It's for FrankenGriddle.

    [img]http://www.weirdstuffwemake.com/blac...iddle_1450.jpg[/img]

    If anyone is really curious I guess I could start a thread about "The FrankenGriddle Project" in the OT forum.

    Hmmmm... is there a forum specifically for showcasing "Projects" that use PICs?



    Steve
    Attached Images Attached Images  

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: limiting to "no less than" zero

    The Wiki could be a nice place. You can even start your personnal group in your own profile... not sure how it works though.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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