Topic : Include-File For The AT89C2051

Forum : 8051

Original Post
Post Information Post
April 13, 2007 - 7:01pm
Guest

Hi,

I'm using the AT89C2051, and I can't find the include-file in the subdirectory of Atmel.
What's the name it would have, 'cause I don't know.
I found a header-file on the internet, for the AT89C2051 but I don't want to program in C,
so I need a INC-file that I can include in a .a51 document.

Hope u can help me out,
grtz,

Phil

EDIT: I think I already found it, I included REG52.INC
Plz tell me if that is wrong.

Replies
Post Information Post
+1
0
-1
April 16, 2007 - 9:06am
Guest

reg52.inc will most probably suit your needs. If it lacks some SFR definitions specific to the AT89C2051, you can always create an include file by yourself: make a copy of reg52.inc and add the corresponding SFR definitions following the processor datasheet.

regards,
Lionel