Hi,
My MCU is LPC11U68 and using LPCExpresso board rev c.
In periph_adc.c, there is a line:
/* ADC input 0 is on PIO0_12 mapped to FUNC2 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 9, (IOCON_FUNC1 | IOCON_MODE_INACT | IOCON_ADMODE_EN));
(1) For LPC11U68, ADC input 0 should be PIO1_9, so the comment description is wrong.
(2) If using PIO1_9, the example code seems incorrect (IOCON_FUNC3 instead of IOCON_FUNC1) and it should be:
/* ADC input 0 is on PIO1_9 mapped to FUNC3 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 9, (IOCON_FUNC3 | IOCON_MODE_INACT | IOCON_ADMODE_EN));
Please help to check. Thank you.
Jeremy