Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 39
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
wpk5008 (35)


Next birthdays
05/08 wpk5008 (35)
05/09 Alfons (37)
05/09 Coronafix (52)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

How to create a suitable reference voltage for a comparator?

Move Thread LAN_403
Dago
Fri May 23 2008, 02:31PM Print
Dago Registered Member #538 Joined: Sun Feb 18 2007, 08:33PM
Location: Finland
Posts: 181
I'm making a DDS-based function generator and I'd need to make an output stage for the DDS-chip (AD9833) which outputs around 200mV p-p signal. The frequency range the DDS-board generates is from about 150Hz to 8MHz

I'd want two outputs, one for sine and one for 50% duty square wave. I know the DDS-chip can generate square wave by itself but I cant really use that feature due to how the LC-filter after the DDS-chip is built plus I dont have a programmer to program the pic with. So I need to generate the square wave from the sine.

The sinewave is pretty easily amplified with a noninverting opamp amplifier (I was looking at EL2044 as the opamp) and AC-coupled to yield a nice 5V p-p signal.

The real problem is how to make the square wave? The problem lies in that the signal from the DDS-chip varies a bit with frequency, the amplitude gets smaller in both of the extreme ends of the frequency range. How can I create a fairly stable 50% duty square wave from this signal?

Using a comparator for doing it is clear but how do I make the comparator to trigger at halfway of the sinewave cycles so it would consistently keep 50% duty even when the input signal varies a bit in amplitude? I'd need to somehow change the comparator reference voltage so it would change according to input signal amplitude but I cant think of a good and easy way to do this. Any suggestions?
Back to top
...
Fri May 23 2008, 03:41PM
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
Shouldn't it be possible to AC couple the into the sine wave so that it is centered around 0v, and then set the comparator to trigger at 0v?
Back to top
GeordieBoy
Fri May 23 2008, 05:16PM
GeordieBoy Registered Member #1232 Joined: Wed Jan 16 2008, 10:53PM
Location: Doon tha Toon!
Posts: 881
You might want to consider using the AD9834 DDS as this has an internal self-biasing comparator if I remember correctly and is also a more modern part.

As you correctly said, the squarewave should be generated using a comparator acting on the analogue sinewave _AFTER_ the lowpass filter. Any digital squarewave generated directly by the DDS has period jitter which becomes more significant at high frequencies, and you certainly don't want to put the squarewave through the lowpass filter!

If your eliptic reconstruction filter is designed properly then the period jitter on a squarewave generated the proper way with a fast comparator should be very low up to F_clock / 3.

-Richie,
Back to top
Steve Conner
Fri May 23 2008, 09:38PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I'd go one step further and recommend the AD9850 smile Even if you don't use it, you can read the AD9850 datasheet to see how its built-in comparator works.

I built a 0-40MHz generator based on this chip and it worked well.
Back to top
Dago
Sat May 24 2008, 06:35PM
Dago Registered Member #538 Joined: Sun Feb 18 2007, 08:33PM
Location: Finland
Posts: 181
I also thought about biasing the sinewave around 0v, then if the sinewave amplitude changes the sinewave should still be in the same position in relation to ground and you could make the comparator trigger at 0v. Another idea was to generate the reference voltage with a RC-filter but I dont think this can be made to work on such a wide frequency range.

I cant really change the DDS-part because its made from a kit, the board is meant as a VFO for a radioreceiver/transmitter (check out Link2 )

Edit: Fixed bad link.
Back to top
Dago
Thu May 29 2008, 01:21PM
Dago Registered Member #538 Joined: Sun Feb 18 2007, 08:33PM
Location: Finland
Posts: 181
I found this: Link2 but I cant really understand how it works. Though I'm pretty sure the 4069 is a tad too slow for 8MHz?
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.