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.

[SOLVED] Function Generator Design

Status
Not open for further replies.

OsmanH

Newbie level 6
Joined
Aug 11, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,377
I have an assignment that I should design a function generator in pspice. It converts square wave to sine wave by using schmitt trigger and an intergrator. Firstly, I should take square wave output from schmitt trigger than convert it sine wave by integrator but I cannot do the design. Also, I should use LM158JG for opamps. Can I use LM158 instead of LM158JG? Anyone can give me idea for making design?

Thank you for helping
 

I don't see, how you want to generate a sine wave by integrating a square wave. Obviously, you can expect a triangle wave. Sine function generators are usually based on non-linear diode networks. Low pass filters are another method.

LM158JG isn't but a specific case variant.
 

I think I should use two integrator circuit first convert triangle wave then convert sine wave is it true?
 

The waveform will look nearer to a sine after passing the second integrator, but still have considerable distortion.
 

Is there a way to clear off the distortion or I should make any other design for it
 

Is there a way to clear off the distortion or I should make any other design for it

As mentioned by FvM - the most logical way is to use only the fundamental frequency of the squarewave by lowpass filtering.
 

Integrating a triangle wave does get pretty close to a sine wave. But the main problem with using integrators is that the gain of the output will be inversely proportional to the frequency. If you want to vary frequency without changing amplitude, then that won't work (unless you put some automatic gain control in somewhere, which would be a big step up in complexity).

And using filters on a square or triangle wave has issues too when varying frequency, since your filters will probably have fixed characteristics (unless you again have very sophisticated automatic controls).
 

Hi mtwieg,

I am sure you know that integrating is nothing else than a special form of lowpass filtering - however only of first order!
Therefore, integrating can never reach the degree of harmonic suppression of - let's say - a second order lowpass.
 

Right, an integrator is a filter. But the difference is that other filters will generally have a flat passband, so as long as you operate in that passband your amplitude won't vary with frequency (but the amplitude of the harmonics will). But an integrator will at least give you a constant THD vs frequency.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top