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.
Hi,
My customer would like to use CC2642 GPIO to sense the battery connecting to the TS pin.
We would like to use the same port as input to sense the thermistor voltage using ADC to compute the battery temp. Once above >40C, pull TS pin low to terminate charging. However, this would requires toggling the same GPIO port from analog input to digital output to pull TS low.
Question is whether CC2642 support on the fly GPIO configuration as input to output and vice versa after boot up?
Thanks,
Christina
Hi Christina,
The GPIOs can be dynamically configured using the GPIO driver. https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/docs/drivers/doxygen/html/_g_p_i_o_8h.html
I hope this will help,
Best regards,