
Originally Posted by
Srigopal007
Hi, I have a simple question regarding the On Board ADC for the PIC18F6520. This device has 10 bit, 16 channel ADC. I want to control several sensors such as a temperature sensor, light sensor using one microcontroller. For the temperature sensor, I want to use the LM34 because of electrical characteristics 10mV per degree F.
Lets assume that in my application I only want to measure from 0 degree F to 255 degree F. This means that my Vref must be (10mV * 255 points) = 2.55 V. Once I fix the Vref for the temperature sensor to 2.55V, does this mean that I have restricted my light sensor to 2.55 voltage as well, or can I select another Vref for the light sensor. If I cannot select different Vref for different sensor then how can I fix this problem? I am a bit confused with the ADC. Can someone please help me with this, thanks
-Srig
Bookmarks