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

Define a voltmeter, Define a voltmeter A voltmeter is an instrument us...

Define a voltmeter A voltmeter is an instrument used to measure p.d. and must be linked in parallel with the part of the circuit whose p.d. is required.

Signal and system, You are required to implement below shift system in MATL...

You are required to implement below shift system in MATLAB, t0 is the amount of shift towards left or right. y(t)= x(t-t0) Implement MATLAB code, where shift should be taken as

Frequency-controlled induction-motor drives, Q. Frequency-controlled induct...

Q. Frequency-controlled induction-motor drives ? The converters employed for variable-frequency drives can be classified as: • Voltage-source inverter (which is the only one

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

What are cu and neu in 8087, What are CU and NEU in 8087? CU-Control un...

What are CU and NEU in 8087? CU-Control unit NEU- Numeric extension unit. The numeric extension unit implements all the numeric processor instructions whereas the control un

How transistor will be used as an amplifier, (a) How transistor will be use...

(a) How transistor will be used as an amplifier? (b) Give relation between α and β? (c) Show the biasing arrangement for the PNP transistor in common base configuration, so t

The octal inverter 74ls 240, The  Octal Inverter 74LS 240 It is  simil...

The  Octal Inverter 74LS 240 It is  similar  to above  octal  buffer  but with  inverter output. The  logic  diagram is  shown  in figure below . Normal 0

Determine the ratio of full-load current, The rotor of a wound-rotor induct...

The rotor of a wound-rotor induction motor is rewound with twice the number of its original turns,with a cross-sectional area of the conductor in each turn of one-half the original

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