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 about automatic stabilizers, Q. Explain about Automatic Stabilizers...

Q. Explain about Automatic Stabilizers? Automatic Stabilizers: Government fiscal policies which have effect of automatically moderating cyclical ups and downs of capitalism.

Determine potential drop between the terminals of a battery, The potential ...

The potential drop between the terminals of a battery is equal to the battery's EMF when: a) No current is drawn from the battery b) A very large current is drawn from th

Compute efficiency of transformer in power factor lagging, Q. A 10-kVA, 200...

Q. A 10-kVA, 200:400-V, single-phase transformer gave these test results: • Open-circuit test (LVwinding supplied): 200V, 3.2 A, 450 W • Short-circuit test (HV winding suppli

Ldax load accumulator indirect instruction , LDAX  Load Accumulator Indire...

LDAX  Load Accumulator Indirect Instruction This instruction is used to copy data  from memory  location pointed by register  pair only  BC or DE  to the accumulator  HL pair

Show function of compensating plate in interferometer, Q. Show Function of ...

Q. Show Function of Compensating Plate in interferometer? In absence of plate G2 the reflected ray passes the plate G1 twice, whereas the transmitted ray does not passes even o

Define the property under which resistance of metals vanish, The property d...

The property due to which the resistance of some metal or compound vanishes under certain conditions is (A) Semi conductivity.                     (B) Super conductivity.

Working of hartley oscillator, Working of Hartley oscillator : When the...

Working of Hartley oscillator : When the collector supply voltage Vcc is switched on, the capictor gets charged. The capacitor discharges through the inductor, setting up oscil

Tunneling effect, what is tunneling effect ? With calculation.

what is tunneling effect ? With calculation.

What is txd, What is TXD? TXD- Transmitter Data Output This output p...

What is TXD? TXD- Transmitter Data Output This output pin carries serial stream of the transmitted data bits by with other information like start bit, stop bits and priority

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