Page 1 of 1

ADC0

Posted: Sat Sep 12, 2015 9:48 am
by francois
Hi
It is not very clear to me the way to launch and get a single sampling on ADCO channel.
Could you correct the functions sequence ? or provide simple code sequence
What I tried is the following:

ADC_InitSingle(ADC0, &ADC_INITSINGLE_DEFAULT);
ADC_Start(ADC0, adcStartSingle);
samples= ADC_DataSingleGet(ADC0);

Thanks

Re: ADC0

Posted: Sat Sep 12, 2015 10:59 am
by lcheminade
Please look at the TD_MEASURE_SingleVoltage function in libtdcore/td_measure.c

Re: ADC0

Posted: Sat Sep 12, 2015 1:45 pm
by francois
got it
thanks!