SX
Microcontroller
Basic
Division
Math
Method
s
Divide:
8 bit by 8bit to 24bit floating point
AN575 format from
Nikolai Golovchenko
10 bit int by a fixed point divisor and result (7Q8 format)
by
Nikolai Golovchenko
"
16 bits by 8
from Lou Zher
16 bits by 8 with result in fixed point format Q16.16
by
Nikolai Golovchenko
16 bits by 16
from
Nikolai Golovchenko
24 bits by 16
from
Nikolai Golovchenko
24 bits by 16
from
Andy David
24 bits by 24
from
Tony Nixon
32 bits by 16 using 16 bits by 16
from
Nikolai Golovchenko
48 bits by 24
from
Nikolai Golovchenko
48 bits by 23
from
Nikolai Golovchenko
Binary Division by a Constant@
Try the
code generator
by
Nikolai Golovchenko
for Division by a constant.
See also: PIC Divide Routines (use the
PIC
MPASM source to
SX
SASM
Source Converter
by
Nikolai Golovchenko
)
http://home.netcom.com/~fastfwd/answers.html#PIC00094
from
Andrew Warren
: 16-bit by 8
http://home.netcom.com/~fastfwd/answers.html#PIC00064
from
Andrew Warren
: 8-bit by 4 PIC16C5x
http://www.myke.com/PICMicro/16bit.htm
16 bit by 8
http://www.dontronics.com/see.html#division
16 bit by 8
November 2003 MassMind newsletter
- 32 bit math routines