Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 2nd May 2008, 09:53 AM   (permalink)
Default migrating from 8051 to AVR!

Hello fellows,

I just want to announce to the community that my new tutorial about migrating from 8051 to AVR microcontrollers is finally finished. Many have asked me for it, so here it is. I just hope that i won't find those 15 pages stolen (copy/pasted) on another website in two days!

here is the link: http://www.ikalogic.com/tut_8051_to_avr.php

Hope you like it.

comments are welcome.
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline  
Reply With Quote
Old 2nd May 2008, 10:46 AM   (permalink)
Default

Hi Ika I'm not an ATMEL fan but I really like your work.It is very useful for learners.

Your site is one of best ATMEL sites.Keep up the good work.

But I want to show an ATMEL site which involved in world class projects.May be you can get some ideas from it.I also took many from it.

http://www.microsyl.com/
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline  
Reply With Quote
Old 2nd May 2008, 07:07 PM   (permalink)
Default

Hey Ika,

Looks great! It informed me of a few different things about the AVRs I hadn't known. I've cut my teeth on 8051s and I'm looking forward to having some time to move up to AVRs.


Torben
Torben is online now  
Reply With Quote
Old 2nd May 2008, 11:28 PM   (permalink)
Default

Quote:
Originally Posted by Torben
Hey Ika,

Looks great! It informed me of a few different things about the AVRs I hadn't known. I've cut my teeth on 8051s and I'm looking forward to having some time to move up to AVRs.


Torben
being an old 8051 fan myself, i'll be more than glad to assist you -in case you need- during your migration!
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline  
Reply With Quote
Old 3rd May 2008, 07:11 AM   (permalink)
Default

Comments referring to your webpage on AVR:

Quote:
In need, there no difference between ATMEGA8, ATMEGA16, and ATMEGA32 but the size of the memories (FLASH and EEPROM).
Only true for 40-pin Mega16 and Mega32 but Mega8 has only 28-pins so will come with less I/O pins available.

Quote:
IF you're using the ATMEGA16 right out from the box, it will be still configured to work on the internal 1Mhz oscillator, causing the timer to overflow every 0.26 seconds. Hence the following routing will be precisely executed every 0.262144 seconds:
Even with a 1MHz crystal one will not get exactly 0.266144 second, albeit with an internal RC oscillator. Just stick with 0.26 second.

Quote:
Some AVR microcontrollers however are not directly supported by the functions provided by WinAVR like the ATMEGA48 or the ATMEGA168, because they require different EEPROM handling algorithms.
Are you sure you're not looking at old webpage material on the web? I checked the avr-libc that comes with WinAVR and this is what I have found.

"Presently supported are two locations of the EEPROM register set: 0x1F,0x20,0x21 and 0x1C,0x1D,0x1E (see __EEPROM_REG_LOCATIONS__)".

Mega48/88/168 eeprom registers are located at 0x1F,0x20 and 0x21.

avr-libc eeprom declarations
__________________
L.Chung
eblc1388 is offline  
Reply With Quote
Old 3rd May 2008, 11:15 AM   (permalink)
Default

Quote:
Originally Posted by eblc1388
Comments referring to your webpage on AVR:



Only true for 40-pin Mega16 and Mega32 but Mega8 has only 28-pins so will come with less I/O pins available.



Even with a 1MHz crystal one will not get exactly 0.266144 second, albeit with an internal RC oscillator. Just stick with 0.26 second.



Are you sure you're not looking at old webpage material on the web? I checked the avr-libc that comes with WinAVR and this is what I have found.

"Presently supported are two locations of the EEPROM register set: 0x1F,0x20,0x21 and 0x1C,0x1D,0x1E (see __EEPROM_REG_LOCATIONS__)".

Mega48/88/168 eeprom registers are located at 0x1F,0x20 and 0x21.

avr-libc eeprom declarations
Thanks a lot for the constructive comments.. i'll make sure to correct that!

thanks again!
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
What is a good AVR programmer with debug & HV programming? blueroomelectronics Micro Controllers 19 13th March 2008 01:53 AM
8051 Microcontroller (Urgent Help) UAE_Engineer Micro Controllers 5 22nd March 2007 11:13 AM
Could I get away with this? (8051 + AM29F010B) mstechca Micro Controllers 0 9th March 2006 02:04 AM
interfacing 16*16 matrix display with 8051 pmphilip Micro Controllers 0 1st February 2005 03:47 AM
8051 "data" storage within program memory - how? L0D|Mr_B Micro Controllers 1 11th January 2004 02:56 PM



All times are GMT. The time now is 10:17 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.