This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error Message c213

C code with the C51 compiler
error c213 : left side of asn-op not an lvalue



code

{
unsigned char i,error=0;
for (i=0x80;i>0;i/=2)
{ if (i & value) DATA=1; //error
else DATA=0;
SCK=1;
_nop_();_nop_();_nop_();
SCK=0;
}
DATA=1;
SCK=1;
error=DATA;
SCK=0;
return error;
}

0