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

Linear and digital ics, write down the application of shift register and ex...

write down the application of shift register and explain it.

Common source amplifier, Common Source Amplifier A common-source ampl...

Common Source Amplifier A common-source amplifier is one of three basic single-stage field-effect transistor abbreviated as FET amplifier topologies, commonly used as a volta

Electronics circuits 1, Explain and drive the expression for fixed bias and...

Explain and drive the expression for fixed bias and potential divider.

Explain the asynchronous up-down counters, Explain the Asynchronous Up-Down...

Explain the Asynchronous Up-Down Counters? In some applications a counter must be able to count both down and up and the circuit below is a 3-bit up-down counter. It counts do

Cro, role of trigger circuit in cro

role of trigger circuit in cro

Four cells in series, A battery having of 12 cells are divided in three gro...

A battery having of 12 cells are divided in three group which each group having of four cells in series. The three groups are joined in parallel. The emf of every cell is 1.5V and

Successive approximation adc, Successive approximation ADC One method ...

Successive approximation ADC One method of addressing digital ramp ADC's shortcomings is so-called successive approximation ADC. Only change in this design is a very special c

Calculate the supply line current, A balanced star-connected load is connec...

A balanced star-connected load is connected across a three phase 450V 50 Hz AC supply. Each load element has an impedance of 5+j12 Ω. Calculate: (i)  The power factor of the

Ac generators - the alternator, In practice, it is usually better to wind t...

In practice, it is usually better to wind the field coils on the rotor and supply the field current to them via slip rings.  As the rotor turns, the changing magnetic field expe

Op, Find the current through capacitor by superposition therom

Find the current through capacitor by superposition therom

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