Content originally posted in LPCWare by f_acosta on Mon Apr 07 17:17:09 MST 2014
Hi, I'm trying to deactivate the internal pull-ups from my LPCXpresso but I change the bit in the IOCON register and nothing changes.
This is my method :
LPC_IOCON->PIO2_2 &= ~(1<<4);
the User manual says that you must clear the 3:4 bits to deactivate internall pull ups.
And completely this is how I configure the GPIO
LPC_GPIO2 -> &= ~(1 << 2) //Set as output
LPC_IOCON -> PIO2_2 &= ~(1<<4); //Deactivate pull up
IOCON reset state is as GPIO and Pull up activated
What's wrong?
Thanks for your help.