Help me fix 8051 coding issue

Status
Not open for further replies.

madhun

Junior Member level 1
Joined
Jan 13, 2006
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,424
Dear All

Can anybody assist if code mentioned below is feasible as its showing cmpile time error.

sbit P21 = 0xA1;
sbit P22 = 0xA2;
#define HS_FS_LED P20
#define RES_OV P21

How should i write to remove the error.

Thanks
madhu
 

Re: coding issue 8051

#define RES_OV P21
This could be the line thats causing trouble. Because RES_OV is a macro and P21 is a variable.
change this to #define RES_OV 0xA1.

~Kalyan.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…