electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

circuit help: square and sin wave input = square wave output


Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design -> circuit help: square and sin wave input = square wave output
Author Message
spyghost



Joined: 10 Apr 2004
Posts: 24


Post27 Apr 2004 15:52   

circuit help: square and sin wave input = square wave output


hi,

i would like to ask what kind of circuit would produce such a response?

input:
- a sinewave with a varying amplitude directly proportional to the frequency. maximum pk is 3v and max freq is 500hz
- a square wave with a V-hi of 5V and V-low of 0V and a max freq of 500hz
- a square wave witha V-hi of 12V and a V-low of 0V and a max freq of 500Hz

output:
- a square wave that is ttl compatible (V-hi of 5v and V-low of 0V)
- the + side of the sine wave input must produce a high output (5v), while the - side of the sinewave must be low output
- the V-hi's of both square wave inputs must be a high output, while the V-low of the sqare wave inputs must produce a low output (0v)

what kind of circuit would produce such a response?

thanks!
Back to top
Google
AdSense
Google Adsense




Post27 Apr 2004 15:52   

Ads




Back to top
flatulent



Joined: 19 Jul 2002
Posts: 4875
Helped: 324
Location: Middle Earth


Post27 Apr 2004 16:33   

Re: circuit help: square and sin wave input = square wave ou


Your best bet would be to use an ordinary comparator IC. AC couple the input from your signal and the flip point will be at the middle of the input signal.
Back to top
Humungus



Joined: 10 Jul 2001
Posts: 432
Helped: 26


Post28 Apr 2004 8:11   

Re: circuit help: square and sin wave input = square wave ou


You can also do it by using a schmit trigger inverter.
Back to top
Tornado



Joined: 26 Apr 2002
Posts: 341
Helped: 1


Post17 May 2004 9:26   

Re: circuit help: square and sin wave input = square wave ou


Hi Spyghost

Check this post:

http://www.edaboard.com/ftopic76020.html

If you take an output from N3 the you have a 5V square wave
and sinewave as well. You can change the regulator to 5V.

For 12V squarewave use a comparator as Flatulent suggests.

Tornado
Back to top
RegUser_2



Joined: 24 Dec 2001
Posts: 235
Helped: 2


Post01 Jun 2004 7:37   

Re: circuit help: square and sin wave input = square wave ou


flatulent wrote:
Your best bet would be to use an ordinary comparator IC. AC couple the input from your signal and the flip point will be at the middle of the input signal.


This is done if the negative comparator input is feed from the same signal, but through a RC LPF to estimate the average value of the signal.
Back to top
artem



Joined: 22 May 2003
Posts: 1652
Helped: 91
Location: Turan


Post01 Jun 2004 13:36   

Re: circuit help: square and sin wave input = square wave ou


[quote="RegUser_2"][quote="flatulent"]Your best bet would be to use an ordinary comparator IC. AC couple the input from your signal and the flip point will be at the middle of the input signal.[/quote]

This is done if the negative comparator input is feed from the same signal, but through a RC LPF to estimate the average value of the signal.[/quote]

If signal changes from one type to another , RC LPF oputput establishment will increase transient time . If input freq down to 1 Hz , LPF should give 3 DB
somewhere at 0.1 Hz or may be less (establishment time t ~ 1/10*fmin) , while flatulents suggestion tolerate somewhere on min frequency (t ~ 1/fmin).
Back to top
RegUser_2



Joined: 24 Dec 2001
Posts: 235
Helped: 2


Post03 Jun 2004 6:08   

Re: circuit help: square and sin wave input = square wave ou


artem wrote:
RegUser_2 wrote:
flatulent wrote:
Your best bet would be to use an ordinary comparator IC. AC couple the input from your signal and the flip point will be at the middle of the input signal.


This is done if the negative comparator input is feed from the same signal, but through a RC LPF to estimate the average value of the signal.


If signal changes from one type to another , RC LPF oputput establishment will increase transient time . If input freq down to 1 Hz , LPF should give 3 DB
somewhere at 0.1 Hz or may be less (establishment time t ~ 1/10*fmin) , while flatulents suggestion tolerate somewhere on min frequency (t ~ 1/fmin).


The flatulent's design have absolutly the same shortcomming Very Happy

For transfering 1 Hz signal the HPF still have to have frequency cutt-off at 0.1 Hz, which settles due to a transient in the amplitude/type of the input signal the same way like a LPF into one of the arms Wink
Back to top
alphi



Joined: 23 Dec 2001
Posts: 440
Helped: 1


Post03 Jun 2004 6:41   

Re: circuit help: square and sin wave input = square wave ou


I think comparator is better,frequency of comparator is enought,and it easy to adjust.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design -> circuit help: square and sin wave input = square wave output
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Ask help from generaing a square wave by another square wave (3)
output of a transformer to a square wave input (1)
output of a transformer to a square wave input (2)
sin to square wave converter (4)
Help in FM source with square-wave output (1)
square wave output from dc power supply....please help (8)
Why not use square wave but sine wave as LO signal?? (6)
how to drive 200MHz sine wave to make it become square wave? (2)
how can i generate a sine wave from a square wave? (5)
How can u convert square wave signal to sine wave (7)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS