Electronic – Help a beginner who wants to start microcontroller coding

atmelavrembeddedmicrocontroller

I see lot of chip from Atmel company like AT89C2051,AT89S52,Atmega32,P89V51RD2.

Suppose I write a code for Atmega32 which blink one LED after 10 milliseconds.
Can I use the same code for AT89C2051, AT89S52, P89V51RD2 if I change the port?

So if I buy one USB ISP programmer for Atmega32 MCU can I use it to program AT89C2051, AT89S52 also? Or does anybody compare the chip in terms of compiler, programmer, coding language, development board etc.?

Best Answer

The Atmega Atmega32 and AT89S52 are ISP capable. But they need different programmer. AT89ISP (see here) for AT89S52 and e.g. AVRISP mkII for Atmega32. For a list of supported devices see the product page. The AT89C2051 isn't ISP programable at all, again see product page.

The tooling support for the megaAVR and tinyAVR series are the same. You could use AVR Studio 5. As for the other devices you have listed I can not say if you can use AVR Studio for them (because I never used those devices).