Microcontroller › AVR › what is bit masking????? › Bit masking is used to ignore
June 25, 2013 at 12:03 pm
#10029
Participant
Bit masking is used to ignore the status of particular bit.
you can check input status by using ‘&’ operater like “PINC&(1<<PC2)” if you want to read status of PC2 similarly for oter pins.
use ‘|’ or operator for writing a single bit like PORTC |= (1<<PC4) to write logic high at PC4.