[SOLVED] Help with generating sinewave

Status
Not open for further replies.
relax guys.
It's a misunderstanding.

Smile, and don't be angry :-D
 

A miss is as good as a mile. I see you have to polish your english

LoL !! now that is funny :lol:

Clearly you want to side-track the thread, and not actually give any coherent responses to other forum members queries. Cheers buddy.... i'm gone.

Eng-Fahd -- i trust you got sufficient info on your question ?
 

Clearly you want to side-track the thread, and not actually give any coherent responses to other forum members queries
Don’t carry on so, you are wrong. Topic starter got my code (not yours) with 7MC per sample (post #17). It means that sampling frequency is 20000kHz/7=2857ksps. In other words, if TC needs to produce 1MHz output signal, then aliasing frequency is 1857kHz, far enough to easily get rid of it. Eng.Fahd can use the interruption for tuning any frequency in range 0.17Hz to 1000000 Hz. That's all.
 

I want to ask you George.
In a 1 MHz generation, the output samples will be just 2. I mean the signal will be like a square signal. So I need you to give me the right filter that I can use in my project to work from Hz to MHz.

- - - Updated - - -

LoL !! now that is funny :lol:

Clearly you want to side-track the thread, and not actually give any coherent responses to other forum members queries. Cheers buddy.... i'm gone.

Eng-Fahd -- i trust you got sufficient info on your question ?

Thank you kripacharya for interest in helping me, and thanks to GeorgeM.
And I'm sorry because this little problem goes in this way of misunderstanding.
 

I want to ask you George.
In a 1 MHz generation, the output samples will be just 2. I mean the signal will be like a square signal. So I need you to give me the right filter that I can use in my project to work from Hz to MHz.

actually it will be 2.857 output samples per cycle.
The image freq will be at 1.857 MHz ( 2.857M - 1M)
You need a LPF for 1MHz - 1.857MHz.

Here is a possible filter you can use. It is designed for 0.1dB passband ripple and >50dB attenuation at 1.84MHz. Note that input/ output impedance is 50ohm, and insertion loss of filter is 6dB (i.e. voltage will be half of input)



It uses only 2 inductors of lowish value and Q ~70, which is helpful since a lot of design sensitivity is due to inductors.
 
Thank you both very much for helping me, I'll try these filters.
kripacharya & GeorgeM thanks for your time.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…