We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, i'm kinda new to this so you'll have to excuse my ignorance. I'm using the MC AT89C4051 and I need to program it, so I got the at89x051.h and when I compile my program (with the #include<at89x51.h> ofcourse) with Microsoft Visual C++, I get the following errors:
error C2146: syntax error : missing ';' before identifier 'SP' error C2501: 'sfr' : missing storage-class or type specifiers fatal error C1004: unexpected end of file found
And here is where I got the header file from: www.mcuok.com/.../AT89x051.H
Any help would be greatly appreciated. Thanks in adavance, Alex.
"And here is where I got the header file from: www.mcuok.com/.../AT89x051.H "
Hmmm... what are you doing downloading it from there?
Keil publish their header files, and you can download them direct from Keil for free. The genuine Keil page for the AT89C4051 is here:
http://www.keil.com/dd/chip/3030.htm
You can also download the Evaluation version of the Keil tools for free:
www.keil.com/.../c51.htm
Thank you very much. :)