Programing Question


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    != means "Not Equal" could use <> instead

    ^ means "Bitwise Exclusive OR"

    4.17.14. Bitwise Operators

    Bitwise operators act on each bit of a value in boolean fashion. They can be used to isolate bits or add bits into a value.

    B0 = B0 & %00000001 ' Isolate bit 0 of B0
    B0 = B0 | %00000001 ' Set bit 0 of B0
    B0 = B0 ^ %00000001 ' Reverse state of bit 0 of B0
    Last edited by DynamoBen; - 20th February 2006 at 01:39.

Similar Threads

  1. ADCIN question
    By Greg McFadden in forum General
    Replies: 4
    Last Post: - 16th September 2008, 02:53
  2. FREQOUT - PWM question
    By Etcho in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th February 2007, 23:51
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  5. Timer / CCP Question
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd November 2005, 08:22

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