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

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

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