Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q3. Two IR sensors (i.e., IR1 and IR2) at two different doors in a room are connected to the MCU 8051 through pin P3.1 and

image text in transcribed

Q3. Two IR sensors (i.e., IR1 and IR2) at two different doors in a room are connected to the MCU 8051 through pin P3.1 and P3.6, respectively. A common anode seven-segment display unit, given in Fig. 1 as follows, is connected with MCU 8051 through Port 2 only. Assume an external oscillator of 36 MHz in connected with MCU 8051. Write the ASM code in MCU 8051 for the following working mechanism of the system Once any of the sensors (i.e., IR1 or TR2) senses any external movement of an incoming visitor through the doors (i.e., sends logic high values to the corresponding slots of Port 3), blink 'F' (.e., the room is Full) in the display unit for 2400 times with a duty cycle of 60%, otherwise show 'E' (.e., the room is Empty) in Page 1 2 the display unit if none of the sensors senses anything (i.e., no movement). Show your calculation in detail considering both the ON-state and OFF-state delay for the given duty cycle. Consider the total period is 30 ms. [25] IR 2 Port 3 7SD IR 1 MCU 8051 14 ISI 111 19 Port 2 121 36 MHz Osc. 131 Vee Fig.1: Microcontroller 8051-based Room Monitoring System Q3. Two IR sensors (i.e., IR1 and IR2) at two different doors in a room are connected to the MCU 8051 through pin P3.1 and P3.6, respectively. A common anode seven-segment display unit, given in Fig. 1 as follows, is connected with MCU 8051 through Port 2 only. Assume an external oscillator of 36 MHz in connected with MCU 8051. Write the ASM code in MCU 8051 for the following working mechanism of the system Once any of the sensors (i.e., IR1 or TR2) senses any external movement of an incoming visitor through the doors (i.e., sends logic high values to the corresponding slots of Port 3), blink 'F' (.e., the room is Full) in the display unit for 2400 times with a duty cycle of 60%, otherwise show 'E' (.e., the room is Empty) in Page 1 2 the display unit if none of the sensors senses anything (i.e., no movement). Show your calculation in detail considering both the ON-state and OFF-state delay for the given duty cycle. Consider the total period is 30 ms. [25] IR 2 Port 3 7SD IR 1 MCU 8051 14 ISI 111 19 Port 2 121 36 MHz Osc. 131 Vee Fig.1: Microcontroller 8051-based Room Monitoring System

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

Define and discuss the process of planned change.

Answered: 1 week ago

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago