You are on page 1of 1

CPEG 416 Quiz 6 Name:

1. Interface an ADC , a potentiometer, and 8 LEDs to a PIC16F84A using Proteus. The LEDs should
show that status of the output of the ADC. The potentiometer is connected between the ground
and a 5V voltage source. The Vref/2 of the ADC is left open. In the Hardware,
a. Show level 0 design (3 points)
b. Show level 1 design (3 points)
c. Show the complete design (Proteus diagram) (4 points)
2. Write a C program to read the potentiometer through the ADC. (5 points)
3. Run your simulation and record the following (5 points)

ADC Output
Pot V LED7 LED6 LED5 LED4 LED3 LED2 LED1 LED0
0
0.5
1
2
3
5

4. Connect the Vref/2 to a 1.5 v source and run your simulation (5 points)

ADC Output
Pot V LED7 LED6 LED5 LED4 LED3 LED2 LED1 LED0
0
0.5
1
2
3
5

Prepare a video for this quiz. (10 points)

You might also like