doubledash
Technical User
Who can give me a short shpiel on the follwing: I have a 24bit input to a simple integrator (which is an accumulator that keeps adding the input to itself), then I multiply the accumulator with a constant gain (which right now is a 12 bit signed number). I have to make sure this final answer has a +-9.165 saturation limit.
my problem is keeping track of where the decimal point is (because i'm using a +-1 scheme where the decimal point is 1 bit in from the left). i have my acc 32 bits, my constant signed gain as 12 bits and i'm having trouble taking the correct bit slice from this to account for the integrator expanding to where the decimal point becomes 5 in from the left -- i know this because it saturates at +-25 right now).
does any of this make sense? any suggestions would be greatly appreciated. thanks in advance!!
my problem is keeping track of where the decimal point is (because i'm using a +-1 scheme where the decimal point is 1 bit in from the left). i have my acc 32 bits, my constant signed gain as 12 bits and i'm having trouble taking the correct bit slice from this to account for the integrator expanding to where the decimal point becomes 5 in from the left -- i know this because it saturates at +-25 right now).
does any of this make sense? any suggestions would be greatly appreciated. thanks in advance!!