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

Explain public mode, Explain PUBLIC For large programs several small mo...

Explain PUBLIC For large programs several small modules are linked together. In order that the modules link together correctly any variable name or label referred to in other m

Preventing leakages at insulators, Preventing Leakages at Insulators L...

Preventing Leakages at Insulators Leakages at insulators, cracking of insulators and flashover across insulators frequent cause outages and give output in loss of revenue. Pol

Cpu based exchange, CPU Based Exchange:   In centralized control, all contr...

CPU Based Exchange:   In centralized control, all control equipment is replaced by a single processor which should be quite powerful. It should be capable of processing 10 to 100 c

Sr flip-flop, SR FLIP-FLOP (SRFF) The symbol for the SRFF is shown in F...

SR FLIP-FLOP (SRFF) The symbol for the SRFF is shown in Figure (a), in which S stands for "set," R stands for "reset" on the input side, and there are two outputs, the normal o

Calculate the unknown thermal conductivity, Derive the mathematical 3-D hea...

Derive the mathematical 3-D heat conduction equation in Spherical Coordinates? A furnace is made up of three layers of thicknesses 250 mm, 150 mm nad 100 mm with thermal conduct

Resultant force, State and prove parallelogram law of forces and explain i...

State and prove parallelogram law of forces and explain it''s applications

Discuss the function of instruction queue in 8086, Discuss the function of ...

Discuss the function of instruction queue in 8086? In 8086, a 6-byte instruction queue is presented at the Bus Interface Unit (BIU). It is used to pre fetch and store at the ma

How a transistor in common-base configuration amplify signal, Q. With a cir...

Q. With a circuit diagram explain how a transistor in common-base configuration amplify signals.  The common-base terminology is derived from the fact that the base is common t

Compute number of electrons and find their average velocity, Q. A wire with...

Q. A wire with n = 10 30 electrons/m 3 has an area of cross section A = 1mm 2 and carries a current i = 50 mA. Compute the number of electrons that pass a given point in 1 s, an

Benefits of digital systems, Q. Show Benefits of digital systems? Ever ...

Q. Show Benefits of digital systems? Ever since most digital systems have only two possible states, there is high degree of accuracy in the transmission of data. With an analog

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