Reply by Phil Hobbs October 22, 20112011-10-22
On 10/21/2011 09:35 PM, George Herold wrote:
> On Oct 21, 9:15 pm, George Herold<gher...@teachspin.com> wrote: >> On Oct 21, 11:02 am, Bill Sloman<bill.slo...@ieee.org> wrote: >> >> >> >> >> >>> On Oct 21, 11:59 am, Jon Kirwan<j...@infinitefactors.org> wrote: >> >>>> On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj >> >>>> <bjac...@iwaynet.net> wrote: >>>>> On Oct 13, 7:54 pm, Jon Kirwan<j...@infinitefactors.org> wrote: >>>>>> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson >> >>>>>> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: >>>>>>> On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan >>>>>>> <j...@infinitefactors.org> wrote: >> >>>>>>>> On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold >>>>>>>> <gher...@teachspin.com> wrote: >> >>>>>>>>> On Oct 13, 12:59 pm, Jon Kirwan<j...@infinitefactors.org> wrote: >>>>>>>>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold >> >>>>>>>>>> <gher...@teachspin.com> wrote: >>>>>>>>>>> This is a continuation of the 50kHz VCO thread I started last week. I >>>>>>>>>>> tried the stepped sine wave idea as suggested by James A, and Phil >>>>>>>>>>> H. >>>>>>>>>>> The circuit clocks a MC14017 at 10x(F) to make a stepped sine wave at >>>>>>>>>>> frequency (F). The ten outputs from the 4017 are sent through >>>>>>>>>>> appropriate resistors and into the summing junction of an opamp. >>>>>>>>>>> Here s a scope shot of the stepped output overlaid with a sine >>>>>>>>>>> wave. >> >>>>>>>>>>> http://imageshack.us/photo/my-images/560/tek0024.png/ >> >>>>>>>>>>> The resistor values were chosen to intersect the sine wave at each new >>>>>>>>>>> phase. (R(n) = 1/sin^2(n*18degrees)) >> >>>>>>>>>>> Approximate values, R0=open, R1=R9=105k, R2=R8=28.9k, R3=R7=15.3k, >>>>>>>>>>> R4=R6=11k, R5=10k. all 1% resistors. >> >>>>>>>>>>> Here s the spectrum as recorded by an SRS770 spectrum analyzer. >> >>>>>>>>>>> http://imageshack.us/photo/my-images/839/stepsin.png/ >> >>>>>>>>>>> The 2nd harmonic is only down by 50dB. I don t understand why it s so >>>>>>>>>>> big. Is there some way to do better than this? The 9th and 11th >>>>>>>>>>> harmonics are big and then the 19th and 21st. >> >>>>>>>>>>> Thanks George H. >> >>>>>>>>>> George, I don't remember the discussion. Probably didn't >>>>>>>>>> read it. But if you are using a 4017 (decade counter), then >>>>>>>>>> I'm guessing that you are enabling one resistor at a time >>>>>>>>>> while disabling others (they tie to the summing junction from >>>>>>>>>> each, moving output pin.) This worries me a little, mostly >>>>>>>>>> because of delay and the fact that you are turning off one >>>>>>>>>> while turning on another, but don't control that very well. I >>>>>>>>>> also don't know what you are doing to filter the steps. >> >>>>>>>>>> Anyway, I'd have wanted to consider, instead, a Gray-coded >>>>>>>>>> (actually, the real inventor is Boudot, I think, but Bell >>>>>>>>>> Labs was patenting everything in a flurry in the mid 1900's >>>>>>>>>> and who could remember Boudot so long ago?) design where you >>>>>>>>>> only change one of the outputs at a time. Not two. >> >>>>>>>>>> Anyway, I'll let the big hitters who probably did read the >>>>>>>>>> earlier thread tell you what is more likely. Just something >>>>>>>>>> that crossed my mind, is all. >> >>>>>>>>>> Jon- Hide quoted text - >> >>>>>>>>>> - Show quoted text - >> >>>>>>>>> Hi Jon, Thanks for that. >> >>>>>>>> No problem. In the interim, I did a quick search for summing >>>>>>>> junctions and Gray codes and came up with this link: >> >>>>>>>> http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf >> >>>>>>> I posted this 8 years ago... >> >>>>>>> http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf >> >>>>>>> I also have this book... >> >>>>>>> "Sequency Theory, Foundations and Applications" >>>>>>> Henning F. Harmuth >>>>>>> Academic Press, 1977 >>>>>>> ISBN: 0-12-014569-3 >> >>>>>>> which covers Walsh Functions in gruesome detail ;-) >> >>>>>> I picke up Walsh's original paper (redone, actually, in Latex >>>>>> and error corrected as it had a few in the original article) >>>>>> from the web, today. The paper is "A Closed Set of Normal >>>>>> Orthogonal Functions." I will be reading it more thoroughly >>>>>> over the next couple of days. Also, already listed the above >>>>>> link which is a nice, short overview with two examples in it. >>>>>> Finally, there are a bevy of books (some of them nearly 1300 >>>>>> pages in length) on the subject regarding making and building >>>>>> synthesizers. I'll be ordering a few before the end of the >>>>>> week. >> >>>>>> A whole world has opened up on this subject for me and I can >>>>>> bring over Laplace and Fourier. Actually, it is almost easy >>>>>> for me to see how to apply this with almost any starting wave >>>>>> shape, not just sine/cosine or square wave. Which probably >>>>>> isn't terribly practical, but interesting all the same. (Must >>>>>> be some mathematician out there has already explored the use >>>>>> of triangle, sawtooth, and pretty much any arbitrary basic >>>>>> shape.) >> >>>>>> I will read your PDF, as well. :) >> >>>>>> Jon >> >>>>> I was going to suggest using Walsh functions. They make great >>>>> sinewaves (or ANY repetitive waveshape, although there is a problem >>>>> with the "peak" on triangles). The difference between Walsh function >>>>> generation and typical D-A converters is that Walsh functions >>>>> distribute the switching over the period and don't need a resistive >>>>> ladder where some elements need high accuracy. >> >>>> My intuition suggested changing only one digital output at a >>>> time -- which is why I gravitated towards Gray coding. >>>> Searching on that led me to Walsh, which seemed right on the >>>> money. But I still haven't had time to read about them. I >>>> did just receive my beautiful copy of Harmuth's "Sequency >>>> Theory" book, though. And glad to have it. And it does go >>>> directly into Gray code ordering of Walsh functions, so I'm >>>> happy now. >> >>>>> Read the pdf. and it should explain how to reproduce any waveform. You >>>>> just need to get the transform of the waveform that lists coefficient >>>>> of each Walsh function. The beauty of this method is the often many of >>>>> them are zero and hence do not need to be implemented. >> >>>> On the short PDF, I clearly got this message. (odd and even >>>> functions, etc.) >> >>>>> Typically the >>>>> spectrum is very low in the lower harmonics rising much higher in high >>>>> harmonics where the "stairsteps" start to produce spectrum. Obviously >>>>> the more steps you use the further out is that rise. >> >>>> Got it. >> >>>>> I didn't see the original thread so I don't know what your application >>>>> is. >> >>>> It's not my application, but George's. He's using a 4017 >>>> (decade decoder thing) right now (or was) and ties in >>>> resistors on each of the 10 pins to a summing point of an >>>> opamp in order to make a stepped sine wave. But he didn't >>>> like the spectrum he got, especially the 2nd harmonic. >> >>>> I hadn't done this, but my gut told me that the 4017 was >>>> changing two resistors nearly at once (but perhaps not >>>> exactly so) and with ripple carry and all I wasn't >>>> comfortable and wanted to suggest thinking in terms of a gray >>>> coded approach. >> >>> The 4017 is a twisted ring shift-register-based Johnson counter - >>> whence no ripple carry within the counter, though it does have a >>> ripple carry output. >> >>> http://www.national.com/ds/CD/CD4017BC.pdf >> >>> The second harmonic content was almost certainly due to the tolerances >>> on his resistors - P-channel on-resistance is higher than N-channel in >>> most CMOS logic, but in modern parts the channel resistance is too low >>> to have explained the second harmonic content he saw. >> >>> <snip> >> >>> -- >>> Bill Sloman, Nijmegen- Hide quoted text - >> >>> - Show quoted text - >> >> Hi Bill, did you read the rest of the thread? I measrured an output >> impedance of ~180 omhs (at 15V) for the 1MC4017 I was using. That's >> about 2% of the smallest resistor (10k ohm). Bigger than the 1% >> resistor tolerance, and certianly the major cause of the 2nd harmonic >> distortion in my first circuit. >> >> George H. >> (I hope you can forgive the slight correction, I didn't want the >> thread to end with a mis-statement)- Hide quoted text - >> >> - Show quoted text - > > So here's a late Friday night question, (after a few Genny's). If I > used a bipolar output (switching the sign at zero with an opamp, and > picking new resistors), would the distortion caused by the output > impedance move from the 2nd harmonic to the third? Squishing both > sides equally rather than just pushing the top down. > > I find it hard moving from distortion in the time demain to the > frequency domain. > > George H.
If the resulting waveform has inversion symmetry, i.e. if for all t f(t) + f(t+T/2) = 0, then it can't have any even harmonics. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 845-480-2058 hobbs at electrooptical dot net http://electrooptical.net
Reply by Bill Sloman October 22, 20112011-10-22
On Oct 22, 3:15=A0am, George Herold <gher...@teachspin.com> wrote:
> On Oct 21, 11:02=A0am,BillSloman<bill.slo...@ieee.org> wrote: > > > > > > > > > > > On Oct 21, 11:59=A0am, Jon Kirwan <j...@infinitefactors.org> wrote: > > > > On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj > > > > <bjac...@iwaynet.net> wrote: > > > >On Oct 13, 7:54=A0pm, Jon Kirwan <j...@infinitefactors.org> wrote: > > > >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson > > > > >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: > > > >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan > > > >> ><j...@infinitefactors.org> wrote: > > > > >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold > > > >> >><gher...@teachspin.com> wrote: > > > > >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrot=
e:
> > > >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold > > > > >> >>>> <gher...@teachspin.com> wrote: > > > >> >>>> >This is a continuation of the 50kHz VCO thread I started las=
t week. I
> > > >> >>>> >tried the stepped sine wave idea as suggested by James A, an=
d Phil
> > > >> >>>> >H. > > > >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sin=
e wave at
> > > >> >>>> >frequency (F). The ten outputs from the 4017 are sent throug=
h
> > > >> >>>> >appropriate resistors and into the summing junction of an op=
amp.
> > > >> >>>> >Here s a scope shot of the stepped output overlaid with a si=
ne
> > > >> >>>> >wave. > > > > >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ > > > > >> >>>> >The resistor values were chosen to intersect the sine wave a=
t each new
> > > >> >>>> >phase. (R(n) =3D 1/sin^2(n*18degrees)) > > > > >> >>>> >Approximate values, R0=3Dopen, R1=3DR9=3D105k, R2=3DR8=3D28.=
9k, R3=3DR7=3D15.3k,
> > > >> >>>> >R4=3DR6=3D11k, R5=3D10k. all 1% resistors. > > > > >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyz=
er.
> > > > >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ > > > > >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand wh=
y it s so
> > > >> >>>> >big. Is there some way to do better than this? The 9th and 1=
1th
> > > >> >>>> >harmonics are big and then the 19th and 21st. > > > > >> >>>> >Thanks George H. > > > > >> >>>> George, I don't remember the discussion. Probably didn't > > > >> >>>> read it. But if you are using a 4017 (decade counter), then > > > >> >>>> I'm guessing that you are enabling one resistor at a time > > > >> >>>> while disabling others (they tie to the summing junction from > > > >> >>>> each, moving output pin.) This worries me a little, mostly > > > >> >>>> because of delay and the fact that you are turning off one > > > >> >>>> while turning on another, but don't control that very well. I > > > >> >>>> also don't know what you are doing to filter the steps. > > > > >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded > > > >> >>>> (actually, the real inventor is Boudot, I think, but Bell > > > >> >>>> Labs was patenting everything in a flurry in the mid 1900's > > > >> >>>> and who could remember Boudot so long ago?) design where you > > > >> >>>> only change one of the outputs at a time. Not two. > > > > >> >>>> Anyway, I'll let the big hitters who probably did read the > > > >> >>>> earlier thread tell you what is more likely. Just something > > > >> >>>> that crossed my mind, is all. > > > > >> >>>> Jon- Hide quoted text - > > > > >> >>>> - Show quoted text - > > > > >> >>>Hi Jon, =A0Thanks for that. > > > > >> >>No problem. =A0In the interim, I did a quick search for summing > > > >> >>junctions and Gray codes and came up with this link: > > > > >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf > > > > >> >I posted this 8 years ago... > > > > >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf > > > > >> >I also have this book... > > > > >> >"Sequency Theory, Foundations and Applications" > > > >> >Henning F. Harmuth > > > >> >Academic Press, 1977 > > > >> >ISBN: 0-12-014569-3 > > > > >> >which covers Walsh Functions in gruesome detail ;-) > > > > >> I picke up Walsh's original paper (redone, actually, in Latex > > > >> and error corrected as it had a few in the original article) > > > >> from the web, today. =A0The paper is "A Closed Set of Normal > > > >> Orthogonal Functions." =A0I will be reading it more thoroughly > > > >> over the next couple of days. =A0Also, already listed the above > > > >> link which is a nice, short overview with two examples in it. > > > >> Finally, there are a bevy of books (some of them nearly 1300 > > > >> pages in length) on the subject regarding making and building > > > >> synthesizers. =A0I'll be ordering a few before the end of the > > > >> week. > > > > >> A whole world has opened up on this subject for me and I can > > > >> bring over Laplace and Fourier. =A0Actually, it is almost easy > > > >> for me to see how to apply this with almost any starting wave > > > >> shape, not just sine/cosine or square wave. =A0Which probably > > > >> isn't terribly practical, but interesting all the same. (Must > > > >> be some mathematician out there has already explored the use > > > >> of triangle, sawtooth, and pretty much any arbitrary basic > > > >> shape.) > > > > >> I will read your PDF, as well. =A0:) > > > > >> Jon > > > > >I was going to suggest using Walsh functions. They make great > > > >sinewaves (or ANY repetitive waveshape, although there is a problem > > > >with the "peak" on triangles). The difference between Walsh function > > > >generation and typical D-A converters is that Walsh functions > > > >distribute the switching over the period and don't need a resistive > > > >ladder where some elements need high accuracy. > > > > My intuition suggested changing only one digital output at a > > > time -- which is why I gravitated towards Gray coding. > > > Searching on that led me to Walsh, which seemed right on the > > > money. =A0But I still haven't had time to read about them. =A0I > > > did just receive my beautiful copy of Harmuth's "Sequency > > > Theory" book, though. =A0And glad to have it. =A0And it does go > > > directly into Gray code ordering of Walsh functions, so I'm > > > happy now. > > > > >Read the pdf. and it should explain how to reproduce any waveform. Y=
ou
> > > >just need to get the transform of the waveform that lists coefficien=
t
> > > >of each Walsh function. The beauty of this method is the often many =
of
> > > >them are zero and hence do not need to be implemented. > > > > On the short PDF, I clearly got this message. =A0(odd and even > > > functions, etc.) > > > > >Typically the > > > >spectrum is very low in the lower harmonics rising much higher in hi=
gh
> > > >harmonics where the "stairsteps" start to produce spectrum. Obviousl=
y
> > > >the more steps you use the further out is that rise. > > > > Got it. > > > > >I didn't see the original thread so I don't know what your applicati=
on
> > > >is. > > > > It's not my application, but George's. =A0He's using a 4017 > > > (decade decoder thing) right now (or was) and ties in > > > resistors on each of the 10 pins to a summing point of an > > > opamp in order to make a stepped sine wave. =A0But he didn't > > > like the spectrum he got, especially the 2nd harmonic. > > > > I hadn't done this, but my gut told me that the 4017 was > > > changing two resistors nearly at once (but perhaps not > > > exactly so) and with ripple carry and all I wasn't > > > comfortable and wanted to suggest thinking in terms of a gray > > > coded approach. > > > The 4017 is a twisted ring shift-register-based Johnson counter - > > whence no ripple carry within the counter, though it does have a > > ripple carry output. > > >http://www.national.com/ds/CD/CD4017BC.pdf > > > The second harmonic content was almost certainly due to the tolerances > > on his resistors - P-channel on-resistance is higher than N-channel in > > most CMOS logic, but in modern parts the channel resistance is too low > > to have explained the second harmonic content he saw. > > > <snip> > > > -- > >BillSloman, Nijmegen- Hide quoted text - > > > - Show quoted text - > > HiBill, did you read the rest of the thread? =A0I measured an output > impedance of ~180 omhs (at 15V) for the 1MC4017 I was using. =A0That's > about 2% of the smallest resistor (10k ohm). =A0Bigger than the 1% > resistor tolerance, and certianly the major cause of the 2nd harmonic > distortion in my first circuit. > > George H. > (I hope you can forgive the slight correction, I didn't want the > thread to end with a mis-statement)
Forgive it? I'm grateful for it. I knew I should have checked before I posted that comment, but succumbed to the temptation to wing it. I am a bit surprised that you had an MC4017 to play with. I know that they are still commercially available, but it's difficult to imagine any good reason for using them, unless you are hopelessly addicted to +/-15V power rails. When I put together a similar circuit in the late 1970's (to make pseudo-random noise to confuse echo-locating bats) I got worried enough about the CD/MC output impedances to use 4066's to do the switching, but I still had to redo the resistors after I found out about Gibb's oscillation the hard way and had to aply a Hamming raised- cosine window to almost every one of 32 carefully trimmed resistances. -- Bill Sloman, Nijmegen
Reply by The Phantom October 21, 20112011-10-21
On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold <gherold@teachspin.com>
wrote:

>This is a continuation of the 50kHz VCO thread I started last week. I >tried the stepped sine wave idea as suggested by James A, and Phil >H. >The circuit clocks a MC14017 at 10x(F) to make a stepped sine wave at >frequency (F). The ten outputs from the 4017 are sent through >appropriate resistors and into the summing junction of an opamp. >Here&#4294967295;s a &#4294967295;scope shot of the stepped output overlaid with a sine >wave. > >http://imageshack.us/photo/my-images/560/tek0024.png/ > >The resistor values were chosen to intersect the sine wave at each new >phase. (R(n) = 1/sin^2(n*18degrees)) > >Approximate values, R0=open, R1=R9=105k, R2=R8=28.9k, R3=R7=15.3k, >R4=R6=11k, R5=10k. all 1% resistors. > > >Here&#4294967295;s the spectrum as recorded by an SRS770 spectrum analyzer. > >http://imageshack.us/photo/my-images/839/stepsin.png/ > >The 2nd harmonic is only down by 50dB. I don&#4294967295;t understand why it&#4294967295;s so >big. Is there some way to do better than this? The 9th and 11th >harmonics are big and then the 19th and 21st. > >Thanks George H.
On March 30, 2006, Tim Shoppa started a thread in this newsgroup that has some relevance to this. It should be easy to find at Google.
Reply by George Herold October 21, 20112011-10-21
On Oct 21, 9:15=A0pm, George Herold <gher...@teachspin.com> wrote:
> On Oct 21, 11:02=A0am, Bill Sloman <bill.slo...@ieee.org> wrote: > > > > > > > On Oct 21, 11:59=A0am, Jon Kirwan <j...@infinitefactors.org> wrote: > > > > On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj > > > > <bjac...@iwaynet.net> wrote: > > > >On Oct 13, 7:54=A0pm, Jon Kirwan <j...@infinitefactors.org> wrote: > > > >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson > > > > >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: > > > >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan > > > >> ><j...@infinitefactors.org> wrote: > > > > >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold > > > >> >><gher...@teachspin.com> wrote: > > > > >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrot=
e:
> > > >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold > > > > >> >>>> <gher...@teachspin.com> wrote: > > > >> >>>> >This is a continuation of the 50kHz VCO thread I started las=
t week. I
> > > >> >>>> >tried the stepped sine wave idea as suggested by James A, an=
d Phil
> > > >> >>>> >H. > > > >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sin=
e wave at
> > > >> >>>> >frequency (F). The ten outputs from the 4017 are sent throug=
h
> > > >> >>>> >appropriate resistors and into the summing junction of an op=
amp.
> > > >> >>>> >Here s a scope shot of the stepped output overlaid with a si=
ne
> > > >> >>>> >wave. > > > > >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ > > > > >> >>>> >The resistor values were chosen to intersect the sine wave a=
t each new
> > > >> >>>> >phase. (R(n) =3D 1/sin^2(n*18degrees)) > > > > >> >>>> >Approximate values, R0=3Dopen, R1=3DR9=3D105k, R2=3DR8=3D28.=
9k, R3=3DR7=3D15.3k,
> > > >> >>>> >R4=3DR6=3D11k, R5=3D10k. all 1% resistors. > > > > >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyz=
er.
> > > > >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ > > > > >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand wh=
y it s so
> > > >> >>>> >big. Is there some way to do better than this? The 9th and 1=
1th
> > > >> >>>> >harmonics are big and then the 19th and 21st. > > > > >> >>>> >Thanks George H. > > > > >> >>>> George, I don't remember the discussion. Probably didn't > > > >> >>>> read it. But if you are using a 4017 (decade counter), then > > > >> >>>> I'm guessing that you are enabling one resistor at a time > > > >> >>>> while disabling others (they tie to the summing junction from > > > >> >>>> each, moving output pin.) This worries me a little, mostly > > > >> >>>> because of delay and the fact that you are turning off one > > > >> >>>> while turning on another, but don't control that very well. I > > > >> >>>> also don't know what you are doing to filter the steps. > > > > >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded > > > >> >>>> (actually, the real inventor is Boudot, I think, but Bell > > > >> >>>> Labs was patenting everything in a flurry in the mid 1900's > > > >> >>>> and who could remember Boudot so long ago?) design where you > > > >> >>>> only change one of the outputs at a time. Not two. > > > > >> >>>> Anyway, I'll let the big hitters who probably did read the > > > >> >>>> earlier thread tell you what is more likely. Just something > > > >> >>>> that crossed my mind, is all. > > > > >> >>>> Jon- Hide quoted text - > > > > >> >>>> - Show quoted text - > > > > >> >>>Hi Jon, =A0Thanks for that. > > > > >> >>No problem. =A0In the interim, I did a quick search for summing > > > >> >>junctions and Gray codes and came up with this link: > > > > >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf > > > > >> >I posted this 8 years ago... > > > > >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf > > > > >> >I also have this book... > > > > >> >"Sequency Theory, Foundations and Applications" > > > >> >Henning F. Harmuth > > > >> >Academic Press, 1977 > > > >> >ISBN: 0-12-014569-3 > > > > >> >which covers Walsh Functions in gruesome detail ;-) > > > > >> I picke up Walsh's original paper (redone, actually, in Latex > > > >> and error corrected as it had a few in the original article) > > > >> from the web, today. =A0The paper is "A Closed Set of Normal > > > >> Orthogonal Functions." =A0I will be reading it more thoroughly > > > >> over the next couple of days. =A0Also, already listed the above > > > >> link which is a nice, short overview with two examples in it. > > > >> Finally, there are a bevy of books (some of them nearly 1300 > > > >> pages in length) on the subject regarding making and building > > > >> synthesizers. =A0I'll be ordering a few before the end of the > > > >> week. > > > > >> A whole world has opened up on this subject for me and I can > > > >> bring over Laplace and Fourier. =A0Actually, it is almost easy > > > >> for me to see how to apply this with almost any starting wave > > > >> shape, not just sine/cosine or square wave. =A0Which probably > > > >> isn't terribly practical, but interesting all the same. (Must > > > >> be some mathematician out there has already explored the use > > > >> of triangle, sawtooth, and pretty much any arbitrary basic > > > >> shape.) > > > > >> I will read your PDF, as well. =A0:) > > > > >> Jon > > > > >I was going to suggest using Walsh functions. They make great > > > >sinewaves (or ANY repetitive waveshape, although there is a problem > > > >with the "peak" on triangles). The difference between Walsh function > > > >generation and typical D-A converters is that Walsh functions > > > >distribute the switching over the period and don't need a resistive > > > >ladder where some elements need high accuracy. > > > > My intuition suggested changing only one digital output at a > > > time -- which is why I gravitated towards Gray coding. > > > Searching on that led me to Walsh, which seemed right on the > > > money. =A0But I still haven't had time to read about them. =A0I > > > did just receive my beautiful copy of Harmuth's "Sequency > > > Theory" book, though. =A0And glad to have it. =A0And it does go > > > directly into Gray code ordering of Walsh functions, so I'm > > > happy now. > > > > >Read the pdf. and it should explain how to reproduce any waveform. Y=
ou
> > > >just need to get the transform of the waveform that lists coefficien=
t
> > > >of each Walsh function. The beauty of this method is the often many =
of
> > > >them are zero and hence do not need to be implemented. > > > > On the short PDF, I clearly got this message. =A0(odd and even > > > functions, etc.) > > > > >Typically the > > > >spectrum is very low in the lower harmonics rising much higher in hi=
gh
> > > >harmonics where the "stairsteps" start to produce spectrum. Obviousl=
y
> > > >the more steps you use the further out is that rise. > > > > Got it. > > > > >I didn't see the original thread so I don't know what your applicati=
on
> > > >is. > > > > It's not my application, but George's. =A0He's using a 4017 > > > (decade decoder thing) right now (or was) and ties in > > > resistors on each of the 10 pins to a summing point of an > > > opamp in order to make a stepped sine wave. =A0But he didn't > > > like the spectrum he got, especially the 2nd harmonic. > > > > I hadn't done this, but my gut told me that the 4017 was > > > changing two resistors nearly at once (but perhaps not > > > exactly so) and with ripple carry and all I wasn't > > > comfortable and wanted to suggest thinking in terms of a gray > > > coded approach. > > > The 4017 is a twisted ring shift-register-based Johnson counter - > > whence no ripple carry within the counter, though it does have a > > ripple carry output. > > >http://www.national.com/ds/CD/CD4017BC.pdf > > > The second harmonic content was almost certainly due to the tolerances > > on his resistors - P-channel on-resistance is higher than N-channel in > > most CMOS logic, but in modern parts the channel resistance is too low > > to have explained the second harmonic content he saw. > > > <snip> > > > -- > > Bill Sloman, Nijmegen- Hide quoted text - > > > - Show quoted text - > > Hi Bill, did you read the rest of the thread? =A0I measrured an output > impedance of ~180 omhs (at 15V) for the 1MC4017 I was using. =A0That's > about 2% of the smallest resistor (10k ohm). =A0Bigger than the 1% > resistor tolerance, and certianly the major cause of the 2nd harmonic > distortion in my first circuit. > > George H. > (I hope you can forgive the slight correction, I didn't want the > thread to end with a mis-statement)- Hide quoted text - > > - Show quoted text -
So here's a late Friday night question, (after a few Genny's). If I used a bipolar output (switching the sign at zero with an opamp, and picking new resistors), would the distortion caused by the output impedance move from the 2nd harmonic to the third? Squishing both sides equally rather than just pushing the top down. I find it hard moving from distortion in the time demain to the frequency domain. George H.
Reply by George Herold October 21, 20112011-10-21
On Oct 21, 11:02=A0am, Bill Sloman <bill.slo...@ieee.org> wrote:
> On Oct 21, 11:59=A0am, Jon Kirwan <j...@infinitefactors.org> wrote: > > > > > > > On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj > > > <bjac...@iwaynet.net> wrote: > > >On Oct 13, 7:54=A0pm, Jon Kirwan <j...@infinitefactors.org> wrote: > > >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson > > > >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: > > >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan > > >> ><j...@infinitefactors.org> wrote: > > > >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold > > >> >><gher...@teachspin.com> wrote: > > > >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrote: > > >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold > > > >> >>>> <gher...@teachspin.com> wrote: > > >> >>>> >This is a continuation of the 50kHz VCO thread I started last =
week. I
> > >> >>>> >tried the stepped sine wave idea as suggested by James A, and =
Phil
> > >> >>>> >H. > > >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sine =
wave at
> > >> >>>> >frequency (F). The ten outputs from the 4017 are sent through > > >> >>>> >appropriate resistors and into the summing junction of an opam=
p.
> > >> >>>> >Here s a scope shot of the stepped output overlaid with a sine > > >> >>>> >wave. > > > >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ > > > >> >>>> >The resistor values were chosen to intersect the sine wave at =
each new
> > >> >>>> >phase. (R(n) =3D 1/sin^2(n*18degrees)) > > > >> >>>> >Approximate values, R0=3Dopen, R1=3DR9=3D105k, R2=3DR8=3D28.9k=
, R3=3DR7=3D15.3k,
> > >> >>>> >R4=3DR6=3D11k, R5=3D10k. all 1% resistors. > > > >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyzer=
.
> > > >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ > > > >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand why =
it s so
> > >> >>>> >big. Is there some way to do better than this? The 9th and 11t=
h
> > >> >>>> >harmonics are big and then the 19th and 21st. > > > >> >>>> >Thanks George H. > > > >> >>>> George, I don't remember the discussion. Probably didn't > > >> >>>> read it. But if you are using a 4017 (decade counter), then > > >> >>>> I'm guessing that you are enabling one resistor at a time > > >> >>>> while disabling others (they tie to the summing junction from > > >> >>>> each, moving output pin.) This worries me a little, mostly > > >> >>>> because of delay and the fact that you are turning off one > > >> >>>> while turning on another, but don't control that very well. I > > >> >>>> also don't know what you are doing to filter the steps. > > > >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded > > >> >>>> (actually, the real inventor is Boudot, I think, but Bell > > >> >>>> Labs was patenting everything in a flurry in the mid 1900's > > >> >>>> and who could remember Boudot so long ago?) design where you > > >> >>>> only change one of the outputs at a time. Not two. > > > >> >>>> Anyway, I'll let the big hitters who probably did read the > > >> >>>> earlier thread tell you what is more likely. Just something > > >> >>>> that crossed my mind, is all. > > > >> >>>> Jon- Hide quoted text - > > > >> >>>> - Show quoted text - > > > >> >>>Hi Jon, =A0Thanks for that. > > > >> >>No problem. =A0In the interim, I did a quick search for summing > > >> >>junctions and Gray codes and came up with this link: > > > >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf > > > >> >I posted this 8 years ago... > > > >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf > > > >> >I also have this book... > > > >> >"Sequency Theory, Foundations and Applications" > > >> >Henning F. Harmuth > > >> >Academic Press, 1977 > > >> >ISBN: 0-12-014569-3 > > > >> >which covers Walsh Functions in gruesome detail ;-) > > > >> I picke up Walsh's original paper (redone, actually, in Latex > > >> and error corrected as it had a few in the original article) > > >> from the web, today. =A0The paper is "A Closed Set of Normal > > >> Orthogonal Functions." =A0I will be reading it more thoroughly > > >> over the next couple of days. =A0Also, already listed the above > > >> link which is a nice, short overview with two examples in it. > > >> Finally, there are a bevy of books (some of them nearly 1300 > > >> pages in length) on the subject regarding making and building > > >> synthesizers. =A0I'll be ordering a few before the end of the > > >> week. > > > >> A whole world has opened up on this subject for me and I can > > >> bring over Laplace and Fourier. =A0Actually, it is almost easy > > >> for me to see how to apply this with almost any starting wave > > >> shape, not just sine/cosine or square wave. =A0Which probably > > >> isn't terribly practical, but interesting all the same. (Must > > >> be some mathematician out there has already explored the use > > >> of triangle, sawtooth, and pretty much any arbitrary basic > > >> shape.) > > > >> I will read your PDF, as well. =A0:) > > > >> Jon > > > >I was going to suggest using Walsh functions. They make great > > >sinewaves (or ANY repetitive waveshape, although there is a problem > > >with the "peak" on triangles). The difference between Walsh function > > >generation and typical D-A converters is that Walsh functions > > >distribute the switching over the period and don't need a resistive > > >ladder where some elements need high accuracy. > > > My intuition suggested changing only one digital output at a > > time -- which is why I gravitated towards Gray coding. > > Searching on that led me to Walsh, which seemed right on the > > money. =A0But I still haven't had time to read about them. =A0I > > did just receive my beautiful copy of Harmuth's "Sequency > > Theory" book, though. =A0And glad to have it. =A0And it does go > > directly into Gray code ordering of Walsh functions, so I'm > > happy now. > > > >Read the pdf. and it should explain how to reproduce any waveform. You > > >just need to get the transform of the waveform that lists coefficient > > >of each Walsh function. The beauty of this method is the often many of > > >them are zero and hence do not need to be implemented. > > > On the short PDF, I clearly got this message. =A0(odd and even > > functions, etc.) > > > >Typically the > > >spectrum is very low in the lower harmonics rising much higher in high > > >harmonics where the "stairsteps" start to produce spectrum. Obviously > > >the more steps you use the further out is that rise. > > > Got it. > > > >I didn't see the original thread so I don't know what your application > > >is. > > > It's not my application, but George's. =A0He's using a 4017 > > (decade decoder thing) right now (or was) and ties in > > resistors on each of the 10 pins to a summing point of an > > opamp in order to make a stepped sine wave. =A0But he didn't > > like the spectrum he got, especially the 2nd harmonic. > > > I hadn't done this, but my gut told me that the 4017 was > > changing two resistors nearly at once (but perhaps not > > exactly so) and with ripple carry and all I wasn't > > comfortable and wanted to suggest thinking in terms of a gray > > coded approach. > > The 4017 is a twisted ring shift-register-based Johnson counter - > whence no ripple carry within the counter, though it does have a > ripple carry output. > > http://www.national.com/ds/CD/CD4017BC.pdf > > The second harmonic content was almost certainly due to the tolerances > on his resistors - P-channel on-resistance is higher than N-channel in > most CMOS logic, but in modern parts the channel resistance is too low > to have explained the second harmonic content he saw. > > <snip> > > -- > Bill Sloman, Nijmegen- Hide quoted text - > > - Show quoted text -
Hi Bill, did you read the rest of the thread? I measrured an output impedance of ~180 omhs (at 15V) for the 1MC4017 I was using. That's about 2% of the smallest resistor (10k ohm). Bigger than the 1% resistor tolerance, and certianly the major cause of the 2nd harmonic distortion in my first circuit. George H. (I hope you can forgive the slight correction, I didn't want the thread to end with a mis-statement)
Reply by Jon Kirwan October 21, 20112011-10-21
On Fri, 21 Oct 2011 08:02:39 -0700 (PDT), Bill Sloman
<bill.sloman@ieee.org> wrote:

>On Oct 21, 11:59&#4294967295;am, Jon Kirwan <j...@infinitefactors.org> wrote: >> On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj >> >> >> >> >> >> >> >> >> >> <bjac...@iwaynet.net> wrote: >> >On Oct 13, 7:54&#4294967295;pm, Jon Kirwan <j...@infinitefactors.org> wrote: >> >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson >> >> >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: >> >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan >> >> ><j...@infinitefactors.org> wrote: >> >> >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold >> >> >><gher...@teachspin.com> wrote: >> >> >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrote: >> >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold >> >> >> >>>> <gher...@teachspin.com> wrote: >> >> >>>> >This is a continuation of the 50kHz VCO thread I started last week. I >> >> >>>> >tried the stepped sine wave idea as suggested by James A, and Phil >> >> >>>> >H. >> >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sine wave at >> >> >>>> >frequency (F). The ten outputs from the 4017 are sent through >> >> >>>> >appropriate resistors and into the summing junction of an opamp. >> >> >>>> >Here s a scope shot of the stepped output overlaid with a sine >> >> >>>> >wave. >> >> >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ >> >> >> >>>> >The resistor values were chosen to intersect the sine wave at each new >> >> >>>> >phase. (R(n) = 1/sin^2(n*18degrees)) >> >> >> >>>> >Approximate values, R0=open, R1=R9=105k, R2=R8=28.9k, R3=R7=15.3k, >> >> >>>> >R4=R6=11k, R5=10k. all 1% resistors. >> >> >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyzer. >> >> >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ >> >> >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand why it s so >> >> >>>> >big. Is there some way to do better than this? The 9th and 11th >> >> >>>> >harmonics are big and then the 19th and 21st. >> >> >> >>>> >Thanks George H. >> >> >> >>>> George, I don't remember the discussion. Probably didn't >> >> >>>> read it. But if you are using a 4017 (decade counter), then >> >> >>>> I'm guessing that you are enabling one resistor at a time >> >> >>>> while disabling others (they tie to the summing junction from >> >> >>>> each, moving output pin.) This worries me a little, mostly >> >> >>>> because of delay and the fact that you are turning off one >> >> >>>> while turning on another, but don't control that very well. I >> >> >>>> also don't know what you are doing to filter the steps. >> >> >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded >> >> >>>> (actually, the real inventor is Boudot, I think, but Bell >> >> >>>> Labs was patenting everything in a flurry in the mid 1900's >> >> >>>> and who could remember Boudot so long ago?) design where you >> >> >>>> only change one of the outputs at a time. Not two. >> >> >> >>>> Anyway, I'll let the big hitters who probably did read the >> >> >>>> earlier thread tell you what is more likely. Just something >> >> >>>> that crossed my mind, is all. >> >> >> >>>> Jon- Hide quoted text - >> >> >> >>>> - Show quoted text - >> >> >> >>>Hi Jon, &#4294967295;Thanks for that. >> >> >> >>No problem. &#4294967295;In the interim, I did a quick search for summing >> >> >>junctions and Gray codes and came up with this link: >> >> >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf >> >> >> >I posted this 8 years ago... >> >> >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf >> >> >> >I also have this book... >> >> >> >"Sequency Theory, Foundations and Applications" >> >> >Henning F. Harmuth >> >> >Academic Press, 1977 >> >> >ISBN: 0-12-014569-3 >> >> >> >which covers Walsh Functions in gruesome detail ;-) >> >> >> I picke up Walsh's original paper (redone, actually, in Latex >> >> and error corrected as it had a few in the original article) >> >> from the web, today. &#4294967295;The paper is "A Closed Set of Normal >> >> Orthogonal Functions." &#4294967295;I will be reading it more thoroughly >> >> over the next couple of days. &#4294967295;Also, already listed the above >> >> link which is a nice, short overview with two examples in it. >> >> Finally, there are a bevy of books (some of them nearly 1300 >> >> pages in length) on the subject regarding making and building >> >> synthesizers. &#4294967295;I'll be ordering a few before the end of the >> >> week. >> >> >> A whole world has opened up on this subject for me and I can >> >> bring over Laplace and Fourier. &#4294967295;Actually, it is almost easy >> >> for me to see how to apply this with almost any starting wave >> >> shape, not just sine/cosine or square wave. &#4294967295;Which probably >> >> isn't terribly practical, but interesting all the same. (Must >> >> be some mathematician out there has already explored the use >> >> of triangle, sawtooth, and pretty much any arbitrary basic >> >> shape.) >> >> >> I will read your PDF, as well. &#4294967295;:) >> >> >> Jon >> >> >I was going to suggest using Walsh functions. They make great >> >sinewaves (or ANY repetitive waveshape, although there is a problem >> >with the "peak" on triangles). The difference between Walsh function >> >generation and typical D-A converters is that Walsh functions >> >distribute the switching over the period and don't need a resistive >> >ladder where some elements need high accuracy. >> >> My intuition suggested changing only one digital output at a >> time -- which is why I gravitated towards Gray coding. >> Searching on that led me to Walsh, which seemed right on the >> money. &#4294967295;But I still haven't had time to read about them. &#4294967295;I >> did just receive my beautiful copy of Harmuth's "Sequency >> Theory" book, though. &#4294967295;And glad to have it. &#4294967295;And it does go >> directly into Gray code ordering of Walsh functions, so I'm >> happy now. >> >> >Read the pdf. and it should explain how to reproduce any waveform. You >> >just need to get the transform of the waveform that lists coefficient >> >of each Walsh function. The beauty of this method is the often many of >> >them are zero and hence do not need to be implemented. >> >> On the short PDF, I clearly got this message. &#4294967295;(odd and even >> functions, etc.) >> >> >Typically the >> >spectrum is very low in the lower harmonics rising much higher in high >> >harmonics where the "stairsteps" start to produce spectrum. Obviously >> >the more steps you use the further out is that rise. >> >> Got it. >> >> >I didn't see the original thread so I don't know what your application >> >is. >> >> It's not my application, but George's. &#4294967295;He's using a 4017 >> (decade decoder thing) right now (or was) and ties in >> resistors on each of the 10 pins to a summing point of an >> opamp in order to make a stepped sine wave. &#4294967295;But he didn't >> like the spectrum he got, especially the 2nd harmonic. >> >> I hadn't done this, but my gut told me that the 4017 was >> changing two resistors nearly at once (but perhaps not >> exactly so) and with ripple carry and all I wasn't >> comfortable and wanted to suggest thinking in terms of a gray >> coded approach. > >The 4017 is a twisted ring shift-register-based Johnson counter - >whence no ripple carry within the counter, though it does have a >ripple carry output. > >http://www.national.com/ds/CD/CD4017BC.pdf
Thanks, Bill, for the correction on that point.
>The second harmonic content was almost certainly due to the tolerances >on his resistors - P-channel on-resistance is higher than N-channel in >most CMOS logic, but in modern parts the channel resistance is too low >to have explained the second harmonic content he saw.
I was explaining my early reasoning for commenting at all, which as you point out isn't the explanation. I've learned that much as I've been reading here. So that's been good for me. However, I remain very happy to have learned a few things about gray code ordered Walsh functions, too. Anyway, thanks for the summary and correction. It helps. Jon
Reply by Bill Sloman October 21, 20112011-10-21
On Oct 21, 11:59=A0am, Jon Kirwan <j...@infinitefactors.org> wrote:
> On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj > > > > > > > > > > <bjac...@iwaynet.net> wrote: > >On Oct 13, 7:54=A0pm, Jon Kirwan <j...@infinitefactors.org> wrote: > >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson > > >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: > >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan > >> ><j...@infinitefactors.org> wrote: > > >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold > >> >><gher...@teachspin.com> wrote: > > >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrote: > >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold > > >> >>>> <gher...@teachspin.com> wrote: > >> >>>> >This is a continuation of the 50kHz VCO thread I started last we=
ek. I
> >> >>>> >tried the stepped sine wave idea as suggested by James A, and Ph=
il
> >> >>>> >H. > >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sine wa=
ve at
> >> >>>> >frequency (F). The ten outputs from the 4017 are sent through > >> >>>> >appropriate resistors and into the summing junction of an opamp. > >> >>>> >Here s a scope shot of the stepped output overlaid with a sine > >> >>>> >wave. > > >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ > > >> >>>> >The resistor values were chosen to intersect the sine wave at ea=
ch new
> >> >>>> >phase. (R(n) =3D 1/sin^2(n*18degrees)) > > >> >>>> >Approximate values, R0=3Dopen, R1=3DR9=3D105k, R2=3DR8=3D28.9k, =
R3=3DR7=3D15.3k,
> >> >>>> >R4=3DR6=3D11k, R5=3D10k. all 1% resistors. > > >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyzer. > > >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ > > >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand why it=
s so
> >> >>>> >big. Is there some way to do better than this? The 9th and 11th > >> >>>> >harmonics are big and then the 19th and 21st. > > >> >>>> >Thanks George H. > > >> >>>> George, I don't remember the discussion. Probably didn't > >> >>>> read it. But if you are using a 4017 (decade counter), then > >> >>>> I'm guessing that you are enabling one resistor at a time > >> >>>> while disabling others (they tie to the summing junction from > >> >>>> each, moving output pin.) This worries me a little, mostly > >> >>>> because of delay and the fact that you are turning off one > >> >>>> while turning on another, but don't control that very well. I > >> >>>> also don't know what you are doing to filter the steps. > > >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded > >> >>>> (actually, the real inventor is Boudot, I think, but Bell > >> >>>> Labs was patenting everything in a flurry in the mid 1900's > >> >>>> and who could remember Boudot so long ago?) design where you > >> >>>> only change one of the outputs at a time. Not two. > > >> >>>> Anyway, I'll let the big hitters who probably did read the > >> >>>> earlier thread tell you what is more likely. Just something > >> >>>> that crossed my mind, is all. > > >> >>>> Jon- Hide quoted text - > > >> >>>> - Show quoted text - > > >> >>>Hi Jon, =A0Thanks for that. > > >> >>No problem. =A0In the interim, I did a quick search for summing > >> >>junctions and Gray codes and came up with this link: > > >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf > > >> >I posted this 8 years ago... > > >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf > > >> >I also have this book... > > >> >"Sequency Theory, Foundations and Applications" > >> >Henning F. Harmuth > >> >Academic Press, 1977 > >> >ISBN: 0-12-014569-3 > > >> >which covers Walsh Functions in gruesome detail ;-) > > >> I picke up Walsh's original paper (redone, actually, in Latex > >> and error corrected as it had a few in the original article) > >> from the web, today. =A0The paper is "A Closed Set of Normal > >> Orthogonal Functions." =A0I will be reading it more thoroughly > >> over the next couple of days. =A0Also, already listed the above > >> link which is a nice, short overview with two examples in it. > >> Finally, there are a bevy of books (some of them nearly 1300 > >> pages in length) on the subject regarding making and building > >> synthesizers. =A0I'll be ordering a few before the end of the > >> week. > > >> A whole world has opened up on this subject for me and I can > >> bring over Laplace and Fourier. =A0Actually, it is almost easy > >> for me to see how to apply this with almost any starting wave > >> shape, not just sine/cosine or square wave. =A0Which probably > >> isn't terribly practical, but interesting all the same. (Must > >> be some mathematician out there has already explored the use > >> of triangle, sawtooth, and pretty much any arbitrary basic > >> shape.) > > >> I will read your PDF, as well. =A0:) > > >> Jon > > >I was going to suggest using Walsh functions. They make great > >sinewaves (or ANY repetitive waveshape, although there is a problem > >with the "peak" on triangles). The difference between Walsh function > >generation and typical D-A converters is that Walsh functions > >distribute the switching over the period and don't need a resistive > >ladder where some elements need high accuracy. > > My intuition suggested changing only one digital output at a > time -- which is why I gravitated towards Gray coding. > Searching on that led me to Walsh, which seemed right on the > money. =A0But I still haven't had time to read about them. =A0I > did just receive my beautiful copy of Harmuth's "Sequency > Theory" book, though. =A0And glad to have it. =A0And it does go > directly into Gray code ordering of Walsh functions, so I'm > happy now. > > >Read the pdf. and it should explain how to reproduce any waveform. You > >just need to get the transform of the waveform that lists coefficient > >of each Walsh function. The beauty of this method is the often many of > >them are zero and hence do not need to be implemented. > > On the short PDF, I clearly got this message. =A0(odd and even > functions, etc.) > > >Typically the > >spectrum is very low in the lower harmonics rising much higher in high > >harmonics where the "stairsteps" start to produce spectrum. Obviously > >the more steps you use the further out is that rise. > > Got it. > > >I didn't see the original thread so I don't know what your application > >is. > > It's not my application, but George's. =A0He's using a 4017 > (decade decoder thing) right now (or was) and ties in > resistors on each of the 10 pins to a summing point of an > opamp in order to make a stepped sine wave. =A0But he didn't > like the spectrum he got, especially the 2nd harmonic. > > I hadn't done this, but my gut told me that the 4017 was > changing two resistors nearly at once (but perhaps not > exactly so) and with ripple carry and all I wasn't > comfortable and wanted to suggest thinking in terms of a gray > coded approach.
The 4017 is a twisted ring shift-register-based Johnson counter - whence no ripple carry within the counter, though it does have a ripple carry output. http://www.national.com/ds/CD/CD4017BC.pdf The second harmonic content was almost certainly due to the tolerances on his resistors - P-channel on-resistance is higher than N-channel in most CMOS logic, but in modern parts the channel resistance is too low to have explained the second harmonic content he saw. <snip> -- Bill Sloman, Nijmegen
Reply by Michael A. Terrell October 21, 20112011-10-21
whit3rd wrote:
> > On Wednesday, October 19, 2011 6:39:57 AM UTC-7, George Herold wrote: > > > > > You can get 0.1% resistors from Sussumu for ~$0.20 each. > > > Ahh, they only have the 'standard' 1% values. > > Drat. I had visions of a bin for each value, 100 ohms to 100k, at > 0.1% increments; 4 x 4 inch bins, up from the floor to about five > feet, spread out 154 feet, in the back of every Radio Shack.
You mean 154 feet of empty bins? -- You can't have a sense of humor, if you have no sense.
Reply by Jon Kirwan October 21, 20112011-10-21
On Fri, 21 Oct 2011 00:04:21 -0700 (PDT), Benj
<bjacoby@iwaynet.net> wrote:

>On Oct 13, 7:54&#4294967295;pm, Jon Kirwan <j...@infinitefactors.org> wrote: >> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson >> >> <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: >> >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan >> ><j...@infinitefactors.org> wrote: >> >> >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold >> >><gher...@teachspin.com> wrote: >> >> >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrote: >> >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold >> >> >>>> <gher...@teachspin.com> wrote: >> >>>> >This is a continuation of the 50kHz VCO thread I started last week. I >> >>>> >tried the stepped sine wave idea as suggested by James A, and Phil >> >>>> >H. >> >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sine wave at >> >>>> >frequency (F). The ten outputs from the 4017 are sent through >> >>>> >appropriate resistors and into the summing junction of an opamp. >> >>>> >Here s a scope shot of the stepped output overlaid with a sine >> >>>> >wave. >> >> >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ >> >> >>>> >The resistor values were chosen to intersect the sine wave at each new >> >>>> >phase. (R(n) = 1/sin^2(n*18degrees)) >> >> >>>> >Approximate values, R0=open, R1=R9=105k, R2=R8=28.9k, R3=R7=15.3k, >> >>>> >R4=R6=11k, R5=10k. all 1% resistors. >> >> >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyzer. >> >> >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ >> >> >>>> >The 2nd harmonic is only down by 50dB. I don t understand why it s so >> >>>> >big. Is there some way to do better than this? The 9th and 11th >> >>>> >harmonics are big and then the 19th and 21st. >> >> >>>> >Thanks George H. >> >> >>>> George, I don't remember the discussion. Probably didn't >> >>>> read it. But if you are using a 4017 (decade counter), then >> >>>> I'm guessing that you are enabling one resistor at a time >> >>>> while disabling others (they tie to the summing junction from >> >>>> each, moving output pin.) This worries me a little, mostly >> >>>> because of delay and the fact that you are turning off one >> >>>> while turning on another, but don't control that very well. I >> >>>> also don't know what you are doing to filter the steps. >> >> >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded >> >>>> (actually, the real inventor is Boudot, I think, but Bell >> >>>> Labs was patenting everything in a flurry in the mid 1900's >> >>>> and who could remember Boudot so long ago?) design where you >> >>>> only change one of the outputs at a time. Not two. >> >> >>>> Anyway, I'll let the big hitters who probably did read the >> >>>> earlier thread tell you what is more likely. Just something >> >>>> that crossed my mind, is all. >> >> >>>> Jon- Hide quoted text - >> >> >>>> - Show quoted text - >> >> >>>Hi Jon, &#4294967295;Thanks for that. >> >> >>No problem. &#4294967295;In the interim, I did a quick search for summing >> >>junctions and Gray codes and came up with this link: >> >> >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf >> >> >I posted this 8 years ago... >> >> >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf >> >> >I also have this book... >> >> >"Sequency Theory, Foundations and Applications" >> >Henning F. Harmuth >> >Academic Press, 1977 >> >ISBN: 0-12-014569-3 >> >> >which covers Walsh Functions in gruesome detail ;-) >> >> I picke up Walsh's original paper (redone, actually, in Latex >> and error corrected as it had a few in the original article) >> from the web, today. &#4294967295;The paper is "A Closed Set of Normal >> Orthogonal Functions." &#4294967295;I will be reading it more thoroughly >> over the next couple of days. &#4294967295;Also, already listed the above >> link which is a nice, short overview with two examples in it. >> Finally, there are a bevy of books (some of them nearly 1300 >> pages in length) on the subject regarding making and building >> synthesizers. &#4294967295;I'll be ordering a few before the end of the >> week. >> >> A whole world has opened up on this subject for me and I can >> bring over Laplace and Fourier. &#4294967295;Actually, it is almost easy >> for me to see how to apply this with almost any starting wave >> shape, not just sine/cosine or square wave. &#4294967295;Which probably >> isn't terribly practical, but interesting all the same. (Must >> be some mathematician out there has already explored the use >> of triangle, sawtooth, and pretty much any arbitrary basic >> shape.) >> >> I will read your PDF, as well. &#4294967295;:) >> >> Jon > >I was going to suggest using Walsh functions. They make great >sinewaves (or ANY repetitive waveshape, although there is a problem >with the "peak" on triangles). The difference between Walsh function >generation and typical D-A converters is that Walsh functions >distribute the switching over the period and don't need a resistive >ladder where some elements need high accuracy.
My intuition suggested changing only one digital output at a time -- which is why I gravitated towards Gray coding. Searching on that led me to Walsh, which seemed right on the money. But I still haven't had time to read about them. I did just receive my beautiful copy of Harmuth's "Sequency Theory" book, though. And glad to have it. And it does go directly into Gray code ordering of Walsh functions, so I'm happy now.
>Read the pdf. and it should explain how to reproduce any waveform. You >just need to get the transform of the waveform that lists coefficient >of each Walsh function. The beauty of this method is the often many of >them are zero and hence do not need to be implemented.
On the short PDF, I clearly got this message. (odd and even functions, etc.)
>Typically the >spectrum is very low in the lower harmonics rising much higher in high >harmonics where the "stairsteps" start to produce spectrum. Obviously >the more steps you use the further out is that rise.
Got it.
>I didn't see the original thread so I don't know what your application >is.
It's not my application, but George's. He's using a 4017 (decade decoder thing) right now (or was) and ties in resistors on each of the 10 pins to a summing point of an opamp in order to make a stepped sine wave. But he didn't like the spectrum he got, especially the 2nd harmonic. I hadn't done this, but my gut told me that the 4017 was changing two resistors nearly at once (but perhaps not exactly so) and with ripple carry and all I wasn't comfortable and wanted to suggest thinking in terms of a gray coded approach. Which is what led me to Walsh, which I'd not heard of before but wish I had. Jon
Reply by Benj October 21, 20112011-10-21
On Oct 13, 7:54=A0pm, Jon Kirwan <j...@infinitefactors.org> wrote:
> On Thu, 13 Oct 2011 16:08:49 -0700, Jim Thompson > > > > > > > > > > <To-Email-Use-The-Envelope-I...@On-My-Web-Site.com> wrote: > >On Thu, 13 Oct 2011 10:24:17 -0700, Jon Kirwan > ><j...@infinitefactors.org> wrote: > > >>On Thu, 13 Oct 2011 10:13:20 -0700 (PDT), George Herold > >><gher...@teachspin.com> wrote: > > >>>On Oct 13, 12:59 pm, Jon Kirwan <j...@infinitefactors.org> wrote: > >>>> On Thu, 13 Oct 2011 09:39:21 -0700 (PDT), George Herold > > >>>> <gher...@teachspin.com> wrote: > >>>> >This is a continuation of the 50kHz VCO thread I started last week.=
I
> >>>> >tried the stepped sine wave idea as suggested by James A, and Phil > >>>> >H. > >>>> >The circuit clocks a MC14017 at 10x(F) to make a stepped sine wave =
at
> >>>> >frequency (F). The ten outputs from the 4017 are sent through > >>>> >appropriate resistors and into the summing junction of an opamp. > >>>> >Here s a scope shot of the stepped output overlaid with a sine > >>>> >wave. > > >>>> >http://imageshack.us/photo/my-images/560/tek0024.png/ > > >>>> >The resistor values were chosen to intersect the sine wave at each =
new
> >>>> >phase. (R(n) =3D 1/sin^2(n*18degrees)) > > >>>> >Approximate values, R0=3Dopen, R1=3DR9=3D105k, R2=3DR8=3D28.9k, R3=
=3DR7=3D15.3k,
> >>>> >R4=3DR6=3D11k, R5=3D10k. all 1% resistors. > > >>>> >Here s the spectrum as recorded by an SRS770 spectrum analyzer. > > >>>> >http://imageshack.us/photo/my-images/839/stepsin.png/ > > >>>> >The 2nd harmonic is only down by 50dB. I don t understand why it s =
so
> >>>> >big. Is there some way to do better than this? The 9th and 11th > >>>> >harmonics are big and then the 19th and 21st. > > >>>> >Thanks George H. > > >>>> George, I don't remember the discussion. Probably didn't > >>>> read it. But if you are using a 4017 (decade counter), then > >>>> I'm guessing that you are enabling one resistor at a time > >>>> while disabling others (they tie to the summing junction from > >>>> each, moving output pin.) This worries me a little, mostly > >>>> because of delay and the fact that you are turning off one > >>>> while turning on another, but don't control that very well. I > >>>> also don't know what you are doing to filter the steps. > > >>>> Anyway, I'd have wanted to consider, instead, a Gray-coded > >>>> (actually, the real inventor is Boudot, I think, but Bell > >>>> Labs was patenting everything in a flurry in the mid 1900's > >>>> and who could remember Boudot so long ago?) design where you > >>>> only change one of the outputs at a time. Not two. > > >>>> Anyway, I'll let the big hitters who probably did read the > >>>> earlier thread tell you what is more likely. Just something > >>>> that crossed my mind, is all. > > >>>> Jon- Hide quoted text - > > >>>> - Show quoted text - > > >>>Hi Jon, =A0Thanks for that. > > >>No problem. =A0In the interim, I did a quick search for summing > >>junctions and Gray codes and came up with this link: > > >>http://www.wiseguysynth.com/larry/schematics/walsh/walsh.pdf > > >I posted this 8 years ago... > > >http://www.analog-innovations.com/SED/SineEqualsSumOfSquares.pdf > > >I also have this book... > > >"Sequency Theory, Foundations and Applications" > >Henning F. Harmuth > >Academic Press, 1977 > >ISBN: 0-12-014569-3 > > >which covers Walsh Functions in gruesome detail ;-) > > I picke up Walsh's original paper (redone, actually, in Latex > and error corrected as it had a few in the original article) > from the web, today. =A0The paper is "A Closed Set of Normal > Orthogonal Functions." =A0I will be reading it more thoroughly > over the next couple of days. =A0Also, already listed the above > link which is a nice, short overview with two examples in it. > Finally, there are a bevy of books (some of them nearly 1300 > pages in length) on the subject regarding making and building > synthesizers. =A0I'll be ordering a few before the end of the > week. > > A whole world has opened up on this subject for me and I can > bring over Laplace and Fourier. =A0Actually, it is almost easy > for me to see how to apply this with almost any starting wave > shape, not just sine/cosine or square wave. =A0Which probably > isn't terribly practical, but interesting all the same. (Must > be some mathematician out there has already explored the use > of triangle, sawtooth, and pretty much any arbitrary basic > shape.) > > I will read your PDF, as well. =A0:) > > Jon
I was going to suggest using Walsh functions. They make great sinewaves (or ANY repetitive waveshape, although there is a problem with the "peak" on triangles). The difference between Walsh function generation and typical D-A converters is that Walsh functions distribute the switching over the period and don't need a resistive ladder where some elements need high accuracy. Read the pdf. and it should explain how to reproduce any waveform. You just need to get the transform of the waveform that lists coefficient of each Walsh function. The beauty of this method is the often many of them are zero and hence do not need to be implemented. Typically the spectrum is very low in the lower harmonics rising much higher in high harmonics where the "stairsteps" start to produce spectrum. Obviously the more steps you use the further out is that rise. I didn't see the original thread so I don't know what your application is.