Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribedThe 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 C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions