Question: Write a program to measure the analog voltage on the PCO(ADCO) pin using the ADC peripheral with V_ref selected to be AV_cc. Using a voltage
Write a program to measure the analog voltage on the PCO(ADCO) pin using the ADC peripheral with V_ref selected to be AV_cc. Using a voltage source, apply a DC voltage to ADC0 and record measurements at 20 different input voltages between 0 and 5 volts. Use a multimeter to measure the actual input voltage V_in. Measure the supply voltage AV_cc on the 5V pin. Provide a table that includes the measured (by multimeter) voltage V_in, the expected ADC value for V_in, the recorded ADC value (a 10-bit unsigned integer), and the voltage that the ADC value represents. Do your measurements match your expectations? How do you expect the measurement from Part 1 to affect these results? Explain your answer. Plot the recorded ADC value (y-axis) versus the measured input voltage V_in (x-axis)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
