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.
5V 8051 uC 1K P1.0 5V 8051 uC 1K P1.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
