> Thanks Jim that did help. That is how I remember logic gates but the book
> leads you to believe that the output on an XOR is inverted, here is an
> extract:
>
> "
> Change specific bit to it's complement
>
> 0 to 1 and 1 to 0
>
> XOR with an 8-bit binary number which is all zeros except the bit to be
> changed to its complement (Exclusive OR).
>
> XOR With "1" changes bit to complement
> XOR With "0" results in no change
>
> "
>
> Now is it me or is this wording very unclear? The initial description
> sounds although he is describing a NOT gate as I understood that XOR was
> Exclusive OR which has the logic properties that you described!
>
> ----- Original Message -----
> From: "Jim Paul" <
jamesp
spam_OUTINTERTEX.NET>
> To: <
@spam@PICLISTKILLspam
MITVMA.MIT.EDU>
> Sent: Monday, February 26, 2001 1:55 AM
> Subject: Re: [PIC]:Easy Pic 'n
>
>
> > Justin,
> >
> > No problem. Here we go.
> >
> > As you may or may not know, digital logic is based on boolean algebra.
> > In Boolean algebra, outputs depend on inputs being true. So, if we call
> > "TRUE" a "1", and "FALSE" a "0", we can use binary digits (Bits) in our
> > logic expressions.
> >
> > The expressions are as follows:
> >
> > 1. AND If any input is FALSE, the output is FALSE
> > If all inputs are TRUE, the output is TRUE
> >
> > 2. OR If any or all input(s) is (are) TRUE, the output is TRUE
> > If all inputs are FALSE, the output is FALSE.
> >
> > 3. XOR If BOTH inputs are the same, the output is FALSE.
> > If BOTH inputs are different, the output is TRUE.
> >
> > 4. NOT If input is TRUE, output is FALSE.
> > If input is FALSE, output is TRUE.
> >
> > With these postulations in mind, we can expand to the following:......
> >
> > If we have a "1" AND "1" the output is "1" .... A "1" AND "0" the
> output
> > is "0".
> >
> > If we have a "1" OR "1" the output is "1" .... A "1" OR "0" the output is
> > "1", and
> > a "0" OR "0" the output is is "0".
> >
> > If we have a "1" XOR "1", the output is "0", A "1" XOR "0", the output is
> > "1", and
> > a "0" XOR "0", the output is "0"
> >
> > If we have a "1" NOT, the output is "0", and a "0" NOT, the output is "1"
> >
> >
> > For instance we have binary 00010101 and we AND this with 11111000, ...
> >
> > 00010101 (0x15)
> > 11111000 (0xF8)
> > ----------------
> > 00010000 (0x10)
> >
> >
> > If we OR 11111000 with this we get ...
> >
> > 00010101 (0x15)
> > 11111000 (0xF8)
> > ---------------
> > 11111101 (0xFD)
> >
> >
> > If we XOR these....
> >
> > 00010101 (0x15)
> > 11111000 (0xF8)
> > ---------------
> > 11101101 ((0xED)
> >
> >
> > And if we NOT the first number (00010101)
> >
> > we get 11101010 (0xEA)
> >
> >
> > Hope this helps you out. If not, don't hesitate to let me know
> > and I'll try to explain further.
> >
> >
> > Regards,
> >
> > Jim
> >
> >
> >
> >
> >
> >
> >