Quote Originally Posted by towlerg View Post
You certainly need to set ADCON0 = x11101xx (x - not relevant) Fig16.1 "Temp indicator" input to ADC multiplexor
I've seen the published ERRATA for 1827 thus the missing TSEN - TSRNG bits in the original datasheet yet what you suggest with the sentence that starts with "certainly" is completely wrong .. Is it not the point why we use a compiler language that connects the holding capacitor to the "Analog Channel " / and the automatic control of the GO/DONE bit and those all other things that is required for a proper operation of an ADC conversion in a single line with single command for us ? AKA ADCIN? As you may know the usage of the ADCIN command we have to first select a channel and state a variable for the incoming result to be stored , in this manner which is the channel 29 which I've already put in the code .. Configuring the ADCON0 CHS<4:0>bits doesn't do any favor to us except stalling the MCU for one more instruction cycle ..

Second of all about your idea of setting the FVRCON.7 enable bit doesn't make any sense , If you've observed the original datasheet page 137 the temperature indicator module's positive power supply can not be chosen and uses the VDD directly ...
Name:  asdad.PNG
Views: 1307
Size:  14.0 KB

But thanks for your approaches anyway ...