AVR Microcontroller Training Bit Manipulation: Mensun Lakhemaru
AVR Microcontroller Training Bit Manipulation: Mensun Lakhemaru
Bit Manipulation
Mensun Lakhemaru
Bit Manipulation
Mensun Lakhemaru
8/7/2012
Bit Manipulation
Mensun Lakhemaru
8/7/2012
Bit Manipulation
if(byteX & 0x80) condn will be zero if the bit is clear, and
the
condn will be non-zero if the bit is set.
{
}
Mensun Lakhemaru
8/7/2012
Bit Mannipulation
_BV(bitPosition)
Mensun Lakhemaru
8/7/2012
MACRO definitions
Mensun Lakhemaru
8/7/2012