On Thu, 26 Jan 2012 12:58:59 -0800, spflanze wrote:
On Jan 26, 7:08 am, George Herold <gher...@teachspin.com> wrote:
On Jan 26, 2:37 am, Tim Wescott <t...@seemywebsite.please> wrote:
On Wed, 25 Jan 2012 21:46:51 -0800, spflanze wrote:
I need to design a sine wave synthesizer for six channels. Each
channel must have a different frequency and be an exact multiple of
1Hz. Frequency ranges are from 100Hz to 1Khz.
I will do this by filtering out the harmonics of a square wave with
an MAX294 switched capacitor filter:
http://datasheets.maxim-ic.com/en/ds/MAX293-MAX297.pdfIwillneed to
clock each of the six filter chips at approximately 167 times the
frequency of the square wave to be filtered. This is to get the
third harmonic in the notch shown at 1.8kHz in the MAX294 frequency
response curve on page 4.
Before I look into programing the dividers and timers into an FPGA
to synthesize these 12 frequencies from a single reference
frequency I am looking for off the shelf logic that can do this in
just a few chips. What can you suggest?
The sine waves will be used to drive LEDs that illuminate optrodes..
It is expected there will be a small amount of light crosstalking
into the other channels. The crosstalk will be eliminated by FFT on
the output of the photodiode's TIA. Maximum suppression of
crosstalk will happen when the channel frequencies are a multiple
of 1/T where T is the length of time the transform is done over. T
can be 100 ms, 200 ms, 500 ms or 1 s.
I suggest that you ditch the idea of doing it with a switched
capacitor filters and frequency synthesis, and instead do it by
direct digital synthesis and some ADCs. One reasonably fast
microprocessor (32-bit ARM Cortex) should be able to handle six
channels with ease.
--
Tim Wescott
Control system and signal processing
consultingwww.wescottdesign.com-Hidequoted text -
- Show quoted text -
I've only used a switched cap filters once. LTC1063. There were (what
we called) intermodulation distortion at the ~45-50dB level. It took a
while to identify the SCF as the source.
Switched cap filters sound so nice 'in theory'.
To the spflanze; why so low frequencies? Wouldn't it be easier to work
up at maybe the 10kHz range... and put 1kHz (or so) between channels?
And then forget about the harmonics. Or one nice analog low pass after
the photodiodes to kill them all.
George H.
The frequencies are chosen where I expect the noise in the system to be
lowest. This is above the TIA's 1/f noise corner and beneath the zero
created by the capacitance around the TIA's inverting input and feedback
resistor. The frequencies of the six channels are not the same because I
am expecting a little bit of the LED light to crosstalk between
channels. All six optrode chemistries are on the same glass slide.
The six frequencies must be close together because they must all fit
between the 1/f noise corner and the zero. If I use a divide by N
counter, choose only those output frequencies that evenly divide into
the reference frequency, have a large enough input reference frequency,
and enough bits in the the counter, I will have enough frequency
choices.
I am not using a DDS because of the quantization noise. If I use a DDS
with a 10 bit DAC its quantization noise will dominate. It is white
noise that will appear within the bandwidth of the FFT so there is no
filtering it out. I would be using a 16bit AD7606 without the benefit of
its 16bit quantization noise. The quantization noise calculation I have
done shows fewer bits will cause quantization noise to dominate. I do
not know a 16 bit DDS chip. Available 14 bit DDS chips consume too much
power.
My opinion on whether the quantization noise output by a DDS is white or
not has changed a few times. After looking at the figure 20.3b on pdf
page 4 of:
http://oldweb.mit.bme.hu/books/quantization/spectrum.pdf(I have
recently gotten a copy of this book have have yet to fully read it.)
and also reading the conclusion at:
http://www.dsplog.com/2007/03/19/signal-to-quantization-noise-in-
quantized-sinusoidal/
I believe the white noise approximation holds. And I believe this is
most especially true if the DDS tuning word is such that the phase the
sine wave cycle starts at changes from cycle to cycle. This is most of
the time. The exception being when the tuning word divides evenly into
2^N where N is the bit size of the tuning word register and adder.
I am also wondering if I should just square wave modulate the LED light
and count on the FFT to extract the fundamental. So for the first
version of this system I am going to include an analog switch that can
bypass the filtering.
So generate a signal from a micro, and feed it to a DAC with the
precision of your choice. When I said it would be easy for the
processor, I meant it would be easy _without_ using a dedicated DDS chip.
You can even dither the signal in such a way that the quantization noise
turns blue and is thus easy to filter out.
Note that if there's cross-talk and if you really need 96dB of dynamic
range (as indicated by your proposed use of 16-bit ADCs), you probably
want to choose signal frequencies that not only fit, but whose harmonics
don't fall on one another. You're almost certainly going to get
distortion; you wouldn't want your 5th harmonic from one light landing
right on the fundamental of another.
--
My liberal friends think I'm a conservative kook.
My conservative friends think I'm a liberal kook.
Why am I not happy that they have found common ground?
Tim Wescott, Communications, Control, Circuits &
Softwarehttp://www.wescottdesign.com
of the low end of the range. Ideally the distance between each of them
suggestion to use DACs that are constantly updated by the processor.
I will update the DACs at the same rate as the ADC (200ksps). The DAC
what quantization noise will be contributed by the DAC. The correlated
means the square root of the sum of the squares does not apply. Since
would a little bit greater than the ADC. One might consider the DAC
won't add any quantization noise. And what would this mean for the