DSPRelated.com
Forums

1 khz sinewave generation

Started by smi_ms2003 January 10, 2006
hi everybody,
i have interfaced adsp 21060(sharc processor)to codec ad1836.i am new
to codec.i have configured codec internal register through SPI, and
all adsp serial port stuff.if i want to generator exactly 1kz frequecy
what are the data input i should send it to codec.How to calculate
those data value.which formula i shoud use.please let me know this and
also FFT algorithm.give me some ideas,or code example.48khz sampling
frequency is selected for codec.

thanks,
smitha


On Tue, 10 Jan 2006, smi_ms2003 wrote:

> hi everybody,
> i have interfaced adsp 21060(sharc processor)to codec ad1836.i am new
> to codec.i have configured codec internal register through SPI, and
> all adsp serial port stuff.if i want to generator exactly 1kz frequecy
> what are the data input i should send it to codec.How to calculate
> those data value.which formula i shoud use.please let me know this and
> also FFT algorithm.give me some ideas,or code example.48khz sampling
> frequency is selected for codec.
>

http://www.analog.com/processors/processors/sharc/technicalLibrary/codeExamples/applicationsHandbook.html

has a set of zipped up files with everything you need. Use the sin.asm
to compute your 1 khz shape at the correct sample rate you use. FFT
algorithms of all kinds are there too.

Patience, persistence, truth,
Dr. mike