i'm using P89V51RD2 MC for my project,i got a ready made code to use LCDs.i used reg51.h.i also defined the pins:
#define SCK P3^1
#define DAT P3^2
#define DC P3^3
#define CE P3^4
#define RES P3^5
the compiler is throwing the following error:undefined identifier P1,P2 etc.
how can i solve this problem?this kind of identifier is working AT89x51.h.how do i make it work for P89V51RD2.i'm not a pro,please help.Please see attached TXT for header.
#define SCK P3^1
#define DAT P3^2
#define DC P3^3
#define CE P3^4
#define RES P3^5
the compiler is throwing the following error:undefined identifier P1,P2 etc.
how can i solve this problem?this kind of identifier is working AT89x51.h.how do i make it work for P89V51RD2.i'm not a pro,please help.Please see attached TXT for header.
Attachments
-
4 KB Views: 16