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.

8bit vs 32 bit Microntroller

hioyo

Advanced Member level 4
Full Member level 1
Joined
Aug 18, 2021
Messages
116
Helped
0
Reputation
0
Reaction score
1
Trophy points
18
Activity points
898
May I know when to use a 32bit microcontroller compared to an 8-bit microcontroller?

Can someone tell an application where both 8-bit and 32bit microcontrollers work

Some other application where only 32 bit microcontroller will work
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,371
Helped
358
Reputation
734
Reaction score
538
Trophy points
113
Activity points
10,369
The questions are quite broad, but here is a stab at it :

1) 32 bit processors generally birthed because of the need for computation speed and address
space size expansion over the years.

2) 8 bit processors due to cost (smaller die size).

3) Historically one used smaller processor in low power applications and driving cost.
But recent advances using memory processes to design/build processors have 32 bit
parts competitive in power for some applications. But all things equal an 8 bit and 32
bit in same process the 8 bit will drive cost due to lower die size, hence cost.

4) 32 bit processors, in general, have more and higher performance peripherals.

5) Generally speaking it take's a 32 bit processor to implement stacks in COM systems,
like ethernet. Or moderate to high end graphics or advanced signal processing.


Regards, Dana.
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,492
Helped
4,757
Reputation
9,535
Reaction score
5,172
Trophy points
1,393
Activity points
155,815
Hi,

there is no general rule.
Usually a 32 bit machine will have more throughput, but not always. It depends o a lot of things like
* hardware
* clock frequency
* microcontroller type (floating point support...)
* code
* compiler (options)
* periferals
... and so on

Examples:
* Polling a port pin: usually needs one command ... independent of 8bit or 32 bit
* Transferring one 32 bit variable of data form A to B... usually takes 4 x (R & W) on a 8 bit machine and 1 x (R & W) on a 32 bit machine.
* doing I2C communication: will be almost identically fast on both machines, because the bottleneck is the I2C bus.
(unless the machine uses ISR or FIFO or DMA ... which depends on microcontroller type and code)

But on average applications the 32 bit machine will be faster than an 8 bit machine.

In the 1980ies many home computers ran on an 8 bit machine. Keyboard, maybe mouse, monitor, Memory, printer...

And you could wirte a letter with it, or play a game.
Nowadays with extremely high resolution monitors and streaming videos it makes no sense to try to run this on an 8 bit machine.

There is no strict limit and there is no application that strictly needs 8 bit or 32 bit... the question is:
* what are the requirements. (Very, very important! Decide the requirements carefully)
* and how much effort you want to put in

If you are concerned about processing power
... then often it makes more sense to start with the 32 bit machine and maybe pay a bit more hardware cost,
...than starting with 8 bit ... to find out it´s too slow ... and then switch to 32 bit.

Klaus
 

Aussie Susan

Advanced Member level 5
Advanced Member level 5
Joined
Jan 5, 2015
Messages
1,504
Helped
407
Reputation
814
Reaction score
448
Trophy points
1,363
Activity points
17,691
You select the one (8,16, 32-bit, architecture, built-in modules etc.) based on the task at hand.
8-bit controllers are often good for control systems and low-level communications whereas 32-bit devices are good for number-crunching (as some have FPUs in them as well).
32-bit devices can be slower in some instances - e.g. if you are sending out a stream of 8-bit characters then 3 of the 4 will not be aligned on a 32-bit memory address boundary which can lead to additional processing (often in hardware admittedly) to extract the byte that is wanted from the 32-bit memory word; if you have to do that 3 out for the 4 times then that can slow things down. It all depends on the capability of the microcontroller architecture.
Cost can also be a factor as is PCB real-estate.
Susan
 

tepalia02

Advanced Member level 4
Full Member level 1
Joined
Jul 13, 2022
Messages
101
Helped
5
Reputation
10
Reaction score
18
Trophy points
18
Activity points
594
May I know when to use a 32bit microcontroller compared to an 8-bit microcontroller?

Can someone tell an application where both 8-bit and 32bit microcontrollers work

Some other application where only 32 bit microcontroller will work
32 bit is usually preferred when you need better speed. Mostly for ML, image processing etc.
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,371
Helped
358
Reputation
734
Reaction score
538
Trophy points
113
Activity points
10,369
And not to be outdone there are SOC parts with Dual Core 32 bit
processors on them.

1657738173108.png



And lest we forget ARM 64 bit processors, see attached.


Regards, Dana.
 

Attachments

  • Arm-Cortex-M-Comparison-Table-v9.pdf
    93.5 KB · Views: 81
Last edited:

doraemon

Super Moderator
Staff member
Advanced Member level 4
Joined
Jun 21, 2009
Messages
1,196
Helped
284
Reputation
576
Reaction score
282
Trophy points
1,363
Location
Japan
Activity points
12,215
Hello!

RISC-V based systems are coming as well (you can even get open-source versions that run in FPGA devices!)

... but the hardest thing these days will be to find an FPGA.

Dora.
 

EastbayA

Administrator
Staff member
Junior Member level 3
Joined
Sep 5, 2014
Messages
28
Helped
1
Reputation
2
Reaction score
4
Trophy points
1,293
Location
San Francisco Bay Area
Activity points
2,101

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top