Question: Consider a digital temperature sensor connected to the pin RA0 of a PIC 18 microcontroller. This sensor gives 0 when the temperature is within the
Consider a digital temperature sensor connected to the pin RA0 of a PIC 18 microcontroller. This sensor gives 0 when the temperature is within the acceptable interval, and it gives 1 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.
use assembly language
asap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
