please check the test Application in SPC5 families in SPC5Studio (ADC part)
Best Regards
Erwan
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
if i used the potentiometer on pin PI[1] and PI[2], which part in the code that explain about the pin number/ where i need to modified the code for pin number?
of course you will have to reconfigure the low level driver component to enable ADC_12b_1 and configure channel 5 of ADC_1 instead of channel1 of ADC_SV0 which is the default example