Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Dividing 24-bit number by 8-bit number with 8051

$
0
0
I'm trying to figure out how to speed up this code for my 8051 processor.
I'm currently using it to divide numbers by 10 so I can pick up digits to directly
print on an LCD. The part that takes the longest is this code. The reason why I'm using
24-bit dividend is because I want to display more than 5 digits for a number, and with
24-bits, I can go up to 8 digits.

Is there a way I can modify all this code so it can execute faster?

I tried removing subtraction lines with stars and that...

Dividing 24-bit number by 8-bit number with 8051

Viewing all articles
Browse latest Browse all 4923

Trending Articles