Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An analog -to-digital converter has a positive input reference voltage of 5.0V a

ID: 3573086 • Letter: A

Question

An analog -to-digital converter has a positive input reference voltage of 5.0V and is set up for 10-bit conversion. Calculate the resolution of the ADC in millivolts per bit. What is the output code if the input voltage is 2.0V. An LM35DZ type analog temperature sensor is connected to analog port AN0 of a PIC18F452 microcontroller. The sensor provides an analog output voltage proportional to the temperature, i.e., Vo = 10mV/degree C. Write a small program that shows the steps required to read the temperature. Explain why the use of local variables is preferable in C programs designed for microcontroller with limited RAM Explain how the use of functions leads to well-structured C programs and *e benefits of this design approach.

Explanation / Answer

5) a Resolution is determined by refernce input and by word width.

Refernce voltage is the maximum value that ADC can convert which is 5 V.
10 bits conversion means 2^10 output codes i.e. 1024
Hence the resolution = 5V/1024 which is 0.00488V or 4.88mV.

b) Now if we have 2V refernce voltage then resolution becomes

2V/1024 = 0.00195V or 1.95 mV

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote