Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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 IR2) 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 (i.e., the room is Full) in the display unit for 2400 times with a duty cycle of 60%, otherwise show E (i.e., the room is Empty) in

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.

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

Define capital structure.

Answered: 1 week ago