This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F ADC convert function problem

Hi all.

I want to do the ADC to detect my external power level, and I already copied the example in driver document to my program, and also can successfully to init and open the ADC handle, but when I call ADC_convert() function, all the program stuck. Why cause this issue? it package in the library so I can't see the source of this function.

Thanks a lot.

  • Hi,

    You can add the ADC source code to your project which will allow you to debug the code. The code is located under source/ti/drivers/*

    Best wishes
  • Hi, JXS.

    Thanks for the reply, I loaded the source into my project and run the debug, I found there had one problem that I'm confuse.
    In "adcsinglechannel" example project initiate steps, it only call param_init and open functions. And in ADC_open() function, the two determine variables isInitialized & index < ADC_count must be true, but isInitialized always be false and there is no way to change to true, only in ADC_init() function can changed it, and my question is, in example why didn't it call ADC_init function but it still can runs?