Re: Signal Generator using FPGA and DAC



canadianJaouk wrote:

c) Also, can anyone tell me about a good link for a simple tutorial
on implementing look-up table?I did find some on the web, but they
all seemed to be complicated..either because they ARE..or because
my mind has gone all-blank right now, with the submission date
coming so near..

Why do you need a lookup table?

For example, if you have a single 128-byte sine wave stored in an array,
you simply need to clock a counter to use as the array address (index)
at your sampling rate.

You could even clock this asynchronously to the process that writes the
DAC, so your DAC is updated at the same rate regardless of your sampling
rate. The usual precautions need to be taken when shuffling data across
clock domains of course...

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
.



Relevant Pages

  • Re: Voltage ramp (was: Low current source)
    ... >> Why not just use a DAC, and vary the clock rate, to generate your ... >A uC and a DAC is a possible solution; in fact I just spent a while poking ... >First, I want separate rates for ramp up and ramp down, so I can't just vary ... I want the rates settable by trimpots. ...
    (sci.electronics.design)
  • Re: Valve fraud?
    ... clock rate on the data. ... DAC design's still a bit of a black art, ... how does analogue voodoo find a way back in? ... Of course adding a small buffer between the shift register and the ...
    (uk.rec.sheds)
  • Re: [PATCH V8 08/13] posix clocks: cleanup the CLOCK_DISPTACH macro
    ... extra entry for posix_cpu_timers in the posix_clocks array and do the ... between the legacy static ids and new dynamic ids clear. ... The conclusion from the "dynamic clock as file" discussion was that we ... don't want to add any more static clock ids, ...
    (Linux-Kernel)
  • Re: Valve fraud?
    ... clock rate on the data. ... DAC design's still a bit of a black art, ... far end get a messy wobbly waveform that in the centres of the waves ... Of course adding a small buffer between the shift register and the ...
    (uk.rec.sheds)
  • Re: CD player quality recommendation
    ... The raw clock in the CS8412 is not used for anything. ... No crystal oscillator is perfect, and S/PDIF is definitely not perfect. ... and some amount of thermally-induced drift. ... DAC must be able to compensate for this in some way, ...
    (rec.audio.tech)