Question: Consider a digital temperature sensor connected to the pin RAO of a PIC 18 microcontroller. This sensor gives o when the temperature is within the

Consider a digital temperature sensor connected to the pin RAO of a PIC 18 microcontroller. This sensor gives o when the temperature is within the acceptable interval, and it gives i" when the temperature exceeds a certain threshold (for example 35 C). A fan is connected to RB7 through an appropriate driver. The microcontroller must check the state of the sensor each 5 seconds, if the sensor gives "1", then the fan must be turned ON. If the sensor Use a 4 MHz oscillator to write the delay function or to setup a timer. Consider a digital temperature sensor connected to the pin RAO of a PIC 18 microcontroller. This sensor gives o when the temperature is within the acceptable interval, and it gives i" when the temperature exceeds a certain threshold (for example 35 C). A fan is connected to RB7 through an appropriate driver. The microcontroller must check the state of the sensor each 5 seconds, if the sensor gives "1", then the fan must be turned ON. If the sensor Use a 4 MHz oscillator to write the delay function or to setup a timer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
