Re: FPGA and DAC for wave generation
- From: Peter Alfke <peter@xxxxxxxxxx>
- Date: 24 Apr 2007 15:16:58 -0700
To generate programmable frequencies in an FPGA, use Direct Digital
Synthesis (DDS)
Look it up in google.
Driving the DAC through an I2C bus seems to be unnecessarily slow.
If your FPGA has BlockRAMs, then look-up tables are very easy to
implement.
You did not mention any parameter values, but your project seems very
easy. And even fun.
Peter Alfke
On Apr 24, 4:25 am, Sheetal <sheetalgandhi...@xxxxxxxxx> wrote:
hi..I'm a university student familiar with the only the basics of VHDL
and FPGA implementation..For my project, I'm trying a make a sine
wave, ramp, triangular and square wave generator which outputs
required wave of required amplitude and required frequency
The FPGA is connected with DAC thru I2C bus..
The development board (nanoboard) has on- board freq of 20 mhz...now the
dac being connected to the I2c bus can work upto max 400 Mhz..so a
suitable clock divisor has to be implemented ..thus a low frequency
can be used as SCL input to DAC..
a)Now, for the sine and square wave, I'm assuming that we can use the
same look-up table(values ranging from 0 to 256)for the output values
of DAC.for obtaining different frequencies, only the SCL needs to be
changed . i.e.if SCl rate is high, the DAC would output from 0 to 256,
then to 0 at a faster rate, if SCL is low, it would output the same
values, but with some delay. THus, variable frequency can be obtained
by changing SCL rate..am I correct in assuming so?
b)If this is correct, can anyone please tell me the relationship
between SCL and output wave frequency..if such a formula/well defined
relationship does exist
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..
Any help at this time would be hugely appreciated
Kind Regards,
Sheetal Gandhi
.
- References:
- FPGA and DAC for wave generation
- From: Sheetal
- FPGA and DAC for wave generation
- Prev by Date: The simulation library compilation wizard of EDK can't find modelsim
- Next by Date: Problem with PowerPC PIT interrupt
- Previous by thread: Re: FPGA and DAC for wave generation
- Next by thread: Re: FPGA and DAC for wave generation
- Index(es):
Relevant Pages
|