32 bit Division without DIV32


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    CosMecc's Avatar
    CosMecc Guest

    Default 32 bit Division without DIV32

    Hi
    I've a problem, I'he to make this math:
    (a*b)/c
    so a*b because could be a 32 bit number, I've to use DIV32 command, but in may code a couldn't disable the interrupts.

    Does any one know a method to make a 32 bit numeber division without DIV32?

    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Are you using ON INTERRUPT, or ASM interrupts?

    If ASM, you don't need to worry about turning them off.
    DT

  3. #3
    CosMecc's Avatar
    CosMecc Guest


    Did you find this post helpful? Yes | No

    Default

    Unfortunately I use ON INTERRUPT

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well, if you can't disable the interrupts long enough to do a multiply and divide, then you shouldn't be using ON INTERRUPT. There are many statements that will take even longer.

    For Basic Language interrupts that won't interfere with DIV32, and won't wait for PBP, check this out.

    DT_INTS-xx
    http://www.pbpgroup.com/modules/wfse...p?articleid=19

  5. #5
    CosMecc's Avatar
    CosMecc Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for this link, it is very interesting.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. 32 bit data displaying on LCD
    By selahattin in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 15th September 2006, 13:33
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts