I've noticed something interesting and was curious why this is happening. In the keyfobdemo app, KeyFobApp_Init in keyfobdemo.c changes some port directions during initialization. If I try to set P0DIR to 0x00, then P0 ends up changing to 0xFF.
And when set P0 = 0x00, the port value doesn't change.
Any idea what is going on here?