8 bit and 32 bit MCU

8 Bit and 32 Bit Microcontrollers

The 8 bit MCU technology has been around for about half a century. These devices provide fast and easy deployment for small embedded projects. On the other hand, we have a more recent 32 Bit MCU technology, which has gained a lot of popularity. These devices offer almost everything, ranging from high processing power to rich peripherals, along with easy and fast development tools.

So which microcontroller to select? 8 bit or 32 bit?

When we select a microcontroller, we need to chalk down what our required specifications are. So let’s compare them both.

Architecture

The 8, 16 or 32 bit basically defines the size of internal buses and registers of the microcontroller. So, an 8 bit MCU will have 2^8 (=256) bytes of addressable space while a 32 bit MCU will have 2^32 (=4294967296) bytes or 4GB of addressable space. Most 8 bit microcontrollers have 16-bit address line allowing them to have 2^16 (=65536) bytes or 64KB of memory. So more bits a microcontroller has, more memory you can address. If you application requires RAM or ROM size above 64K bytes, a 32-bit microcontroller is your only resort.

8 bit and 32 bit MCU

Each IO ports for a 32 microcontroller has 16/32 pins per port, unlike 8 pins per port for an 8-bit microcontroller. But this aspect is trivial and can be neglected as a benefit for small applications. But if you are looking out for more IO pins, 32-bit microcontrollers will serve you well. A typical 8-bit microcontroller will not have a pin count over 64 pins whereas 100-144 pin count is very common in a 32 bit MCU.

Cost

8-bit microcontrollers are relatively cheaper than their 32-bit counterparts. But the recent surplus supply and increasing competition within the 32-bit MCUs market has caused a plunge in their rates. Even though the price difference has reduced drastically over the previous year, a small difference in about 40-50 cents, can lead to higher profits when deployed in large numbers.

Ease of Development

8 Bit MCUs have an upper hand in case of ease of development. They have few registers to tweak with making the development process easy. For example, a typical 32-bit ARM device has a lot of clock settings for the core. These settings are required to be set before the MCU starts operating. This can be quite easy for 8-bit MCUs, where you can do around with just initializing the stack pointer, which takes about 4 lines of code (for example Atmel’s tinyAVR and megaAVR). But 32 bit MCU manufacturers are doing their best to decimate this stereotype and are coming up with default templates and libraries, making the development process simpler and faster. Just include these files in your project, and all initializations are taken care of.

Performance

32-bit microcontrollers provide incredible computation power as they have 32-bit registers. If you are programming in assembly language, the register-size limitation for an 8 bit MCU becomes very evident. For example, we want to add two 32 bit numbers on an 8-bit microcontroller. We will have to divide the number into parts of 8 bit and calculate them differently, making our code more complex. If we are programming in C, this will be largely opaque, but off course, the underlying compiled code will be much long for 8 bit. So 8-bit microcontrollers are not a prudent choice for an application involving high computations.

But many applications require little or no computation power. For example a home automation application, which receives data from a sensor or a user and operates a relay. For such application considering the cost and development ease, one may choose an 8-bit microcontroller.

Peripherals

Traditional 8-bit MCUs lacked more peripherals, limited by the addressable memory space. As you increase on-chip peripherals, the registers to control them need to be addressed in the same available memory. On the other hand 32-bit MCUs are rich in peripherals, providing multiple ADCs, DACs, multiple timers, dedicated hardware for communication etc.

There are a few exceptions of 8-bit MCUs which provide rich peripherals as well.

Power Consumption

Considering power consumption while selecting a microcontroller depends upon its ultimate application. Like in the power electronic industry where I work, we deal with huge capacitors and resistances. A few milli-Amps here and there don’t make much a difference. Power consumption statistics are vital for battery operated systems. Saving few milliamps, may drastically improve the products battery life.

When talking about Power consumption, we need to consider two aspects: active power consumption and static power consumption. The amount of time the microcontroller will spend in active mode versus static mode contributes significantly to the overall application power budget. If your MCU application includes a larger sleep time, you need to emphasise more on static power consumption.

8-bit microcontroller architecture is known to consume less current as there are few leaky transistors. Moreover, this technology has been for over few decades and has seen a remarkable improvement in terms of power consumption. 32-bit MCUs, on the other hand, consume relatively more power, though it may be in terms of few milli-Amperes.

But with the advent of Cortex M0+ 32-bit microcontrollers, things are bound to change. This technology was introduced in 2012 and is considered to have the most energy-efficient ARM processor as of 2016.

Market study

Looking at the advantages of 32-bit microcontroller, comparing the two would be like comparing apples and oranges. But to our surprise, 8-bit microcontrollers still hold a major share in the embedded worlds. In fact, they dominated the microcontroller market until 2014. According to Gartner.com, the overall microcontroller revenue declined in 2015 due to weak demand of industrial and automotive electronics market. 32 bit MCUs saw a strong growth due to smart cards and broad-based IOT applications and exceeded the 8 bit MCU market for the first time.

In a market where 5 years be like a few generation old, why hasn’t this age old 8-bit MCU technology waned?

The answer has little to do with it being 8 bit. For many developers and engineers, it’s about familiarity and ease of development. They are well-acquainted with this technology and employing a different one may be risky for business. This is the reason why manufacturers employ 8-bit MCUs in household appliances like air conditioners, washing machines, refrigerators, and dryers. It’s why car manufacturers still use it in automatic windows, locking system, mirrors, seats and interior lightings. It’s why engineers and local manufacturers still use them for motor control and other countless low-end applications.

Conclusion

To cut it short, if you application requires more processing and faster execution, 32 bit should be your choice. If you system needs less computation power, along with lower cost and energy efficiency 8-bit MCUs can be preferred. Though trends are changing, and mostly every embedded developer and engineer is switching to the 32-bit world.

Note: these are the author’s opinions and may vary from person to person.

16 thoughts on “8 Bit and 32 Bit Microcontrollers”

  1. I am only commenting to let you understand what a superb experience our daughter obtained reading through your blog. She noticed a lot of issues, including how it is like to have an amazing helping mood to get other individuals easily completely grasp selected tortuous topics. You truly surpassed my desires. Thanks for producing those interesting, trustworthy, explanatory and in addition fun tips about your topic to Lizeth.

  2. Thanks , I’ve just been searching for information about this topic for a long time and yours is the best I’ve discovered till now.

  3. I would like to many thanks for the efforts you may have place
    in scripting this website. I’m hoping to consider the identical high-grade blog articles on your
    part in the foreseeable future at the same time.
    In fact, your creative writing abilities has encouraged me to have my, personal blog now ;
    )

  4. Hello there, just became aware of your website through Google, and located that it’s truly informative.
    I’m likely to be aware of brussels. I will appreciate should you continue this in the
    future. Many men and women be benefited from your writing.
    Cheers!

  5. Hi there everyone, it’s my first pay a quick visit
    at this website, and article is actually fruitful
    in favor of me, keep up posting these types of articles
    or reviews.

  6. I am sure this paragraph has touched each of the internet viewers, its really really
    good post on strengthening new blog.

  7. You could certainly see your enthusiasm from the article you write.
    The entire world hopes for more passionate writers like
    you who usually are not afraid to note the direction they believe.
    All the time follow your heart.

  8. An outstanding share! I have just forwarded this onto a friend who
    had been conducting a little homework on this.
    And he in fact ordered me breakfast due
    to the fact that I discovered it for him…
    lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending the time to talk about this issue here on your
    internet site.

  9. Admiring the dedication you put into your website and in depth information you offer.
    It’s good to come across a blog every once in a while that isn’t the same old rehashed material.

    Great read! I’ve bookmarked your site and I’m adding your RSS
    feeds to my Google account.

  10. I have got to thank you for the efforts you may have put
    in penning this site. I am hoping to find out a similar high-grade articles or content on your part later on also.
    Actually, your creative writing abilities has encouraged me to
    obtain my, personal website now 😉

  11. whoah this weblog is fantastic i like studying your articles.
    Keep up the great work! You recognize, lots of people
    are looking round for this info, you can help them greatly.

Leave a Reply

Your email address will not be published. Required fields are marked *