Page 1 of 1

test XOR

Posted: Tue Jan 05, 2021 1:46 pm
by 0101
Hello everybody
I try to get a correct result from the truth table of the XOR logic function, but I fail. Please help.
Thank you in advance !

Re: test XOR

Posted: Tue Jan 05, 2021 4:50 pm
by Benj
Hello,

What are you trying to do. It looks like your loop is trying to maybe do a single bit at a time but each time around the loop the data3 will be loaded with the exact same value.

The loop and the shift can maybe be gotten rid of and just use this one calculation line to do the XOR.

data3 = data1 XOR data2

Re: test XOR

Posted: Tue Jan 05, 2021 7:11 pm
by 0101
Hi Ben,
Thanks a lot Ben for the answer, I will review the flowchart.