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.

LAUNCHXL-CC2640R2: ADC problem

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: BLE-STACK

Hi everybody.

I've met a problem when getting results from ADC. When analog signal went up from 0, the expeted result should be immediately go up to about 2430-2450 from 0. But the actully result in first second was only 49, and it persisted for 1 second. What happened? Is there any parameters wrong?

P.S. It runs on TI-RTOS system, BLE-STACK 3.0.1.

  • Can you provide how you set up and use the ADC? (TI Drivers or via direct register?) I can't tell what your parameters are or how you're using it;

    In my experience, it's often just a configuration issue -

    Regards,
    Rebel
  • Thanks. To use ADC function, I set up the CC2640R2 by Sensor Controller Studio. There is an example named ADC DATA LOGGER LAUNCHPAD and I made some modifications to use. However, to solve this problem, I cannot find where to fix. But besides, when I was only using Sensor Controller Studio, the ADC data is correct. That was strange...= =|||

  • It's possible that you may need to regenerate the files or perhaps not using them correctly in CCS/IAR. Or maybe it's not being cast propertly (like if you case a unsigned number as a signed)

    You may want to consider also trying to use the ADC without utilizing the sensor controller at all. This can be done by using the ADC driver provided with TI RTOS. See: <SDK>/docs/tidrivers/doxygen/html/index.html

    Regards,
    Rebel
  • Thanks. I've tried this and made it right. Besides, I've discovered a wrong configuration on my signal RECEIVER.Thank you!