Question: It is requested to configure the PIC16F877a microcontroller for the bellow scenario: A Temperature Sensor is connected to the PIC16F877A ADC Channel 2. The ADC

It is requested to configure the PIC16F877a microcontroller for the bellow scenario: A Temperature Sensor is connected to the PIC16F877A ADC Channel 2. The ADC has a Reference Voltage of 5V and a 10-Bit resolution. When the Temperature Sensor measures 50 C the DOUT is equal to the MAX DOUT for 10-Bit resolution. When the temperature is higher than 35 C, the system should inform the user that is too hot. Given that we use 8MHz oscillator on the PIC16F877A. 1- On which pin number the sensor is connected and how should the (CH2CHO) of ADCONO be configured? In addition, which bit has to be configured as input pin? Explain. 2- It is required to choose between two different clock conversions: Fosc/8 or Fosc/16. Which conversion clock to choose and how to configure ADCS2 of ADCON1 and ADCS1:ADCSO of ADCONO? Explain 3- It is requested that all analog channels are configured to be analog inputs except two channels. How should PCFG be configured? 4- Consider that the converted data is stored in the registers in a Left justified format. List the name of the registers where ADC data is stored. What is the final configurations of ADCONO and ADCON1 to meet all previous requirements? Explain. 5- Calculate Dout for 35 C. It is requested to configure the PIC16F877a microcontroller for the bellow scenario: A Temperature Sensor is connected to the PIC16F877A ADC Channel 2. The ADC has a Reference Voltage of 5V and a 10-Bit resolution. When the Temperature Sensor measures 50 C the DOUT is equal to the MAX DOUT for 10-Bit resolution. When the temperature is higher than 35 C, the system should inform the user that is too hot. Given that we use 8MHz oscillator on the PIC16F877A. 1- On which pin number the sensor is connected and how should the (CH2CHO) of ADCONO be configured? In addition, which bit has to be configured as input pin? Explain. 2- It is required to choose between two different clock conversions: Fosc/8 or Fosc/16. Which conversion clock to choose and how to configure ADCS2 of ADCON1 and ADCS1:ADCSO of ADCONO? Explain 3- It is requested that all analog channels are configured to be analog inputs except two channels. How should PCFG be configured? 4- Consider that the converted data is stored in the registers in a Left justified format. List the name of the registers where ADC data is stored. What is the final configurations of ADCONO and ADCON1 to meet all previous requirements? Explain. 5- Calculate Dout for 35 C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
