Check this two cases in Keil C51 and observe P0 peripheral option in debugger for both cases. The result is different in two cases.Why P0=0xFF; instruction doesn't produce same result?
case 1)
main()
{P0=0x00;
P0=0xFF;
while(1);
}
case 2)
main()
{
P0=0xFF;
while(1);
}
case 1 program
case 1 peripheral window while debugging
case 2 peripheral window while debugging
Target Device 89S52 -- 8051 Based microcontroller