Question: Write an assembly language program for 8051 family. A switch is connected with P1.0 and LED is connected with P3.0. You are required to use

Write an assembly language program for 8051 family. A switch is connected with P1.0 and LED is connected with P3.0. You are required to use the state of the switch. If it is closed, the LED will be ON for half a second and then OFF for rest of the second, otherwise the LED will remain ON for one second. After that the switch is checked again and LED is switched ON and OFF accordingly. The complete process goes on infinitely.

Assume that the delay routine for 25msec is already available with name Delay_25ms.Write an assembly language program for 8051 family. A switch is connected

5V 8051 uC 1K P1.0 5V 8051 uC 1K P1.0

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!