??? 01/15/08 03:03 Read: times Msg Score: 0 -1 Off-Topic +1 Underrated |
#149454 - 32bit divide and mult Not using the Libraries? |
I need to do an Unsigned Long Divide and Multiply in an interrupt with a PIC16F916. The stack says no. Any opinions on options. Try to fake it in C? The 32 bit add and subtract are OK.
I basically have: INT16U_A = INT16U_A * 100 / INT16U_B and: (INT16U_A * 6) / INT16U_B + INT16U_C; BTW: Yes I need to do this in the interrupt. This is an SMBus slave. The Interrupt must work fast, and the main loop is slow background tasks. Cross posted at the Hi-tech C Forum. |
Topic | Author | Date |
32bit divide and mult Not using the Libraries? | 01/01/70 00:00 | |
Hm, as far as I can see ... | 01/01/70 00:00 | |
Yes 24 bits | 01/01/70 00:00 | |
is there any predictible relationship between... | 01/01/70 00:00 | |
Math in Interrupt Context | 01/01/70 00:00 | |
SMBus clock stretching | 01/01/70 00:00 | |
Slicing Prob Not Necessary | 01/01/70 00:00 | |
True except for AT RATE | 01/01/70 00:00 |