Jan 31, 2006 #1 M 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
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
Jan 31, 2006 #2 K kalyanram Advanced Member level 4 Joined Jan 3, 2005 Messages 102 Helped 13 Reputation 26 Reaction score 4 Trophy points 1,298 Activity points 1,012 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.
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.