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

Determine the percentage drop in load current, Q. A practical current sourc...

Q. A practical current source is represented by an ideal current source of 200 mA along with a shunt internal source resistance of 12 k. Determine the percentage drop in load curr

Vital parameters of regulator quality, Vital parameters of regulator qualit...

Vital parameters of regulator quality: 1. The output voltage's temperature coefficient of is the change in output voltage with temperature (perhaps averaged over a certain tem

Electrical machine, what happens when we apply DC supply to transformer pri...

what happens when we apply DC supply to transformer primary

Matlap code, matlap code to solve the fast decoupled method

matlap code to solve the fast decoupled method

Find the expressions for the capacitor voltage, Consider the RC circuit of ...

Consider the RC circuit of Figure (a) with R = 2 ,C = 5F,and i(t) = I = 10 A (a dc current source). Find the expressions for the capacitor voltage vC(t) and the capacitor current

What is the output modes used in 8279, What is the output modes used in 827...

What is the output modes used in 8279? 8279 gives two output modes for selecting the display options. 1.Display Scan In this mode, 8279 gives 8 or 16 character-multiple

Show maximum power transfer, Q. Show Maximum Power Transfer? In order t...

Q. Show Maximum Power Transfer? In order to investigate the power transfer between a practical source and a load connected to it, let us consider Figure , in which a constant v

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

Miller sweep circuit, explain the working of miller sweep circuit using op ...

explain the working of miller sweep circuit using op amp ic

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