Hello. I am trying to measure voltage with this PIC, it has a 12 bit ADC because i got wrong voltages displayed i tried to display the ADC reading values and i got a surprise.
At 0V ADC is 64660 and goes up to 65510 meaning 2.1V from then suddenly drops to 0 and starts counting up to 1230 meaning 5V.
I don't posted the LCDInit() it's the standard init and a hello message ( they are in a different .h file)
I don't touched the ADC registers, until now ( with 10bit ADC) mikroC's ADC_Init() did all the configs, but this time i think it has some problems.
I will try to read the datasheet and found out how to use the ADC from registers ( i don't really worked with registers until now, i used the already made functions of mikroC).