Microprocessor system, Electrical Engineering

Assignment Help:

   A burglar alarm system is controlled by a microprocessor system. The system has three independent circuit each consisting of 7 passive infra red sensors. The controller can be programmed to activate individual circuits and detect which passive has raised the alarm. Write a C program to control the system.

  Assume
 
    Variable char a contains the passive details of circuit 1
    Variable char b contains the passive details of circuit 2
    Variable char c contains the passive details of circuit 3
 
The variable a/b/c is coded such that if the sensor is activated then its corresponding bit is set to 1 else it is 0. The bit format is bit 0 Lsb sensor and bit 6 Msb sensors. The program should initial run from a menu which enables various circuits to be turned on/off , a reset password to be set,a special simulation where a/b/c are entered from keyboard (test) and a system set . The program should display the state of the passives (active or non-active)  and if the alarm is raised  an audible alarm should be heard , the  set passive and an access code be requested to reset the system.


Related Discussions:- Microprocessor system

Electricity, Describe the nature of electricity

Describe the nature of electricity

Prove modified algorithm better than the elevator algorithm, A slight modif...

A slight modification of the elevator algorithm for scheduling disk requests is to always scan in the same direction, In what respect is this modified algorithm better than the ele

Find the current flow through a resistor, Q. Find the current flow through ...

Q. Find the current flow through a resistor ? Consider the circuit shown in Figure (a). Reduce the portion of the circuit to the left of terminals a-b to (a) a Thévenin equival

Guidelines from electricity regulatory commission, Guidelines from Electric...

Guidelines from Electricity Regulatory Commission The electricity companies have successfully adopted the guidelines issued through ERCs Utilities usually set their yearly KP

Disconnection of supply, Disconnection of Supply: An Appellate Tribuna...

Disconnection of Supply: An Appellate Tribunal has been created over the Commissions for speedy dispute resolution. It is assumed to adjudicate appeals against orders of the a

Discuss dos function call with one example, Discuss DOS function call with ...

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

Overview of decimal number system, Q. Can you give some Overview of Decimal...

Q. Can you give some Overview of Decimal Number System? The Decimal Number System uses base 10 and It includes the digits from 0 through 9. The weighted values for each positio

Explain charge-to-charge amplifier, Q. Explain Charge-to-Charge Amplifier ...

Q. Explain Charge-to-Charge Amplifier A circuit is shown in Figure in which there is a capacitor C1 in the - input line and a capacitor Cf in the feedback loop. KCL at node X g

Electromechanical and electronic switching system, Q. Compare electromechan...

Q. Compare electromechanical switching system with electronic switching system. Sr. No Electromechanical switching System Electroni

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd