Question: There is an addition operation will be done using PIC16F877A. For this purpose, 5 buttons are connected to lower bits of PORTB (0-4). These buttons
There is an addition operation will be done using PIC16F877A. For this purpose, 5 buttons are connected to lower bits of PORTB (0-4). These buttons will be used to determine the first and second number that will be summed. After you press these buttons the binary number which is 5 bits will be light up on LEDs that are connected to PORTD. If the number is correct another button on 5th bit of PORTB will be used to confirm it and proceed to the next step. If there is a mistake, it will possible to clear the number using a button which is connected to 6th bit of PORTB. The process steps in summary are given below. Draw the flow chart for this project and write the assembler code [30].
Step 1: Choose first number A (PORTB (0-4))
Step 2:
a) Clear the number if there is a mistake (PORTB(6)), repeat Step 1
b) Proceed to the next step if it is correct (PORTB(5))
Step 3: Choose second number B (PORTB (0-4))
Step 4:
a) Clear the number if there is a mistake (PORTB(6)), repeat Step 3
b) Proceed to the next step if it is correct (PORTB(5))
Step 5: Show the result on LEDs (PORTD)

There is an addition operation will be done using PIC16F877A. For this purpose, 5 buttons are connected to lower bits of PORTB (0-4). These buttons will be used to determine the first and second number that will be summed. After you press these buttons the binary number which is 5 bits will be light up on LEDs that are connected to PORTD. If the number is correct another button on 5th bit of PORTB will be used to confirm it and proceed to the next step. If there is a mistake, it will possible to clear the number using a button which is connected to 6th bit of PORTB. The process steps in summary are given below. Draw the flow chart for this project and write the assembler code (30). . Step 1: Choose first number A (PORTB (0-4)) Step 2: a) Clear the number if there is a mistake (PORTB(6)), repeat Step 1 b) Proceed to the next step if it is correct (PORTB(5)) Step 3: Choose second number B (PORTB (0-4)) Step 4: a) Clear the number if there is a mistake (PORTB(6)), repeat Step 3 b) Proceed to the next step if it is correct (PORTB(5)) Step 5: Show the result on LEDs (PORTD) There is an addition operation will be done using PIC16F877A. For this purpose, 5 buttons are connected to lower bits of PORTB (0-4). These buttons will be used to determine the first and second number that will be summed. After you press these buttons the binary number which is 5 bits will be light up on LEDs that are connected to PORTD. If the number is correct another button on 5th bit of PORTB will be used to confirm it and proceed to the next step. If there is a mistake, it will possible to clear the number using a button which is connected to 6th bit of PORTB. The process steps in summary are given below. Draw the flow chart for this project and write the assembler code (30). . Step 1: Choose first number A (PORTB (0-4)) Step 2: a) Clear the number if there is a mistake (PORTB(6)), repeat Step 1 b) Proceed to the next step if it is correct (PORTB(5)) Step 3: Choose second number B (PORTB (0-4)) Step 4: a) Clear the number if there is a mistake (PORTB(6)), repeat Step 3 b) Proceed to the next step if it is correct (PORTB(5)) Step 5: Show the result on LEDs (PORTD)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
