Connect with us

help on floating multiply in 8051

Discussion in 'Electronic Design' started by [email protected], Feb 22, 2004.

Scroll to continue with content
  1. Guest

    hi
    for a project i should multiply a port content that can be ( 1 to
    25000000)
    to 85.899346 whit assambly what should i do?
    notice that the input can be for example 13543.68 or so ! but ( at
    most 2 digit for floating in input so we don't have 23657.687)
    any help would be most appriciated
     
  2. Post Q at Comp.Arch.Embedded

    Cheers

    Klaus
     
  3. Ken Smith

    Ken Smith Guest

    This sounds more like a fixed point multiply.

    Multiply by 1441151882 then shift right by 3 bytes.

    Doing a 32bit * 32bit -> 64bit multiply is easy on the 8051.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-