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.

CC2650MODA: How do I read analog values from a GPIO port?

Part Number: CC2650MODA

Tool/software:

How do I read analog values from a GPIO port for example DIO11 or something like that in the Simple Peripheral example?

I see the PIN_getInputValue(...) function, but this returns a HIGH or LOW (1 or 0), I was wondering if it was possible to read analog values?

I'm not able to use Sensor Controller because it stops working after I reboot. Any help would be highly appreciated.

  • Hi, 

    Thank you for reaching out. Your observation is correct, the pin driver will only return the state (Low/High) of the pin. You'll need an ADC to read an analog value on the pin. 

    Please reference to the ADC examples found within your TIRTOS installation. 

    Best regards,