Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

[SOLVED] I Got Error Like Error C213 in Keil

Status
Not open for further replies.

jignesh doshi

Full Member level 2
Joined
Aug 11, 2011
Messages
131
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,101
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:

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
46,987
Helped
13,938
Reputation
28,124
Reaction score
12,576
Trophy points
1,393
Location
Bochum, Germany
Activity points
273,971
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.
 

jignesh doshi

Full Member level 2
Joined
Aug 11, 2011
Messages
131
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
2,101
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top