Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The microcontroller is PIC16F877A Which is written in the above of the picture It is requested to configure the PIC16F877a microcontroller for the bellow scenario:
The microcontroller is PIC16F877A Which is written in the above of the picture
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 CStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started