Logical difference between 2 8-bit ports XOR?


Closed Thread
Results 1 to 3 of 3

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    Z= (X XOR Y)
    The ports are different, but this returns all 1's.
    XOR is a "Logical operator", same as (^^).

    To find the "bitwise" difference, you'll need the "bitwise" operator (^).
    Just like in your previous statements ...

    X=X^%11111111

    Y=Y^%11111111
    DT

  2. #2
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    talk about having the answer and not knowing it. Thanks.

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