You are here: Home
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.
Parallel to serial conversion is performed at encoder side. Data is continuously available at data out pin according to 12 input bits.
When key is pressed that particular bit in serial data got changed.