Home > other >  How to solve the C51 miscalculation
How to solve the C51 miscalculation

Time:10-23


Beginners microcontroller, in the use of port P1, 0 use statement when P1, 0==0, 0==0, behind the result is true, if judgment is true only to execute the statement, how to avoid,

CodePudding user response:

P1, 0 this writing what you learn?

CodePudding user response:

I have seen with the "^", "_", "", is not seen with", "
You that the if (P1, 0==0) should be treated as if (0==0), conditions of constant was established

CodePudding user response:

reference month bird, 1/f, response:
P1, 0 is the writing which learn?

Written in an underscore will compile error, I use of c51 is used, the writing,

CodePudding user response:

reference sweet reply: 3/f
Quote: yueyue birds, 1/f, reference response:
P1, 0 is the writing which learn?

Written in an underscore will compile error, I use of c51 is used, the written,

If ((P1 & amp; 0 x01)==0)
  • Related