[SOLVED] LPC812 - PIO0_1 gpio problem

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Wojtkingson on Sat Dec 13 11:36:52 MST 2014
Hi guys,

I would like to ask you,, if there is some issue with pin PIO0_1 on LPC812. I've tried to use this pin as output, but this pin is all the time in the same voltage level in 1,6V. I have chip version with ISP on pin PIO0_12.

I use LPCopen.

1) Disable fixed pin function

    Chip_SWM_DisableFixedPin(SWM_FIXED_ACMP_I2);   // I've tried to disable only one fixed function without any results

2) Init GPIO


3) Set direction

Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 0, 1);

4) Set state

Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 1, 1);

Any ideas?
Thanks :)