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

string functions in AT89C4051

Hai,
Iam new to Embedded systems.iam using at89c4051
i have a problem. Problem: P3.3 is connected to a bulb.

and my program is
sbit sw1 P3^3
void main()
{ P3=0xff;
for(i=0;i<10000;i++);
SW1=0;
while(1);
} output; Bulb conneted to p3.3, turned on
this program is working fine.

but when the same main()

void main()
{ int flag;
P3=0xff;
for(i=0;i<10000;i++);

flag=strcmp("INFOLINE","INFOLINE");

if(flag==0)
sw1=0;

while(1);
} when is dumped, its not working,
iam unable to understand, why this is not working.

please assist me in solving this.

Cordially,
Kiran Kumar D

0