Hi,
I just have reviewed your code, you use software trigger to trigger ADC to sample, but I do not find the timer which can trigger ADC periodically.
You have to use a Timer for example CTimer to generate interrupt, in the CTimer ISR, clear CTimer flag and add the line:
Chip_HSADC_SWTrigger(LPC_ADCHS);
which will trigger ADC to sample with the CTimer period.
Hope it can help you
BR
XiangJun Rong