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

Load resistor , a) Include a Smoothing Capacitor to the Rectifier circuit a...

a) Include a Smoothing Capacitor to the Rectifier circuit and calculate the Output Voltage and Frequency b) Include a 47Ω Load Resistor and sketch the schematic diagram of the c

Determine the base current, Q. A transistor has a base current i B = 25 µA...

Q. A transistor has a base current i B = 25 µA, α = 0.985, and negligible ICBO. Find β, iE, and i .

Explain explanatory notes on a/d conversion, Explain explanatory notes on A...

Explain explanatory notes on A/D conversion. The digital inventory is working a revolution into the field of microcontrollers, technology and microprocessors are used more effi

Energy conservation, Energy Conservation Our country has a vast poten...

Energy Conservation Our country has a vast potential of energy saving. It is estimated in which measures for energy conservation and improving energy efficiency have the pote

Dc motor control, how thyristor work in speed control??

how thyristor work in speed control??

Expression for generated emf in a dc generator, Q.   Derive the expression ...

Q.   Derive the expression for generated emf in a dc generator. Ans. Expression for Generated emf in a DC Generator                We shall now derive an expre

Ac resistance and dc resistance, Background Information Electrical mach...

Background Information Electrical machines usually consist of copper windings on steel cores, and their AC resistance is greater than their DC resistance. The power loss has

Two converters - boost-buck (cuk) and flyback, Design two converters - boos...

Design two converters - boost-buck (Cuk) and flyback meeting the following criteria: Vin = 15 V ... 35 V    Vout = 25 V Output voltage ripple 1% peak to peak Switching frequen

Electrical machine, Design a suitable double –layer lap winding for a 6-pol...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

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