Correct way to convert square signal to sine waveform

filtersignalsine

I have a square form signal that can change frequency from 100kHz to 200kHz (more precisely, the '1' is coded by 200kHz part (2 oscillations) and '0' is coded by 100kHz). The amplitude is about 2.5V. How can i change the waveform of the signal to sine, but preserve frequency changing? I think that the most common way is to use two integrators: passive (or active) to convert square to saw and then active (based on op-amp) to convert saw to sine. I'm not an electrical engineer, and this solution I've find by reading articles on the net. Is this correct or may be exists more correct or easier solutions? Just need to determine if I'm going the correct way.

Sorry for my bad english, stupid question and thanks in advance.

Best Answer

Is this correct or may be exists more correct or easier solutions?

DDS is probably a good way. The AD9837 is one of the simpler devices to use and because of its flexibility I'm suggesting it.

It can generate sine waveforms of the frequency you require with ease and it is programmable so that these waveforms can be changed on the fly. In fact for your application it neds to be programmable because your modulation signal needs to control the device by an SPI bus probably using a small microcontroller. I'm aware that you are not an electrical engineer so this solution may not be the most convenient but, if you are looking for flexibility and accuracy I think this is probably the best solution.

On a slightly different note, you are proposing, for say a 1, 0 sequence, 2 cycles of 200kHz followed by one cycle of 100kHz - I would have the changeover at the peak of the waveform in order to minimize harmonic disturbances: -

enter image description here

The red circle indicates the point where the waveform switches from one frequency to another and this will give rise to more harmonics than switching at the peak of the waveform as shown in the lower diagram.

This of course means less filtering. Either method can be done with DDS.