Internal Pull Up LPCXpresso 11C24

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Internal Pull Up LPCXpresso 11C24

149 Views
lpcware
NXP Employee
NXP Employee
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.
0 Kudos
1 Reply

130 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Mon Jun 09 00:24:23 MST 2014

Quote:

What's wrong?



Probably you didn't set bit 16 (IOCON) in SYSAHBCLKCTRL.
0 Kudos