Content originally posted in LPCWare by tha on Thu Jun 06 17:30:21 MST 2013You can try this:
LPC_GPIO0->DIR = 0x0;<span class="Apple-tab-span" style="white-space: pre;"> </span>//set PORT0 as input
LPC_IOCON->P0_7 = 0xA0;
LPC_IOCON->P0_8 = 0xA0;
LPC_IOCON->P0_9 = 0xA0;
Just force the whole port to input and set the pins to the default state (and making sure bit 7 is set). This worked for me. The PIN register was changing value when I force the pins HIGH and LOW.