Question: Question (7 marks): A microcontroller is used in interrupt mode where an alarm interrupt is connected to INTO. When the alarm goes on from low

 Question (7 marks): A microcontroller is used in interrupt mode where

Question (7 marks): A microcontroller is used in interrupt mode where an alarm interrupt is connected to INTO. When the alarm goes on from low to high, the microcontroller serves a subroutine which turns on RC1 which is connected to a water pump to put the fire off. When the fire dies down, the microcontroller returns to main program and controls the room temperature as follows: The temperature of the room is compared with an offset (say 21 degrees). The temperature is connected to the positive input of the comparator and the offset to the negative input. If temperature is bigger than the offset, the microcontroller turns on the AC through RC2. Once the room temperature becomes less than the offset, the microcontroller turns off the AC. i- Obtain the bytes and bits to configure the interrupt (INTO) and the required ports. ii- Program the microcontroller to carry out the task of a program of your choice.. AC Temp offret 25 degrees Output to RC2 Voo NCE % 816 Vous VA Vss VE a Vouts SCK MCP49X2 12 13 14 15 cithirit SCK (Mode 1.1) (Mode 0,0) NC NC D SHON Mini DOC B BUF GASHN 011 010 Do Y De D7%D6) OS X D X D Y D2D1%D0 DS D'03 config bits SDI LDAC Vout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!