TechToys said:
1 byte = 8 bit of the format 0bxxxxxxxx, for example, it could be 0b10010010 (say).
If a comparison of only an open / close circuit required, it may be possible to shift in inputs for all switches, and use individual bit for each switch detect.
John
Hi,
I already comeout the formula for the 8bit for comparison
Yeah! I can control 1st 8 switchs.
inBln = Hi
-**************************************-
1000 1000 = temp
AND 0000 1000 = in (addr)
-------------------------
0000 1000 = bit unchange
1000 0000 = temp
AND 0000 1000 = in (addr)
-------------------------
0000 0000 = bit change
- bit change update buffer
1000 0000 = temp
OR 0000 1000 = in (addr)
-------------------------
1000 1000 = Buff
inBln = Lo
-**************************************-
1000 0000 = temp
NOR 1111 0111 = in (~addr)
-------------------------
0000 1000 = bit unchange
1000 1000 = temp
NOR 1111 0111 = in (~addr)
--------------------------
0000 0000 = bit change
- bit change update buffer
1000 0000 = temp
OR 0000 1000 = in (addr)
-------------------------
1000 1000 = Buff
Thank You