Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions