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 All, I have the following code for a AT89s8252. When I compile it it gives more than 10 errors...
#include <REG52.h> org 0000h mov a,#0ffh end
You compile 'C' source with a compiler; You assemble assembly source with an assembler. Anyway, the assembler probably already has built-in definitions for standard SRFs & registers - hence the "already deefined" errors with the include file. You must either disable the built-in definitions (see the Manual), or remove the include file.
Thanx... Problem Solved.
Hi, The the to overcome this problem is to using the following
$NOMOD51 #include <AT898252.H> . . . END