Questions and discussions about the software that runs on the TD RF module itself.
francois
 
Posts: 47
Joined: Tue Jun 16, 2015 6:13 am

ADC0

by francois Sat Sep 12, 2015 9:48 am

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
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: ADC0

by lcheminade Sat Sep 12, 2015 10:59 am

Please look at the TD_MEASURE_SingleVoltage function in libtdcore/td_measure.c
francois
 
Posts: 47
Joined: Tue Jun 16, 2015 6:13 am

Re: ADC0

by francois Sat Sep 12, 2015 1:45 pm

got it
thanks!
Return to Firmware

Who is online

Users browsing this forum: No registered users and 32 guests