Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose, BUBT authority wants to reduce the electric power consumption. They have noticed that if the lights of the corridor remain off when no one

Suppose, BUBT authority wants to reduce the electric power consumption. They have noticed that if the lights of the corridor remain off when no one is in the corridor, then electric power consumption will be reduced drastically. So they hire you to build an automated Suppose, BUBT authority wants to reduce the electric power consumption. They have noticed that if the lights of the corridor remain off when no one is in the corridor, then electric power consumption will be reduced drastically. So they hire you to build an automatic system that will make sure if no one is in the corridor then all the lights will be turned off. A motion sensor is connected to pin P2.5 of the 8051 micro-controller. Whenever it senses any movement, P2.5 will be high and all the lights connected to P3 will be turned on. When the motion sensor doesn’t sense any movement, P2.5 will be low and all the lights connected to P3 will be turned off.

Now implement this system through the corresponding 8051 assembly code. Tic system that will make sure if no one is in the corridor then all the lights will be turned off. A motion sensor is connected to pin P2.5 of the 8051 micro-controller. Whenever it senses any movement, P2.5 will be high and all the lights connected to P3 will be turned on. When the motion sensor doesn’t sense any movement, P2.5 will be low and all the lights connected to P3 will be turned off.

Now implement this system through the corresponding 8051 assembly code.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Solution Motion sensor connected to P25 and lights connected to P3 Requirement ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles of Economics

Authors: Robert Frank, Ben Bernanke

5th edition

73511404, 978-0073511405

More Books

Students also viewed these Accounting questions