Ddrd = &B00010000 <-- ist das ganze Byte des Port

PD0,PD1,PS2 und PD4 wäre entsprechend:
00010111