Content originally posted in LPCWare by samedtopal on Tue Apr 12 04:12:00 MST 2016
Hi andrejvrecer,
It i a late reply but i hope it will help you. I have the same problem, that my ADC need for a conversion 50us. Now we found a result, that the adc makes faster. Around 3us for a conversion. That is about 333kHz and not 2MHz but faster.
The way is this:
After the calibriation you have to initsialisation your ClockRate again with the MAC_SAMPLE_RATE. I dont now why but it helps
/* Need to do a calibration after initialization and trim */
Chip_ADC_StartCalibration(LPC_ADC0);
while (!(Chip_ADC_IsCalibrationDone(LPC_ADC0))) {}
Chip_ADC_SetClockRate(LPC_ADC0, ADC_MAX_SAMPLE_RATE);
I hope, it will help you