Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Algorithm with fixed-point multiply and dividing

Status
Not open for further replies.

ali_th

Member level 3
Joined
Mar 30, 2007
Messages
60
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Activity points
1,630
Hello my dear friends
I need an algorithm that act flouting multiply and dividing with fixed point system. All register have 32 bits.
Thanks
 

hello my dear friends
in my project i need to have muliply and dividing 32 bit floating point.but i have ic that can muliply and dividing in fixed point. i need an algorithm that does it.
thank you.
 

You can divide the floating nuber into 2 parts, the exponent and the magnitude. For the magnitude, you can use the multiply and divide instructions as for integer and fixed points. For the exponent, you can use the add and subtract instructions (as integers).
 

with language r u using if it is or basic then all of these high level compilers supports floating point calculation .........in case of assembly check math tutorial in www.8052.com i think it will help.
 

thanks for your guidance .
i need more goid. i dont notice your mean. supose that x and y are 32 bit fixed point register and i want to have floating multiply z=x*y.
 

You lost me :(
Multiplying two 32 bit integers will result in a 64 bit integer, so why do you need floating point?

Floating point is only needed with division.

Please be more specific on what you want, need to do on which controller.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top