This one is silly but I am not able to figure out this bitwise operation.
I connect four sensors to lower nibble of portb pb0:3 on atmega32.
I am able to read each bit, I am able to read pinb to get the entire byte ...
How can I read just the lower nibble ? I mean with least number of lines.
I tried to AND PINB value to 0x0f but that overwrites the higher nibble pb4:7.