Hi just realised I should have posted this in the Micro controller forums.
Anyway here it is...
I am just writing some PIC code that will read a 0V-5V analogue value from its AN0 pin. The question I have is what value does the reading relate to in the code? E.g. 0V = 0 but is 5V = 255 and 1V = 51 (255/5)? Or is there some other values for each of these?
I am just writing some PIC code that will read a 0V-5V analogue value from its AN0 pin. The question I have is what value does the reading relate to in the code? E.g. 0V = 0 but is 5V = 255 and 1V = 51 (255/5)? Or is there some other values for each of these?