Strange ADC behaviour
Posted: Thu May 11, 2017 6:13 pm
Hello
Using a 16F690 @ 1Mhz....simple read ADC0 port and display
on LCD (2.5V +Vref)....flowcode 6
All settings / osccon correct
But when i do a simulation or real test....when turning the pot
at some point i get figures that go over max ADC value of 1023
even in the simulation (4000 / 5000 etc etc)
Printing the ADC value to the LCD (INT type)....so its 0 to 1023
Am i doing something wrong?
Thanx
Mark
Using a 16F690 @ 1Mhz....simple read ADC0 port and display
on LCD (2.5V +Vref)....flowcode 6
All settings / osccon correct
But when i do a simulation or real test....when turning the pot
at some point i get figures that go over max ADC value of 1023
even in the simulation (4000 / 5000 etc etc)
Printing the ADC value to the LCD (INT type)....so its 0 to 1023
Am i doing something wrong?
Thanx
Mark