Mit
DDRB = 0xFF;
setzt man das Port auf OUTPUT
DDRB = 0x00;
wäre input