Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started