hey i hav tried connecting the port 2 to a 4bit encoder ht12e i hav masked d data n used only 4bits n sending it to ht12e when check d result i get +5v on pins of port 2 bt when i connect it to encoder it give 0.60v d encoder gives expected result individually so does 8051.... bt on connecting thm it gives 0.60v..... i hav tried resistive as well as transistorized pullup.....
Can you try that again using English words?
To what are you connecting the pins? DOUT has some pretty low sink/source capabilities.
d encoder s a ut