Multibyte Arithmetic In An 8-Bit World

May 25, 2006
Why an 8-bit microcontroller needs more than 8-bit arithmetic: A wide range of control applications uses data with more than 8 bits of precision. Most 8-bit microcontrollers can handle limited, multibyte operations such as addition and subtraction throug

Why an 8-bit microcontroller needs more than 8-bit arithmetic:

A wide range of control applications uses data with more than 8 bits of precision. Most 8-bit microcontrollers can handle limited, multibyte operations such as addition and subtraction through the use of subroutines and the arithmetic unit's carry flag. More complex operations can be built from these. Tradeoffs include performance and code space for the subroutines. Performance tends to be the biggest limiting factor since doubling the number of bytes in an operation typically translates to much more than doubling the execution time. Reducing execution time means moving to multibyte hardware arithmetic units. Some chips have multibyte pointer registers designed to improve memory access, but they tend to have limited arithmetic functionality.

Click here to download the PDF version of this entire article.

Sponsored Recommendations

The Importance of PCB Design in Consumer Products

April 25, 2024
Explore the importance of PCB design and how Fusion 360 can help your team react to evolving consumer demands.

PCB Design Mastery for Assembly & Fabrication

April 25, 2024
This guide explores PCB circuit board design, focusing on both Design For Assembly (DFA) and Design For Fabrication (DFab) perspectives.

What is Design Rule Checking in PCBs?

April 25, 2024
Explore the importance of Design Rule Checking (DRC) in manufacturing and how Autodesk Fusion 360 enhances the process.

Unlocking the Power of IoT Integration for Elevated PCB Designs

April 25, 2024
What does it take to add IoT into your product? What advantages does IoT have in PCB related projects? Read to find answers to your IoT design questions.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!