ldi temp, 0x00
out DDRB, temp ;Byte D ist ausgang
damit wird Portb nicht als Ausgang, sondern als Eingang definiert.