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.
Tool/software:
Hello,
I was wondering if it is possible to use simultaneously two channels of the ADC, one as an analog input and the other one as a GPIO output ?
The purpose would be to use the GPIO output to control and external MUX, this external mux will forward a signal to the Analog input of the ADC.
Since both are internaly connected to the internal MUX, wouldn't that be impossible ? or since one channel is configured as a GPIO output, it becomes unrelated to the internal MUX and would keep its state when using the mux to read an anolg input.
Thank you in advance !
Hi Youness,
Thanks for waiting for a response due to the U.S. Christmas holidays. Yes, you can select to use two different channels, one as a GPIO output, and the other as an analog input.
The status of the GPIO output is retained in the GPO_VALUE register, so a pin will remain high until it is programmed to go low again. It stays persistent whether or not you are reading from an analog input channel. So yes, for all intents and purposes, the GPIO pins become disconnected from the analog inputs, with different control logic blocks.
Regards,
Joel