I solved the problem!

I had bad through plating holes on my PCB.Almost all PortD bits had bad connection on the second layer.Hav fix it now and the portD works great.

Thanks anyway!!
/Jimmy