Question: Write the fastest finger first program in memory model form to detect the earliest respondent for a quiz show. There are four participants for the

Write the fastest finger first program in memory model form to detect the earliest respondent for a quiz show. There are four participants for the quiz show. Their switch button input is connected at port address 40h after converting it into an 8-bit binary number. The bit 0,2,4 and 6 are assigned to the state of switches for participant 1,2,3 and 4 respectively. Hence, input values 01h,04h,10h or 40h indicate that participant 1,2,3 or 4 is the first one to press the switch button. In response, the corresponding buzzer makes a sound and also a led light begins to glow. At the same time other switches stop working and later responses from participants are ignored and no further buzzer is activated along with the led light. Buzzers and led lights are attached to the relays connected at port addresses 42h,52h,62h and 72h respectively. To restart the program, a switch connected at port address 50h is to operate ON.

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!