Suppose, BUBT authority wants to reduce the electric power consumption. They have noticed that if the lights
Question:
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.