LockedPIC18 32bit/16bit unsigned division

Author
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
2004/06/15 06:10:22 (permalink)
0

PIC18 32bit/16bit unsigned division

Hi all,
Do you have any idea/recommendation or source for 32/16bit unsigned divison in PIC18 assembly?
Regards
Erkan
#1

3 Replies Related Threads

    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: PIC18 32bit/16bit unsigned division 2004/06/15 07:41:28 (permalink)
    0
    ORIGINAL: ErkanE

    Do you have any idea/recommendation or source for 32/16bit unsigned divison in PIC18 assembly?


    Erkan,

    Good question. For 16 bit you can always borrow the source code in

    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011000

    or

    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011088

    Of course, those are made for the PIC16 or PIC17 respectively. So you have a bit of conversion, but not bad. I am currently using the bin to bcd routines.

    And of course you have the C17 math libraries here

    http://ww1.microchip.com/downloads/en/DeviceDoc/c17s2304.zip

    I must admit, it would be nice to see Microchip put out some more utility source for the PIC18 core.

    cheers,
    Tom

    cheers,
    Tom
    #2
    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: PIC18 32bit/16bit unsigned division 2004/06/17 00:10:49 (permalink)
    0
    Thank you Tom
    Cheers and Cheers from me too,
    Erkan
    #3
    stewart
    Super Member
    • Total Posts : 191
    • Reward points : 0
    • Joined: 2004/01/23 00:11:24
    • Location: Colorado
    • Status: offline
    RE: PIC18 32bit/16bit unsigned division 2004/06/18 18:45:03 (permalink)
    0
    I have to aggree with 'temberson'. Why hasn't Microchip had "F.J.Testa" re-write the math libraries SPECIFICALLY for the 18 series chips. Not being a math expert, I don't know, but I seems that at least the multiply routines could take advantage of the hardware multiply of the 18 series

    Stewart
    When in doubt,
    READ, REAd, REad, Read the data book.
    #4
    Jump to:
    © 2017 APG vNext Commercial Version 4.5