Question: Plz, answer both questions .its questions of the microcontroller using 8051. the code must be in assembly language and plz show proteus output. Code must

 Plz, answer both questions .its questions of the microcontroller using 8051.

Plz, answer both questions .its questions of the microcontroller using 8051. the code must be in assembly language and plz show proteus output. Code must be done on Keil software. I will surely upvote in the case if you also show the handwritten calculations for this task. Like calculations for frequency cycle etc.

1. Suppose we have parking system where sensors are installed at in' and 'out' doors of the parking area. Total capacity of the parking area is 120 vehicles. The sensor gives a high to low pulse each time a vehicle crosses the door. Write 8051 assembly or C language program for the above parking system which counts up number of vehicles arriving and count down when vehicle leave parking area and show number of vehicles currently parked on Port 2. If parking area is full show it on P1.6 by turning on LED connected to this pin. While simultaneously generating a square wave of 3 Hz on pin mm P1.7. (you must use timer interrupt for square wave generation and external interrupts for sensors, without interrupts you will get 50% marks) Hint: Assume sensors are connected to INTO & INT1 of 8051 (40) 2. Design Proteus simulation for the above program. Use logic states for inputs and logic probes for output. Also use oscilloscope for square wave

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!