Write Embedded C Function Implement Following Truth Table Q37018586

Write an embedded C function to implement thefollowing truth table:

Out PI. I P2.5 0 0

Out PI. I P2.5 0 0 Show transcribed image text Out PI. I P2.5 0 0


Solution


int main ()

{

if (p1==0 && p3==0)

p2=1;p5=0;

else

if (p1==0&&p3==1)

p2 =1;p5=1;

return 0;

}

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.