andrey_kiev wrote:
> Dear All
> Could you sugest how to implement digital integrator working above 2 kHz.
> In fact I need to obtain quadrature signal y[n] from given x[n].
An integrator will give you a 90 degree phase shift, but it'll have an
extremely strong frequency/amplitude characteristic. If you really want
a quadrature version of your signal than an integrator isn't the right
way to go.
> This means
> that it has to be some sort of IIR filter with perfect -90 deg phase
> response for frequencies above 2 kHz.
You can get a 90 degree phase shift with an IIR filter over some band of
frequencies, but (to my knowledge at least) this is most often done in
this day and age with FIR filters.
> Which structure should I take?
> What fs and what coefficients must be?
> What precision (digits after point)will be requared?
> Thank you
What are you really trying to do? How are you getting x?
You have a signal x and you want it's quadrature y -- OK. What's the
bandwidth of x, and does it go down to DC? What's the band over which
the y must be 'good'? What amplitude and phase variations can y have
from a perfect quadrature of x and still be good? None of your
questions make much sense in the absence of these requirements.
You'll find that your biggest constraint on a FIR filter length is going
to be the ratio between the lowest frequency that you need to maintain
good phase and gain properties and the sampling rate. Similarly, the
complexity of your IIR filter will be constrained by the ratio between
the lowest and highest frequencies where you need to maintain
'goodness'. Both of these complexity requirements will be eased or
tightened as you ease or tighten your requirements for phase and
amplitude accuracy.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" gives you just what it says.
See details at
http://www.wescottdesign.com/actfes/actfes.html