We want to use PIC 18F452 to convert a voltage from solar cell into a digital value, to be read by a PC using parallel port. This cannot be changed.
Can someone provide me a pointer to a sample code or a simple book or URL where to find the basic programming for Analog to Digital conversion using 18F452 ?
Our actual problem now (one of few ... or lots of them) is how to define the "range" of the input signal.
I mean, how does the PIC know if an input of 3 volts is "100 %" of the signal, ( corresponding to "0xFF" digital output ) or it is just "50 %" of the voltage range ( corresponding to 0x80 digital output, more or less ... ) ?
Thanks.