kirgizz
Member level 2
l_sub(l_num,l_denom);
Hi,
could someone give me a tip or a pair of approximation formulas for implementing division in software? (-> using assembler)
About application:
I need to acquire the frequency of an input TTL-signal. I use a timer and measure period of the input signal. Then the measured value is divided by reference value (DSP clock). My design is using 32 bit fixed point data. Measured value and the divider are unsigned integers.
I think, my DSP has a ROM-based table of reciprocal values, but it's not accurate enough. I suppose, it can be implemented by shifting,addition and multiplication.
Does it???
Thank you in advance
Hi,
could someone give me a tip or a pair of approximation formulas for implementing division in software? (-> using assembler)
About application:
I need to acquire the frequency of an input TTL-signal. I use a timer and measure period of the input signal. Then the measured value is divided by reference value (DSP clock). My design is using 32 bit fixed point data. Measured value and the divider are unsigned integers.
I think, my DSP has a ROM-based table of reciprocal values, but it's not accurate enough. I suppose, it can be implemented by shifting,addition and multiplication.
Does it???
Thank you in advance