electronics forum

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

Difference in Writing Code between 8-bit/16-bit/32-bit Micro


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Difference in Writing Code between 8-bit/16-bit/32-bit Micro
Author Message
movie_freak



Joined: 20 Mar 2007
Posts: 81
Helped: 2


Post09 Jun 2009 8:41   

difference between 8bit,16bit,32bit


What are the key differences and things to look out for when shifting from one class of micro controllers to other especially between 8-bit to 16-bit?
Back to top
Google
AdSense
Google Adsense




Post09 Jun 2009 8:41   

Ads




Back to top
arthur0



Joined: 28 Nov 2003
Posts: 73
Helped: 9
Location: Stockholm, Sweden


Post09 Jun 2009 10:07   

8 bit,16bit,32 bit differnce


If you write assembly code, everything is different, including the instruction set, so I’ll assume you plan to write code in a higher level programming language (such as C), to give some meaning to the question.

Well, in C there’s virtually no difference, except when you optimized your code for a specific architecture or, possibly, when you do bit manipulations and communications, where you’ll need to specifically control the size of your variables (‘int’ won’t do since it can be 2 or 4-bytes long).
There may also be the issue of aligning your structures in memory and the impossibility (or inefficiency) to do accesses from oddly aligned addresses on some architectures, but if you write portable code, the compiler transparently takes care about that.
Other than that, I can’t think o anything more to add.

Arthur
Back to top
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
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Difference in Writing Code between 8-bit/16-bit/32-bit Micro
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Whats the difference between 32 bit os and 64 bit os (3)
Difference between 8 bit and 16 bit UC...process POV (1)
What is the difference between PC's - 32 bit, 64 bit (6)
Correct 3 bit error in 7k bit length code? (3)
Porting code from 8-bit to 32-bit platform (2)
8-bit * 10-bit multiplier verilog code (1)
change 4 bit to 8 bit lcd code (2)
what is difference between 8 n 64 bit mp (4)
Writing code for different bit rates in one of application (2)
How do I know whether 8-bit or 16-bit MCU shall be adopted? (2)


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