Page 1 of 1

What's an l-value

Posted: Tue May 18, 2010 11:20 am
by adrianxyz
I'm trying to create a flowcode c block which contains the following code:
PORTA = 0x00;
I get the error "left operand should be an l-value".
Any idea what I'm doing wrong ?

Re: What's an l-value

Posted: Tue May 18, 2010 1:26 pm
by Steve
I think you need "porta = 0x00;" or perhaps even "_porta = 0x00;"

Re: What's an l-value

Posted: Tue May 18, 2010 3:18 pm
by Benj
BoostC Compiler
porta = 0x00;

Hitech Compiler
PORTA = 0x00;