Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

movie_freak

Member level 5
Joined
Mar 20, 2007
Messages
89
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Activity points
1,943
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?
 

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
 

Re: difference between 8bit,16bit,32bit

hiiii

when you write your coding using assembly level programming there is lot of difference between 8-bit and 16-bit micro controller.Because the instruction set is different in 8-bit and 16-bit ucs.

if you write your coding in high level programming language like C or Embedded C there is no much difference between them except libraries and register declaration whether 2-bytes or 4-bytes.
 

Re: difference between 8bit,16bit,32bit

hiiii

when you write your coding using assembly level programming there is lot of difference between 8-bit and 16-bit micro controller.Because the instruction set is different in 8-bit and 16-bit ucs.

if you write your coding in high level programming language like C or Embedded C there is no much difference between them except libraries and register declaration whether 2-bytes or 4-bytes.

This is a 2 year old thread you have reopened, the chances are the op now has the details they need.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top