Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] I Got Error Like Error C213 in Keil

Status
Not open for further replies.

jignesh doshi

Full Member level 2
Full Member level 2
Joined
Aug 11, 2011
Messages
131
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,112
Hello All,
I got error
C213 : Left Side of Assignment Operator not an L-Value while programming with AT89C55WD.

C:
void bit_sep_32(unsigned char c)

{

    unsigned char w;

    for(w=1;w<=c;w++)

    {

        h=a/10;

        d[w]=a%10;

        d[w]=d[w]+0x30;

        a=h/10;

        w++;

        d[w]=h%10;

        d[w]=d[w]+0x30;

    }

}

When I Add above code at that time this error comes, so how can i remove this error?
 
Last edited by a moderator:

You missed to tell thes exact error location, the compiler tells it.
You missed to give the declaration of all variable involved in the code.
 

Dear FvM,

Sorry for not explaining in detail.

#include <AT89X55.H>
#include <MATH.H>
#include <INTRINS.H>
#include <REG51.H>

volatile unsigned long a,h;
volatile unsigned char d[10];

void bit_sep_32(unsigned char c)
{
unsigned char w;
for(w=1;w<=c;w++)
{
h=a/10;
d[w]=a%10;
d[w]=d[w]+0x30;
a=h/10;
w++;
d[w]=h%10;
d[w]=d[w]+0x30;

}
}

I got error at highlighted line where text color is Red and are Bold.
--- Updated ---

Hello all,

By using Keil Version 5, problem has been solved.

Thanks for your help..
--- Updated ---

Hello all,

By using Keil Version 5, problem has been solved.

Thanks for your help..
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top