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.
Is there a STANDARD HEADER file that can be used when writing an assembly language program for AD conversion. Currently I am having to declare the address of port lines and ADDCON1 etc. Is this standard?
Is there a STANDARD HEADER file that can be used when writing an assembly language program... Yes. Just include the C header file for the part you are using. The assembler can include C header files to define the SFRs and SBITs. Jon
Thank you I have tried that, but each time I build the project I get an error which states that the file cannot be found. Maybe it is the syntax I am using?
$include "reg517a.h"
Try #include. Jon
Thanks but tried that already and it just results in a syntax error.
I just tried it for the Atmel AT89X51 and it worked just fine.
$NOMOD51 #include <AT89X51.H> cseg at 0x4000 nop nop nop mov a, P1 nop nop nop end
Remember, the #include <c-header> feature is new since A51 Version 6. So it will not work for older Version 4 or 5 tools.
That would explain it - we are currently in the process of updating and upgrading software so that should resolve the problem. Thank you