Hi,
First of all,l I suppose that you use LPC551x/LPC55S1x processor, regarding your question that you can not function the PIO1_27 as FC2_SCL, I suppose that you do not configure the pin PIO1_27 correctly.
Pls try to use the code in pin_mux.c in SDK example like:
/* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */
CLOCK_EnableClock(kCLOCK_Iocon);
//PIO1_27 FC2_RTS_SCL_SSEL1
#define IOCON_PIO_FUNC1 1
#define IOCON_PIO_OPENDRAIN_EI 0x200
const uint32_t PIO1_27 = (/* Pin is configured as PIO1_27 */
IOCON_PIO_FUNC1 |
/* Selects pull-up function */
IOCON_PIO_MODE_PULLUP |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_EI);
IOCON_PinMuxSet(IOCON, 1, 27, PIO1_27 );
Pls have a try.
If you still have problem, pls check the IOCON->PIO[1][27] register in debugger.
I suppose that you have to connect a 10K ohm pull-up register for the PIO1_27 pin.
Hope it can help you
BR
XiangJun Rong