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

Difference between div and idiv instructions, Mention how do the DIV & I...

Mention how do the DIV & IDIV instructions differ in their functionality DIV: Unsigned numbers division and IDIV: Signed number division.

Designing of a 2 way cross-over circuit for loudspeaker, Loudspeakers using...

Loudspeakers using single driver are unable to cover the entire frequency band from low frequency to high frequency. Sometimes multiband frequency is required for the bass enhancem

Transmission - salient features of nep, Transmission: The policy empha...

Transmission: The policy emphasizes in which adequate and timely investment along within efficient and coordinated operation is essential for developing a robust and integrate

Distribution transformers, Distribution Transformers 1. Augmentation/...

Distribution Transformers 1. Augmentation/Addition of Distribution Transformers Distribution transformers have to be augmented by installing additional transformers or in

Important function of common control subsystem, Q. Important function of co...

Q. Important function of common control subsystem? If a call is destined to a number in an exchange other than present one processing the digits, initial translator generates t

Prove modified algorithm better than the elevator algorithm, A slight modif...

A slight modification of the elevator algorithm for scheduling disk requests is to always scan in the same direction, In what respect is this modified algorithm better than the ele

Explain internal data bus, Q. Explain Internal Data Bus? Internal Data ...

Q. Explain Internal Data Bus? Internal Data Bus: A bus which operates only within internal circuitry of the CPU, communicating among internal caches of memory which are part of

H – parameter model, H - Parameter model :- The transistor's equiv...

H - Parameter model :- The transistor's equivalent circuit can be dram using simple approximation by retaining its necessary features. These equivalent circuits will a

Igbt - insulated gate bipolar transistor , IGBT ( Insulated Gate Bipolar T...

IGBT ( Insulated Gate Bipolar Transistor ) IGBT  stands for  insulated gate bipolar transistor. It is having the advantages of both power MOSFET and BJT.  In IGBT  layer is P

P type material - semiconductor material, p type material: p type ma...

p type material: p type material is formed by doping aerial  crystal with impurity atoms having three valance electrons. The diffused impurities with three valence electrons

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