- This topic has 3 replies, 4 voices, and was last updated 9 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › reg51.h
Hi can any one tell me if there is a difference between reg51.h “80c51″ and reg51.h”89c51” why i’m asking is i done a project included the reg51.h file compiled no errors when i run it in proteus no response looking at the reg51.h header file i see it is for a 80c51 where as the project i done is with a 89c51 mcu.
If there is a difference where can i then get the header file for the 89c51mcu.
any help will be appreciated
thanks
ernest
No! In keil uVision it is generic header file which can be used for all 8031 and 8051 microcontrollers. 89c51 is 8051 based microcontroller so you can use this for it. header file simply defines register addresses in hexadecimal so you dont have to remember hexadecimal value of different registers like Accumulator has hexacecimal value of 0xE0.
89C51 means it has FLASH memory inside. 80C51 means ROM inside. this is the difference
if KEIL you can use reg51.h for entire family of MCS51 like
89C52/89S52/89C4051/89C2051 etc all
this header file works with all 8×51 series…