Question: ( 1 4 pt . ) Design a circuit to interface two potentiometers POT 1 and POT 2 , which have output voltage range (

(14 pt.) Design a circuit to interface two potentiometers POT1 and POT2, which have output voltage range (+1 V to +4 V ), to the ADC module of PIC16F877A, and two LEDs to PORTB. Show all connections in details with the optimal port configuration of ADC module and then write the required initialization code.
(8 pt.) For the circuit you have designed, calculate the digital output values that required to control the LEDs as follows: (LED1 will be ON if the output voltage from POT1 is +1.5 V , LED2 will be ON if the output voltage from POT2 is +2.5 V ).
\table[[ADCON0,ADSC1,ADSC0,CHS2,CHS1,CHS0,GO/DONE,,ADON],[ADCON1,ADFM,,,,PCFG3,PCFG2,PCFG1,PCFG0]]
\table[[PCFG3:
PCFGO ,An7
Re2,An6
Re1,An5
Re0,[An4],[Ra5],An3
Ra3,[An2],[Ra2],An1
Ra1,An0
Ra0,Vref+,Vref-, CHAN
Refs
PLEASE ANSWER IT ASAP
( 1 4 pt . ) Design a circuit to interface two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!