Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

LO2 Identify components of workflow analysis.

Answered: 1 week ago