#define DISPCMND PT0AD //DISPLAYCMD directed to port PTOAD
#define DISPDATA PT1AD //DISPLAYDATA directed to port PT1AD
/*
---
--- local function
---
*/
void SendDataAndCmnd(char dt,char c1,char c2,char c3) { //used to out data
DISPDATA = dt; //and command
DISPCMND = c1;
DISPCMND = c2;
DISPCMND = c3;
}
In the above source, I am getting an error C1815: PT1AD not declared (or type name) although mc9s12g64.h is included..
Would you please help me..
Hello,
I just posted your code in my new created G64 project. there is no compile error. see attached.
please refer this demo code to modify yours.
if this can't help, please send me the project with C1815 error message. I will check it directly from my side. thanks!
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------