Posted: Wed Aug 05, 2015 2:21 pm
Hi 3FG,
Bitwise complement (aka one's complement) was the first thing I thought of, because I can definitely see the use of it in IR - it only takes one inverter or say open-drain IR LED driver - and all zeros become ones and vice versa.
Unfortunately, your assumption:
However, Rob's last post indirectly suggests that he possibly meant "bitwise inversion". But I don't want to speak for Rob. Rob, can you please clarify as to whether you meant bitwise (255-X) or two's (256-X) complement? Thanks.
Bitwise complement (aka one's complement) was the first thing I thought of, because I can definitely see the use of it in IR - it only takes one inverter or say open-drain IR LED driver - and all zeros become ones and vice versa.
Unfortunately, your assumption:
doesn't seem to be right, because Rob mentioned two times above:regarding the complement that Rob refers to, mathematicians typically call this operation as the "one's complement".
(for one's complement, it would've been 253)what is the new OBC for the #2 button?
If it's 254 - you are viewing the hex as LSB-COMP
(for one's complement, it would've been 255)To get the comp'd version subtract the OBC from 256.
However, Rob's last post indirectly suggests that he possibly meant "bitwise inversion". But I don't want to speak for Rob. Rob, can you please clarify as to whether you meant bitwise (255-X) or two's (256-X) complement? Thanks.