Question: Modify the following code feeding back the Full Adder outputs into the MSP430. Modify your software to compare the actual FA outputs wi the expected

 Modify the following code feeding back the Full Adder outputs into

Modify the following code feeding back the Full Adder outputs into the MSP430. Modify your software to compare the actual FA outputs wi the expected outputs. If actual and expected outputs differ, the program should stop to show the bad I/O combination and turn on an error indicator. The program should resume following the FA truth table once the difference in outputs disappears. The Full Adder truth table is #include int main(void) {WDTCTL = WDTPW + WDTHOLD; P1DIR | = 0 times 07; P1OUT = 0; While(1) {___delay cycles(3000000); P1OUT^=0 times 01; __delay cycles(3000000); P1OUT^=0 times 03; ___delay cycles(3000000); P1OUT^=0 times 01; ___delay cycles(3000000); P10UT^= 0 times 07; ___delay cycles(3000000); PIOUT^= 0 times 01; ___delay cycles(3000000); PIOUT^= 0 times 03; ___delay cycles(3000000); PIOUT^= 0 times 01; ___delay cycles(3000000); PIOUT^= 0 times 07;}} Modify the following code feeding back the Full Adder outputs into the MSP430. Modify your software to compare the actual FA outputs wi the expected outputs. If actual and expected outputs differ, the program should stop to show the bad I/O combination and turn on an error indicator. The program should resume following the FA truth table once the difference in outputs disappears. The Full Adder truth table is #include int main(void) {WDTCTL = WDTPW + WDTHOLD; P1DIR | = 0 times 07; P1OUT = 0; While(1) {___delay cycles(3000000); P1OUT^=0 times 01; __delay cycles(3000000); P1OUT^=0 times 03; ___delay cycles(3000000); P1OUT^=0 times 01; ___delay cycles(3000000); P10UT^= 0 times 07; ___delay cycles(3000000); PIOUT^= 0 times 01; ___delay cycles(3000000); PIOUT^= 0 times 03; ___delay cycles(3000000); PIOUT^= 0 times 01; ___delay cycles(3000000); PIOUT^= 0 times 07;}}

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!