![]() ![]() ![]() So, what is the conversion value/result you obtain? Anything in between is read and converted by the PIC ADC. You can’t input anything lower than 0V since that’s your negative reference voltage. You can’t input anything higher than 5V since that’s your positive reference voltage. So, your input voltage has to range from 0V to 5V. For now, let’s say that the reference voltage is 5V. So, the ADC reading can vary from 0 to 1023. ![]() That means that the ADC result can have 2^10 (2 to the power 10) values. Hence, here I have made an effort to explain everything I could about the ADC module of the PIC microcontroller, by using the popular PIC 16F877A as reference. Many even assume it to be a daunting task after looking at all the possible settings and configurations. I have seen that many people, especially newbies, are not clear regarding the modalities of using the ADC module of PIC microcontroller. The PIC, without the conversion to digital, can do almost nothing with an analogue input (unless you use the analogue comparator). The ADC is used to convert an analogue input signal (an analogue voltage within a specific range) to a corresponding digital data that can be processed and used by the PIC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |