Rules | Recent posts | topic RSS | Search | Register  | Log in

difference in atmel 89c51 and 89c52



 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> difference in atmel 89c51 and 89c52
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Author Message
madhun



Joined: 13 Jan 2006
Posts: 20


Post26 Jan 2006 19:11   difference in atmel 89c51 and 89c52
tags: atmel 89c52 atmel 89c51 89c51 and 89c52 difference in 89c51 and 89c52 atmel 89c52 8o51 and 89c51 89c52 coding

Hi

can anybody explain the difference in atmel 8o51 series -89c51 and 89c52 which may affect coding if the microntroller is changed and in what respect will that affect.

Thanks
Back to top
View user's profile
silvio



Joined: 31 Dec 2001
Posts: 800
Helped: 90


Post26 Jan 2006 20:15   Re: difference in atmel 89c51 and 89c52
tags: software to program atmel 89c52 features of atmel 89c52 atmel 89c51 atmel 89c52 microcontroller interrupt 89c52 atmel 89c51 - features atmel 89c51 timer

89C51
• 4K Bytes of In-System Reprogrammable Flash Memory
• 128 x 8-bit Internal RAM
• Two 16-bit Timer/Counters
• Six Interrupt Sources

89C52
• 8K Bytes of In-System Reprogrammable Flash Memory
• 256 x 8-bit Internal RAM
• Three 16-bit Timer/Counters
• Eight Interrupt Sources

First of all both microcontroller has been discontinued by Atmel.

If your design is based on 89C51, you don't have to worry if it's changed later with 89C52. No changes are to be performed, neither software nor hardware (some minor settings in the hardware programmer device).
But if your software relies on 89C52 then simple looking at the features provided by both microcontroller will tell you in what aspect will changes affect your design if a replacement with 89C51 has to be done.
Back to top
View user's profile
ElecThai



Joined: 11 Jun 2004
Posts: 51


Post27 Jan 2006 3:54   Re: difference in atmel 89c51 and 89c52

http://www.atmel.com and www.analog.com

yes.Silvio you answer true
Back to top
View user's profile
lmtalsoul



Joined: 18 Jan 2006
Posts: 31
Helped: 3


Post27 Jan 2006 4:22   difference in atmel 89c51 and 89c52

Also, check this out

Code:
http://www.8052.com


Might be useful..
Back to top
View user's profile
bobsanjose



Joined: 14 Jan 2006
Posts: 231
Helped: 25
Location: SF-Bay


Post27 Jan 2006 9:45   difference in atmel 89c51 and 89c52
tags: atmel 89c52 atmel 89c51 89c51 and 89c52 philips atmel 89c51 89c52 eeprom atmel 89c52 89c52 atmel

Philips still manufactures the 89C51 and 89C52. One major difference though. Atmel used an EEPROM process, so the "Flash" is byte addressable. Philips uses a Flash process, no byte addressability. Otherwise a switch if needed should be pretty smooth.

Bob
Back to top
View user's profile
mmohamed15



Joined: 23 Mar 2005
Posts: 117
Helped: 5


Post28 Jan 2006 14:39   Re: difference in atmel 89c51 and 89c52

silabs also makes mixed signal 8051
Back to top
View user's profile
Code Warrior



Joined: 30 Dec 2004
Posts: 225
Helped: 7


Post28 Jan 2006 15:19   difference in atmel 89c51 and 89c52
tags: 89c51 and 89c52 89c52 ram 89c52 program 89c51 reprogrammable 89c51 ram 89s52 89c52

The 89C51 and 89C52 are not In System Reprogrammable as stated by silvio. 89S51 and 89S52 are In System Reprogrammable.
Back to top
View user's profile
silvio



Joined: 31 Dec 2001
Posts: 800
Helped: 90


Post28 Jan 2006 16:17   Re: difference in atmel 89c51 and 89c52
tags: atmel 89c51 89c51 bootloader at89c51 iap how to do programming on atmel at89c51 89c51 spi compatible programming atmel 89c51 through isp atmel reprogramable

Atmel 89C51 data sheet : 4K Bytes of In-System Reprogrammable Flash Memory
Atmel 89S51 data sheet : 4K Bytes of In-System Programmable (ISP) Flash Memory

I've emphasized in red the word Reprogramable. Atmel didn't claimed that 89C51 are Programable in the system (ISP), but Reprogramable

From their point of view, the low-voltage programming mode (+5v) provides a convenient way to program the AT89C51 inside the user’s system, while the high-voltage programming mode (+12v) is compatible with conventional thirdparty Flash or EPROM programmers.

At89S51 is ISP (In System Programmable) through SPI interace. There are not ISR (In System Reprogramable).
Like AT89C51 is ISR and not ISP.

As you can notice, it's only english. And it's not stated by me. It's Atmel's statement.

How about IAP (In Application Programming) ? I'm confident you know what a bootloader means.
Back to top
View user's profile
smercho



Joined: 13 Nov 2005
Posts: 8
Location: Bombay,India


Post28 Jan 2006 16:36   Re: difference in atmel 89c51 and 89c52
tags: atmel 89c2051 keil improper fixup interrupt improper fixup isr improper fixup keil using the atmel 89c2051 89c2051 keil interrupt using 89c2051

hi..
this is a bit offbeat , but has any1 tried to programme an atmel 89c2051 using a C code that uses interrupts for calling functions.
example: void check() interrupt 1 using 2

I am using keil to convert it into intel-hex format but the compilation gives an error saying IMPROPER FIXUP ...i figured out that it is trying towrite to memory locations beyond 2K( the on chip flash is 2K !!) . however on removing the ISR , it works fine

..help someone
Back to top
View user's profile
silvio



Joined: 31 Dec 2001
Posts: 800
Helped: 90


Post29 Jan 2006 2:00   Re: difference in atmel 89c51 and 89c52
tags: difference between 89c51 and 89c52 interrupt 89c52 difference between 89c52 and 89c51 interrupts 89c52 89c51 ram limit diff between 89c51 and 89c52 interrupts in 89c51

Hi Smercho

The best ideea is to start a new thread. In this one you won't be seen by the peoples who really can help you. This thread regarding difference between 89C51 and 89C52 it's not opened by smart peoples just because can't find any news or it's useless answering to a question for which you can find the answer just reading the datasheets.
And use a suggestive title for the thread.

Please type the full complains of compiler. Not only IMPROPER FIXUP... (segment and the offset of the offending instruction)
As you already noticed it's true that this kind of errors are due to the linker which cannot resolve the address of a branch instruction (like a LCALL - prohibited in 89C2051 - inside your ISR).

1. When you say "removing the iSR" are you completelly remove the code from your program ?. Or just keep the function code and declare it as not using interrupts.
There are another few questions :

2. What kind of memory model do you use ? If you use SMALL then CALL and JMP instructions are coded as ACALL and AJMP. Thus, if inside your ISR is called a function located beyond 2K limit of ACALL then you can get Fixup errors.
3. Did you included the STARTUP.A51 file into your project ?
4. What type of Code Optimization Level do you use ?

Please try to answer to this questions and come back in a new thread.
Is not necessary to mention you have been asked here.
Just try to give as many details as possible in order to be helped quickly and straight to the point.
Back to top
View user's profile
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> difference in atmel 89c51 and 89c52
Page 1 of 1 All times are GMT + 2 Hours


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS