Conditions not being met - what's going on


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Conditions not being met - what's going on

    Is there a way to limit the word size to 12 bits rather than 16. This would then give me 4095 as the maximum rather than 65535

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Conditions not being met - what's going on

    bitwise AND %0000111111111111

  3. #3
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Conditions not being met - what's going on

    Quote Originally Posted by towlerg View Post
    bitwise AND %0000111111111111
    Sorry, could you please elaborate and apply that to the variable ?

  4. #4
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Conditions not being met - what's going on

    I'm shooting in the dark here but...
    Is =< or => the same as <= and >= causing the the non limitations?
    Louie

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Conditions not being met - what's going on

    Is there a way to limit the word size to 12 bits rather than 16. This would then give me 4095 as the maximum rather than 65535
    YourWordVariable = %0000111111111111 & YourWordVariable will limit the word size to 12 significant bits. (4 zeros and 12 ones is 4095)
    Last edited by towlerg; - 20th June 2014 at 18:09. Reason: old and stupid

Similar Threads

  1. Matching time conditions
    By malc-c in forum mel PIC BASIC Pro
    Replies: 48
    Last Post: - 13th April 2010, 20:22
  2. 16LF88 conditions
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th March 2009, 07:56

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