There are circuits to do that using multiple outputs to create a crude approximation to a sine wave using several stair steps. Turns out, by using a good filter on the output, you really don't need more than a handful of steps to get a decent sine wave. Dig around a little, I expect you can find this circuit.
Didn't find your answer? Ask the community — no account required.
L
Lasse Langwadt Christensen
I usually see an unbuffered inverter used, and then you have to mess with drive levels and load caps. Unless power is an issue is it worth he hassle when you can get an oscillator you know will work for a dollar?
L
Lasse Langwadt Christensen
just the right amount of "flat spot" at the zero crossing (aka. "modified sine") will take of much of the third and fifth harmonic
C
Chris Jones
To get 10kHz/(2*pi), why not start with a 13MHz or 26MHz xtal oscillator and divide by 8192 or 16384? (-2192 ppm) - that is closer than 32768/20 (+29437 ppm).
13 MHz and 26 MHz VCTCXOs were common in GSM phones and were quite good oscillators, low noise and stable.
W
whit3rd
Actually, a CD4017 gives a ten-divide, with one-of-ten driven outputs, and a 4013 does a two-divide, AND... a LM13700 section can (in conjunction with nine resistors connected to 4017 output pins) take a half-wave sinusoidal current into its current-program pin. The divide-by-two after the divide-by-ten can be wired to the differential input of the LM13700 to change the current sense every halfcycle so the LM13700 output is the right twenty-point current fit to a sine.
With +/- 12V supplies, all the CMOS on +12, it takes a level translator transistor (PNP grounded base) to drive the LM13700 input correctly, with resistors (from 4017 outputs to PNP emitter) being "0" output: open (infinite resistance, programs LM13700 for zero current out) "1" output: 12000 *(sin(18degrees)) ohms = 3708 ohms "2" output: 12000 *(sin 2*(18)) = 7053 ohms "3" output: 12000 *(sin 3*(18)) = 9948 ohms
... and so on. Twenty-point fit to sinewave, using nine resistors.
A load on the LM13700 output (1k ohm to ground) will keep the output biased correctly, then you connect an LC tank filter.
There's uncommitted darlingtons and another section of the LM13700 free, you can buffer (or maybe oscillate) with that.
A
Anthony William Sloman
I had to sleep on it to remember the part but the 4060 s probably what you had in mind
formatting link
It's got a built-in oscillator driver, and could be programmed to divide by 20.
You have mentioned that you want to end up with a decent sine wave and the 4017 does offer one way of getting close to that.
If you hang ten resistors - one on each of Q0 to Q9 - and feed them all into a summing junction - you can get a ten-step step-wise approximation to a sine wave, and a low pas filter can clean out the higher harmonics pretty effectively.
Using the outputs to drive 4016 transmission gates can give you better controlled step heights.
Buying an Analog Devices Direct Digital Synthesis Chip give you many more steps, but isn't all that cheap.
J
Jasen Betts
1638.4Hz doesn't seem especially close 3%
25.6khz/16 = 1600Hz unfortunately this crystal is out of stock everywhere I looked.
100Khz/64 = 1562.5 can do this with a CD4060 and a crystal
6.5MHz/4096 = 1586.9 maybe possible with a CD4060 but probably need more than 5V
and I'm only looking a power of two divisors.
M
Martin Brown
Depending on how much is not much then for a spot frequency integrating it once and diode shaping followed by a filter will get all the higher harmonics well down. HP patent on this trick is long out of date.
I'm curious - what is special about 1591.55 Hz ?
To do that you actually want to divide 32768 by (almost)
20.6 which gets 1590.68 or easier 20.5 which gets 1598.44
20 21 alternately and then combine with the original clock signal to get
20.5 20.5 equal mark space ratio at your chosen frequency.
20 21 20 21 20 would get your 20.6 but with terrible phase noise and harmonic content that might well be more problematic to eliminate.
More likely how your news client is set up. Thunderbird has "Reply" (to author) as one of its buttons.
Updates sometimes promote it to being the default action too!
P
Phil Allison
-------------------------------------
** How temp stable does the frequency REALLY have to be for your app ?? If 3% away from ideal f is OK - maybe no crystal or ceramic doovey is needed.
How about a one ( cheap) IC, linear RC oscillator with near perfect sine output - allows adjustable f to spot on your desired number. Using 1% MF resistors and polystyrene caps, temp stability can be suprisingly good.
BTW nice to see you back.
......Phil
J
John Woodgate
Thanks, Martin and all the others who have given helpful advice --- too many to reply individually. The project is tutorial in nature, so I don't want to use too many 'integrated' fixes, and SMD-only devices are not an option. Regarding the frequency, it does need to be near 10k/2pi, but other things can be adjusted to suit the exact frequency, which needs to be stable within ±1% and not require a counter to determine it.
I will try 'Reply to list' instead of 'Reply' to see if that works.
M
Martin Brown
OK. How about a Wein bridge sine wave oscillator instead then? eg.
formatting link
You could even discipline it against a square wave reference frequency derived from the 32kHz xtal oscillator.
P
Phil Hobbs
Some years ago, we had a George Herold thread on making sine waves. The eventual solution was a 4017 with resistors forming a weighted sum of the outputs. This cancels the second through ninth harmonics, making filtering much easier.
Cheers
Phil Hobbs
P
Phil Allison
-----------------------------------------
** OK - we finally have an actual " spec" for your 1591 Hz sine wave oscillator.
This simple topology will do the job very easily:
formatting link
The DC supply can be to 9v as shown, or +/- 5V or up to +/- 15 v. Quad op-amps like the TL064 or TL074 are perfect - so are many other duals.
THD is about 0.15% and frequency can be trimmed by adjusting one or both RT values as shown in fig 2. Amplitude stability depends only on the tempco of the 4 diodes.
Essentially it is my design and many hundreds have been built. Way better than a Wein bridge topology since there's no need for ( now unobtainable) thermistors, tiny lamps or fussy FETs.
.... Phil
R
Ricky
Why the requirement to not use a counter??? I don't know what that means in this context, since you are proposing on using a counter. Can you explain?
L
Lasse Langwadt Christensen
"not require a counter to determine it" I would assume that means it needs to be on frequency as build so you don't a frequency counter to verify and adjust it
J
John Woodgate
Looks very good, but too complicated for my project.
J
John Woodgate
Yes, correct.
J
John Woodgate
Is ther any way of retrieving that interesting information?
R
Ricky
So, you are saying no oscillators tuned by an RC, for example. Ok, that's not hard. What you are talking about, using a crystal and a divider should work.
This thread is very long at this point. What are the problems? You seem to reject a lot of solutions because they are too complex. I don't know what to recommend at this point. You seem to be looking for a Goldilocks solution. Maybe you could summarize the solutions that come closest at the moment?
J
John Woodgate
I really don't want any more help, with thanks to all who have tried. Many of teh suggestions open up other streams of thought.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.