How to Set, Clear and Check a Bit, or Bitwise Operations
Regardless of which microcontrollers you're going to program, the first thing you'll have to master is bitwise operations. There are only 6 bitwise operations in C: & ( AND ) | ( OR ) ^ ( XOR ) ~ ( NOT ) << (shift left) >> (shift right). Bitwise OR — the result of the operation is 1 if either of the corresponding bits is 1, otherwise 0...