I have a reading from an ADC that I want to convert to the equivalent voltage. The problem is that my voltage for the the PIC microcontroller is not fixed. It changes between 5V and and 3.6V.
How can I convert my ADC reading to voltage?
The only possibility that I can think of is to connect the supply voltage to another ADC pin, make an algorithm in FW to approximate the supply voltage based on this value, and then use it to convert my first reading into voltage.