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

Fabrication and testing laboratory, You will manufacture composite beams us...

You will manufacture composite beams using an epoxy matrix (West Systems 105 epoxy resin + West Systems 206 slow hardener) and one of the following reinforcements:  1.  Unidirec

The three-phase alternator, The Three-phase alternator In this case, t...

The Three-phase alternator In this case, three separate sets of coils are wound on the stator and connected to produce three separate outputs. Because of the physical displace

Calculate the armature current, A DC shunt motor rotating at 1560 RPM is su...

A DC shunt motor rotating at 1560 RPM is supplied from a 240-V source. The line current supplied to the motor is equal to 27 A. The shunt field resistance of the motor is equal to

Addressing model , Addressing Model As we have learned  already  that ...

Addressing Model As we have learned  already  that each instruction has two  parts  one is  op code and another  is operand. Op code  specified  the type  of operations to be

What are the various tones used in stronger telephony, Q. What are the vari...

Q. What are the various tones used in stronger telephony? When called party line is obtained, exchange control equipment transmits out the ringing current to telephone set of t

Determine the current for given capacitance values, Q. Consider the circuit...

Q. Consider the circuit of Figure. Determine and sketch i L (t) and v C (t) for capacitance values of (a) 1/6 F, (b) 1/8 F, and (c) 1 / 26 F. Note that the capacitance values ar

Daa decimal adjust accumulator instruction , DAA Decimal Adjust Accumulator...

DAA Decimal Adjust Accumulator Instruction This  instruction adjusts the contents  of the accumulator  into BDC (Binary Coded Decimal )  form  after a BCD  addition. It should

Explain lithography, Explain Lithography. Lithography - This is one ...

Explain Lithography. Lithography - This is one of the processes which is carried out throughout manufacture of integrated circuits. Silica oxide (SiO 2 ) layer is thermally

Use of cro for frequency measurement, Q. Explain the use of CRO for frequen...

Q. Explain the use of CRO for frequency measurement.   Measurement of frequency: The frequency of the periodic signals is easily measured with a CRO. The frequency of a si

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

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