Question: write an assembly language program for 8051 A pushbutton is connected with P1.0 and a buzzer is connected with P3.0. You are required to use

write an assembly language program for 8051 A pushbutton is connected with P1.0 and a buzzer is connected with P3.0. You are required to use the state of the pushbutton. If it is pressed and then released, the buzzer will ring for half a second and will stop ringing for rest of the second; otherwise the buzzer will remain OFF for one second. After that the pushbutton is checked again and buzzer is turned ON and OFF accordingly. The complete process goes on infinitely. Assume that the delay routine for 25msec is already available with name Delay_25ms.

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!