Chip_SWM_EnableFixedPin(SWM_FIXED_ADC0); Chip_ADC_Init(LPC_ADC,0); //This will enable power and clock Chip_ADC_StartCalibration(LPC_ADC); while(!Chip_ADC_IsCalibrationDone(LPC_ADC)); Chip_ADC_SetClockRate(LPC_ADC,500000); //500kHz Chip_ADC_SetupSequencer(LPC_ADC,ADC_SEQA_IDX, ADC_SEQ_CTRL_CHANSEL(0)| ADC_SEQ_CTRL_MODE_EOS); Chip_ADC_EnableSequencer(LPC_ADC,ADC_SEQA_IDX); Chip_ADC_StartBurstSequencer(LPC_ADC,ADC_SEQA_IDX); |