& AND 0100 1110 & 1110 0111 --------- 0100 0110 | OR 0100 1110 | 1110 0111 --------- 1110 1111 ^ XOR 0100 1110 ^ 1110 0111 --------- 1010 1001 ~ NOT 0100 1110 ~ --------- 1011 0001 << Left shift 0100 1110 << 3 0111 0000 >> Right shift 0100 1110 >> 3 0000 1001
Bitwise Operators in C and C++: A Tutorial
Bitwise operations in C
StackOverflow: How do you set, clear and toggle a single bit in C?
mikrocontroller.net: Verändern von Registerinhalten