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.
I am using an AT89c51rc2 and want to know which include (*.h) file to use. Which should I start with?
Maybe I should re-phrase: I am using assembler to code with (A51). Which of the includes that comes with Keil should I use for the AT89c51RC2 device?
"I am using assembler to code with (A51)." So why did your original post specifically say "include (*.h) file?!" Anyway, doesn't the assembler accept C51 headers? Check the Manual
I'm new at this and would appreciate some help, not criticism.
"I'm new at this and would appreciate some help, not criticism." Ok, I'll try again. Go to Atmel's website and download the include file for your derivative. Which part of the above statement are you having difficulty understanding? Stefan
I think that the Keil A51 Assembler will accept the Keil C51 header files. To confirm this, and check for any limitations/restrictions/etc, please see the Keil A51 Assembler Manual.
"I think that the Keil A51 Assembler will accept the Keil C51 header files." You are indeed correct. Stefan
"You are indeed correct." These things happen occasionally! So that takes us back to my original answer: http://www.keil.com/dd/chip/3230.htm Or, to be more precise, http://www.keil.com/dd/docs/c51/atmel/reg51xd2.h
Thanks for the explicit answer.
I have another "stupid" question: why is the name of the uC header file called reg51xd2 and not the uC name from the kompany AT89c51RC2?
"What is the significance of the "xd2" vs. the "rc2" ?" It's probably a generic include for a number of similar variants. For pity's sake, why don't you just go and download the correct file from Atmel? Look, here's a link: http://www.atmel.com/dyn/products/product_card.asp?part_id=2854 Then it'll even have the right name and the right SFRs at the right addresses. Stefan
why is the name of the uC header file called reg51xd2 and not the uC name from the kompany AT89c51RC2? because that header will cover AT89C51Rx2 and P89C51Rx2 where 'x' can be A, B, C or D. Coming to think of it Atmel also has a series with another preface than 'AT' Erik