Quote:
|
Originally Posted by dhoizner
Please pardon my ignorance, but what does the 0x01 do when the bitwise AND is used on it and Tx_Buffer?
Thank you so much for your reply,
|
The bitwise operators work at the bit level. It will do a bitwise AND on each and every bit. So, if the low-bit of Tx_Buffer is 1, the output will be 1. Otherwise it will be 0.
Assuming Tx_Buffer = 0x41, the comparison would look like:
Code:
0000 0001
& 0100 0001
-----------------
0000 0001
Matt