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.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top