Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

1 Meg Hz Sine Wave Generation

Status
Not open for further replies.

link555

Newbie level 3
Joined
Jan 28, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Canada
Activity points
1,302
Hello I am new to DSP programming and I am trying to figure out where to start.
I need to create a 1Mhz Sine wave.

IS this possible?
Which Dsp is best suited for this?

Thanks Very much!
 

You'll need to say how many bits of resolution you need, as speed of the DAC is usually inversely proportional to depth?
 

Here's one of my posts from this thread:

Are you using design compiler? If so check out...
https://www.synopsys.com/dw/ipdir.php?c=DW_sincos
https://www.synopsys.com/dw/ipdir.php?c=DW_fp_sincos
https://www.synopsys.com/dw/ipdir.php?c=DW02_sincos
https://www.synopsys.com/dw/ipdir.php?c=DW02_sin

If you're not using design compiler.
You can use a look up table. This is the easiest implementation. It is simply a ROM with the sine wave stored in it, for a given phase. So your theta would be the address for the ROM. You'll only need to store 1/4 of the sine wave to take advantage of the symmetry of the sine wave. For cos you simply take advantage of the trig formula: cos(theta) = sin(pi/2 - theta). Excellent paper on this by Lionel Cordesses called "Direct Digital Synthesis: A tool for Periodic Wave Generation."

Or you can use a DSO, which is an unstable IIR filter. There is an excellent paper by Clay Turner on the subject: "Recursive Discrete-Time Sinusoidal Oscillators"

Or you can use a Cordic algorithm...
https://www.google.com/webhp#hl=en&source=hp&q=Cordic+algorithm&aq=f&aqi=g10&oq=&fp=79a46ede2c2a175d
 

Thank you very much for the excellent info, however I am still wondering if the 1 meg frequency requirement is to high for some DSP's?

I would have tried this in a micro, but I could not find PWM able to go that fast.

Thanks very much!
 

How fast of a clock do you have available?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top