16F628 :unsigned 24 x 16 multiply and 32 / 24 divide ?

Author
jfb
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2004/01/14 08:11:00
  • Status: offline
2004/01/14 08:18:25 (permalink)
0

16F628 :unsigned 24 x 16 multiply and 32 / 24 divide ?

Hello,

For a 16F628:

Where can I find source code for an unsigned
multiplication 24 bits x 16 bits --> 40 bits ?

also,

where can I find source code for an unsigned
division 32 bits / 24 bits ---> 32 bits ?

Many thanks for your help,

Jean-Francois
< Message edited by jfb -- Jan. 14, 2004 8:30:23 AM >
#1

3 Replies Related Threads

    Pat
    New Member
    • Total Posts : 30
    • Reward points : 0
    • Joined: 2003/12/10 05:23:18
    • Location: France
    • Status: offline
    RE: 16F628 :unsigned 24 x 16 multiply and 32 / 24 divide ? 2004/01/14 09:09:49 (permalink)
    0
    hi

    check the application note AN617.
    you can find source for fixed point routines.

    Patrick
    #2
    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: 16F628 :unsigned 24 x 16 multiply and 32 / 24 divide ? 2004/01/14 23:01:39 (permalink)
    0
    Go to Microchip site and click on application notes link.Then in application by function link click on Math.I think AN526 is the relevant one for you.
    24 x 16 unsigned multiplication will be FXM2416U and will be found in the file fxm46.asm.Similarly,32 x 24 unsigned division will be FXD3224U and should be found in the file fxd24.asm.
    #3
    jfb
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2004/01/14 08:11:00
    • Status: offline
    RE: 16F628 :unsigned 24 x 16 multiply and 32 / 24 divide ? 2004/01/15 05:44:12 (permalink)
    0
    OK, thank you for the answers.
    FXD3224U and FXM2416U are OK for my application.
    I test it this morning (in FRANCE) with MPLAB. No problem.

    Again, many thanks !

    Jean-Francois
    #4
    Jump to:
    © 2017 APG vNext Commercial Version 4.5