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

Find the voltage gain of the overall circuit, Q. Find the voltage gain of t...

Q. Find the voltage gain of the overall circuit? (a) Consider the circuit of the inverting amplifier shown in Figure (a), including an ideal op amp. Show that the voltage gain

Calculate the combined resistance of resistors , 1.   Calculate the combi...

1.   Calculate the combined resistance of three resistors connected in series with resistance of 20 ohm, 30 ohm and 40 ohm? (to achieve a pass grade, solve problems with resisto

Illustrate core losses in magnetic core material, Q. Illustrate Core Losses...

Q. Illustrate Core Losses in magnetic core material? Iron-core losses are usually divided into two components: hysteresis loss and eddy-current loss. The former is proportional

Testing of ct operated meters, Testing of CT Operated Meters The subse...

Testing of CT Operated Meters The subsequent tests should be carried out for CT operated meters: i) Ratio test through primary injection kit, ii) Polarity test, iii)

Determine the complete response for capacitance, Consider the circuit of Fi...

Consider the circuit of Figure for t> 0 with zero initial conditions, v Th (t) = 1 V (dc), and R Th = 2 ; L = 1 H. Determine the complete response for vC(t) for capacitance value

How you can convert a galvanometer to a voltmeter, To convert a galvanomete...

To convert a galvanometer to a voltmeter, you should add a: a) High resistance in series b) High resistance in parallel c) Low resistance in series d) Low resis

Differentiate between dual beam and dual trace oscilloscope, Q. How do you ...

Q. How do you differentiate between dual beam and dual trace oscilloscope? Sol. There are two separate vertical input channels A, B and these use separate attenuator and prea

Hybrid model for two-port network, Hybrid Model for Two-port Network:- ...

Hybrid Model for Two-port Network:-             V 1 = h 11 i 1 + h 12 V 2                                                                             I 2 = h 1 i 1

Explain continuous-data and discrete-data systems, Q. Explain Continuous-da...

Q. Explain Continuous-data and discrete-data systems? A continuous-data system is one in which the signals at various parts of the systemare all functions of the continuous-tim

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