I use some pins in P3 as input pin and other pins in P3 as output pin. Use C program to read or write the pin directly, e.g. P35 = 0; if(P32 == 0) etc. But if I read a pin, all pins in P3 will become to 1. I debug the program in simulation not in physical MCU.