AnsweredAssumed Answered

Enable pull-down resistor on lpc1347

Question asked by Mateusz Kiełbasa on Aug 6, 2017
Latest reply on Aug 8, 2017 by Kerry Zhou

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?

Outcomes