I'm a newbie and trying to enable the pull-down resistor on LPCXpresso-LPC1347, but it doesn't works in different cases...
This case works:
Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, 0, 3); Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 3, (IOCON_FUNC0 | IOCON_MODE_PULLDOWN));
but on port 0 pin 6 it doesn't...
Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, 0, 6); Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 6, (IOCON_FUNC0 | IOCON_MODE_PULLDOWN));
I've tried turn on IOCON and GPIO clocks but the effect is still the same (LPCOPEN surely turns it on by default). What I am not doing right?