Reply by Michael A. Terrell December 13, 20142014-12-13
John Larkin wrote:
> > On Sun, 07 Dec 2014 14:07:26 +0100, Gerhard Hoffmann > <ghf@hoffmann-hochfrequenz.de> wrote: > > >Am 06.12.2014 um 22:37 schrieb John Larkin: > >> On Sat, 06 Dec 2014 16:17:49 -0500, Phil Hobbs > >> <hobbs@electrooptical.net> wrote: > > > >>>> It's pronounced "Keysight" > >>> > >>> Five years from now it'll be "FuzzyNuts". You heard it here first. > >>> > >> > >> > >> Maybe they'll buy Rigol and put them out of business. Ditto! > > > >No, Rigol will buy them. > > > >They will follow the HP wafer tester operation. > > > >HP-> Agilent -> Verigy -> outsource your hardware production > >to China until you are unable to deliver -> move it somewhere else > >(India IIRC) -> sell the farm to Advantest. > > > >But you are right, too. While the Chinese could not produce > >the high end hardware, they were able to do a low-end tester > >that was compatible to Verigy's as a private stealth activity. > >Verigy had to buy it back, I heard saying. > > > >Gerhard > > Agilent acquired Varian Inc a few years ago. That included the NMR > operation. They promptly fired most of the US workers and moved the > operation to Maylasia. That turned out to not work very well, so they > recently shut it down. > > Is this what is called "creative destruction"?
That's how Yahoo operates. Buy a company, destroy it and write it off. They did it to Geocities, Broadcast.com, and others. -- Anyone wanting to run for any political office in the US should have to have a DD214, and a honorable discharge.
Reply by rickman December 11, 20142014-12-11
On 12/11/2014 3:39 PM, Phil Hobbs wrote:
> On 12/11/2014 3:02 PM, rickman wrote: >> On 12/11/2014 1:40 PM, Phil Hobbs wrote: >>> On 12/11/2014 1:26 PM, rickman wrote: >>>> On 12/11/2014 12:28 PM, Phil Hobbs wrote: >>>>> On 12/11/2014 11:35 AM, rickman wrote: >>>>>> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >>>>>>> On 12/11/2014 10:55 AM, John Larkin wrote: >>>>>>>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>>>>>>> <hobbs@electrooptical.net> wrote: >>>>>>>> >>>>>>>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>>>>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>>>>>>> >>>>>>>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, >>>>>>>>>>> using a phase increment M = 7036874417767. Being an >>>>>>>>>>> odd number, M is relatively prime to 2**48. Thus the >>>>>>>>>>> sequence of phase accumulator values will not repeat >>>>>>>>>>> for M cycles of the output. This requires 703687.4 >>>>>>>>>>> seconds which is more than 8 days, despite an apparent >>>>>>>>>>> periodicity of 100 ns. >>>>>>>>>>> >>>>>>>>>>> The DAC values may repeat more often than this, or >>>>>>>>>>> very nearly repeat (which is what Gerhard was talking >>>>>>>>>>> about on time-nuts) but there is the potential for DAC >>>>>>>>>>> nonlinearities and slewing effects to produce phase >>>>>>>>>>> and amplitude perturbations on time scales of hours to >>>>>>>>>>> days. >>>>>>>>>>> >>>>>>>>>>> Since time and frequency can be measured to absurd >>>>>>>>>>> accuracy, it's quite possible to get easily >>>>>>>>>>> measureable phase errors at surprisingly long time >>>>>>>>>>> scales. >>>>>>>>>> >>>>>>>>>> I really don't get your point. To make a 10 MHz sine >>>>>>>>>> wave from a 400 MHz clock, the phase step will be M/400 >>>>>>>>>> where M is the modulus. So your phase increment *can't* >>>>>>>>>> be prime relative to the modulus. Where did you get the >>>>>>>>>> numbers you are working with? >>>>>>>>>> >>>>>>>>>> I have no idea why you are talking about the DAC. If >>>>>>>>>> you are referring to the values fed to the DAC repeating >>>>>>>>>> more often than the phase values, then you are talking >>>>>>>>>> about truncation of the phase values which *is* where >>>>>>>>>> spurs come from. >>>>>>>>>> >>>>>>>>>> So what was your point? >>>>>>>>>> >>>>>>>>> Forget it. >>>>>>>>> >>>>>>>>> Cheers >>>>>>>>> >>>>>>>>> Phil Hobbs >>>>>>>> >>>>>>>> Rickman just wants to argue and insult people. Better to >>>>>>>> ignore him. >>>>>>>> >>>>>>>> >>>>>>> I don't mind arguing, but arguing without plugging in the >>>>>>> numbers to try to understand the example is, *ahem*, >>>>>>> unproductive. >>>>>> >>>>>> So why don't you want to discuss a real example then? You >>>>>> picked three numbers that were not possible, they don't add up... >>>>>> or divide up actually. Do you wish to pick some real numbers? >>>>>> I would prefer to use numbers I can work with on my calculator so >>>>>> a modulus of less than 2^32 would be better. >>>>> >>>>> Get a better calculator. ;) >>>>> >>>>> c:\>mc2 2**48/7036874417767 >>>>> >>>>> 39.9999999999965894 >>>>> >>>>> That will make 10 MHz with a 48-bit, 400 MHz DDS such as an >>>>> AD9956. >>>>> >>>>> All I need for the argument is that the increment is relatively >>>>> prime to 2**48. >>>>> >>>>> What part don't you like? >>>> >>>> Ok, let's ignore that this does *not* produce 10 MHz. I guess it is >>>> close enough. 10.000000000000900E+00 according to my spread sheet. >>>> >>>>>>>>>>> potential for DAC nonlinearities and slewing effects >>>>>>>>>>> to produce phase and amplitude perturbations on time >>>>>>>>>>> scales of hours to days. >>>> >>>> DAC irregularities are not something that the DDS is about really. >>> >>> The DAC is on-chip. We're talking reality here. You might want to go >>> read a couple of datasheets, e.g. that very nice AD9956 under >>> discussion. >> >> Yes, in a DDS chip the DAC is on most DDS chips, but the fact remains >> that it is not an inherent part of a DDS function. There are digital >> DDS functions which are all digital such as the one discussed previously >> in the Timing Solutions design. Their patent even says it included a >> DDS, but it does not feed a DAC, it feeds a multiplier to do the mixing. >> >> If you want to discuss imperfections of DACs then we can do that, but >> don't blame them on the DDS circuit that feeds it even if it is on the >> same chip. I don't think this is semantics. I don't see any value in >> mixing the three causes of spurs. >> >> >>>> That is an issue of the DAC in question, no? I'm not sure the time >>>> scale would need to be days or whatever. >>> >>> I just calculated that it could be up to a week, with very plausible and >>> typical values. You could make it as long as months if you picked some >>> odd increment closer to 2**47 (200 MHz). >> >> You are talking about the cycle time of the digital pattern. But this >> pattern does not create spurs. All of these numbers are exact. >> >> >>>> I expect they will be more related to the input clock period. >>> >>> You're weaselling. As I said, it's an analogue issue, because the ADC >>> waveform won't repeat exactly (even in the spherical cow universe) for >>> more than a week, so you can get spurs that are only a few microhertz >>> from the carrier. >> >> First, why not dispense with the personal comments, ok? No need to call >> names. If you don't want to discuss this, then let's stop. >> >> When you say the waveform won't repeat "exactly" how does that cause >> spurs? You mean the digital words won't repeat exactly, but that is >> irrelevant. All that matters is that they don't have error. >> >> Any spurs you see at the output of the DAC are due to aliasing from the >> sampling or imperfections from the DAC. A good enough anti-alias filter >> should reduce the anti-alias problem as needed. Of course an anti-alias >> filter can cause other issues you may not like. >> >> >>>> Regardless this comes from the fact that it is producing an analog >>>> signal. You have the same problem in using amplifiers or any other >>>> analog component. >>> >>> No, because there isn't the periodicity issue. >> >> Irrelevant. Amplifiers have distortion just as any analog part does. >> Periodicity is not important to that. Distortion in the amplifiers will >> be related to the signal frequency. Distortion in the DAC will be >> related to the signal frequency as well as the clock frequency since the >> clock shows up in the signal until it passes through the anti-alias >> filter. >> >> >>>> Is that what you wish to discuss, the DAC caused spurs? I didn't >>>> get this from the referenced discussions, but then they were all >>>> over the map with a lot of imprecise language, so hard to tell. >>> >>> As I said above, >>> >>>>>>>> The DAC values may repeat more often than this, or >>> >>>>>>>> very nearly repeat (which is what Gerhard was talking >>> >>>>>>>> about on time-nuts) but there is the potential for DAC >>> >>>>>>>> nonlinearities and slewing effects to produce phase >>> >>>>>>>> and amplitude perturbations on time scales of hours to >>> >>>>>>>> days. >>> >>>>>>>> >>> >>>>>>>> Since time and frequency can be measured to absurd >>> >>>>>>>> accuracy, it's quite possible to get easily >>> >>>>>>>> measureable phase errors at surprisingly long time >>> >>>>>>>> scales. >>> >>> I'm not sure what you find unclear about that. >> >> Please separate the DAC distortion effects from the digital issues. How >> would the DAC values (I assume you mean the sine values) repeat more >> often than the phase values unless the phase is being truncated? If the >> phase is truncated that *will* produce errors which produces spurs. >> >> >>>> I'll summarize this again for clarity. There are three sources of >>>> errors (spurs) in a DDS. Errors from phase truncation, limited >>>> amplitude resolution and if you are using a DAC to produce an analog >>>> signal, DAC related errors. >>>> >>>> The phase truncation errors are easily avoided by not truncating the >>>> phase which limits the producible frequencies. However, there are >>>> still many ways to produce the frequency of interest. For all DDS, >>>> or digital circuits for that matter, the frequencies must be related >>>> by integer ratios - "rational" ratios. But if you limit your design >>>> to say, modulus of 2^N, you further limit the possible output >>>> frequencies. >>>> >>>> Limited amplitude resolution is also an inherent feature of digital >>>> designs. However, the spurs produced can be made arbitrarily small >>>> by using larger word sizes. No design, analog or digital, is >>>> without spurs. In digital solutions the spurs are easily >>>> controlled. >>>> >>>> DAC related errors are not really digital issues since they are from >>>> the analog portion of the DAC and depend on the details of the >>>> design and implementation. If you need an analog output they are >>>> necessary. But they are analog components and the issues involved are >>>> largely analog. Just as is true with any analog component there are >>>> methods of design that can minimize these errors but they are indeed >>>> inherent and can not be made arbitrarily small. >>>> >>>> In the end - you can eliminate phase generated errors altogether, >>>> amplitude related errors can be reduced to any extent you need while >>>> DAC errors can be minimized, but not to arbitrarily small levels. >>> >>> If you throw away almost everything that makes the DDS attractive in the >>> first place, and reduce it to a divide-by-N counter, you can get rid of >>> all the spurs that aren't harmonics of the output frequency, sure. But >>> then why not use a frequency divider and save $20? >> >> You are over simplifying the DDS. A DDS without spurs is not a divide >> by N counter. >> >> I can't tell if you don't understand, or *what* you don't understand or >> if you are trying to understand what I am posting. You don't seem to >> point to anything I say to show where it is faulty. You just disagree >> and post something that is not really relevant. Are you trying to get >> what I am saying? Should we continue or is this just an argument at >> this point? >> > > > The distinction between periodic and aperiodic errors is the distinction > between a spur and the noise floor. > > You're moving the goal posts, or maybe you really don't understand my > point here, so I agree we should just let it drop.
I'm not sure why you brought up the "aperiodic" errors. I have explained my view on this fairly clearly and you don't dispute anything I explain. You seem to want to bring in things that aren't well defined and don't stay on topic when I try to clarify them. But I am happy to let this drop. -- Rick
Reply by Phil Hobbs December 11, 20142014-12-11
On 12/11/2014 3:02 PM, rickman wrote:
> On 12/11/2014 1:40 PM, Phil Hobbs wrote: >> On 12/11/2014 1:26 PM, rickman wrote: >>> On 12/11/2014 12:28 PM, Phil Hobbs wrote: >>>> On 12/11/2014 11:35 AM, rickman wrote: >>>>> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >>>>>> On 12/11/2014 10:55 AM, John Larkin wrote: >>>>>>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>>>>>> <hobbs@electrooptical.net> wrote: >>>>>>> >>>>>>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>>>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>>>>>> >>>>>>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, >>>>>>>>>> using a phase increment M = 7036874417767. Being an >>>>>>>>>> odd number, M is relatively prime to 2**48. Thus the >>>>>>>>>> sequence of phase accumulator values will not repeat >>>>>>>>>> for M cycles of the output. This requires 703687.4 >>>>>>>>>> seconds which is more than 8 days, despite an apparent >>>>>>>>>> periodicity of 100 ns. >>>>>>>>>> >>>>>>>>>> The DAC values may repeat more often than this, or >>>>>>>>>> very nearly repeat (which is what Gerhard was talking >>>>>>>>>> about on time-nuts) but there is the potential for DAC >>>>>>>>>> nonlinearities and slewing effects to produce phase >>>>>>>>>> and amplitude perturbations on time scales of hours to >>>>>>>>>> days. >>>>>>>>>> >>>>>>>>>> Since time and frequency can be measured to absurd >>>>>>>>>> accuracy, it's quite possible to get easily >>>>>>>>>> measureable phase errors at surprisingly long time >>>>>>>>>> scales. >>>>>>>>> >>>>>>>>> I really don't get your point. To make a 10 MHz sine >>>>>>>>> wave from a 400 MHz clock, the phase step will be M/400 >>>>>>>>> where M is the modulus. So your phase increment *can't* >>>>>>>>> be prime relative to the modulus. Where did you get the >>>>>>>>> numbers you are working with? >>>>>>>>> >>>>>>>>> I have no idea why you are talking about the DAC. If >>>>>>>>> you are referring to the values fed to the DAC repeating >>>>>>>>> more often than the phase values, then you are talking >>>>>>>>> about truncation of the phase values which *is* where >>>>>>>>> spurs come from. >>>>>>>>> >>>>>>>>> So what was your point? >>>>>>>>> >>>>>>>> Forget it. >>>>>>>> >>>>>>>> Cheers >>>>>>>> >>>>>>>> Phil Hobbs >>>>>>> >>>>>>> Rickman just wants to argue and insult people. Better to >>>>>>> ignore him. >>>>>>> >>>>>>> >>>>>> I don't mind arguing, but arguing without plugging in the >>>>>> numbers to try to understand the example is, *ahem*, >>>>>> unproductive. >>>>> >>>>> So why don't you want to discuss a real example then? You >>>>> picked three numbers that were not possible, they don't add up... >>>>> or divide up actually. Do you wish to pick some real numbers? >>>>> I would prefer to use numbers I can work with on my calculator so >>>>> a modulus of less than 2^32 would be better. >>>> >>>> Get a better calculator. ;) >>>> >>>> c:\>mc2 2**48/7036874417767 >>>> >>>> 39.9999999999965894 >>>> >>>> That will make 10 MHz with a 48-bit, 400 MHz DDS such as an >>>> AD9956. >>>> >>>> All I need for the argument is that the increment is relatively >>>> prime to 2**48. >>>> >>>> What part don't you like? >>> >>> Ok, let's ignore that this does *not* produce 10 MHz. I guess it is >>> close enough. 10.000000000000900E+00 according to my spread sheet. >>> >>>>>>>>>> potential for DAC nonlinearities and slewing effects >>>>>>>>>> to produce phase and amplitude perturbations on time >>>>>>>>>> scales of hours to days. >>> >>> DAC irregularities are not something that the DDS is about really. >> >> The DAC is on-chip. We're talking reality here. You might want to go >> read a couple of datasheets, e.g. that very nice AD9956 under discussion. > > Yes, in a DDS chip the DAC is on most DDS chips, but the fact remains > that it is not an inherent part of a DDS function. There are digital > DDS functions which are all digital such as the one discussed previously > in the Timing Solutions design. Their patent even says it included a > DDS, but it does not feed a DAC, it feeds a multiplier to do the mixing. > > If you want to discuss imperfections of DACs then we can do that, but > don't blame them on the DDS circuit that feeds it even if it is on the > same chip. I don't think this is semantics. I don't see any value in > mixing the three causes of spurs. > > >>> That is an issue of the DAC in question, no? I'm not sure the time >>> scale would need to be days or whatever. >> >> I just calculated that it could be up to a week, with very plausible and >> typical values. You could make it as long as months if you picked some >> odd increment closer to 2**47 (200 MHz). > > You are talking about the cycle time of the digital pattern. But this > pattern does not create spurs. All of these numbers are exact. > > >>> I expect they will be more related to the input clock period. >> >> You're weaselling. As I said, it's an analogue issue, because the ADC >> waveform won't repeat exactly (even in the spherical cow universe) for >> more than a week, so you can get spurs that are only a few microhertz >> from the carrier. > > First, why not dispense with the personal comments, ok? No need to call > names. If you don't want to discuss this, then let's stop. > > When you say the waveform won't repeat "exactly" how does that cause > spurs? You mean the digital words won't repeat exactly, but that is > irrelevant. All that matters is that they don't have error. > > Any spurs you see at the output of the DAC are due to aliasing from the > sampling or imperfections from the DAC. A good enough anti-alias filter > should reduce the anti-alias problem as needed. Of course an anti-alias > filter can cause other issues you may not like. > > >>> Regardless this comes from the fact that it is producing an analog >>> signal. You have the same problem in using amplifiers or any other >>> analog component. >> >> No, because there isn't the periodicity issue. > > Irrelevant. Amplifiers have distortion just as any analog part does. > Periodicity is not important to that. Distortion in the amplifiers will > be related to the signal frequency. Distortion in the DAC will be > related to the signal frequency as well as the clock frequency since the > clock shows up in the signal until it passes through the anti-alias filter. > > >>> Is that what you wish to discuss, the DAC caused spurs? I didn't >>> get this from the referenced discussions, but then they were all >>> over the map with a lot of imprecise language, so hard to tell. >> >> As I said above, >> >>>>>>>> The DAC values may repeat more often than this, or >> >>>>>>>> very nearly repeat (which is what Gerhard was talking >> >>>>>>>> about on time-nuts) but there is the potential for DAC >> >>>>>>>> nonlinearities and slewing effects to produce phase >> >>>>>>>> and amplitude perturbations on time scales of hours to >> >>>>>>>> days. >> >>>>>>>> >> >>>>>>>> Since time and frequency can be measured to absurd >> >>>>>>>> accuracy, it's quite possible to get easily >> >>>>>>>> measureable phase errors at surprisingly long time >> >>>>>>>> scales. >> >> I'm not sure what you find unclear about that. > > Please separate the DAC distortion effects from the digital issues. How > would the DAC values (I assume you mean the sine values) repeat more > often than the phase values unless the phase is being truncated? If the > phase is truncated that *will* produce errors which produces spurs. > > >>> I'll summarize this again for clarity. There are three sources of >>> errors (spurs) in a DDS. Errors from phase truncation, limited >>> amplitude resolution and if you are using a DAC to produce an analog >>> signal, DAC related errors. >>> >>> The phase truncation errors are easily avoided by not truncating the >>> phase which limits the producible frequencies. However, there are >>> still many ways to produce the frequency of interest. For all DDS, >>> or digital circuits for that matter, the frequencies must be related >>> by integer ratios - "rational" ratios. But if you limit your design >>> to say, modulus of 2^N, you further limit the possible output >>> frequencies. >>> >>> Limited amplitude resolution is also an inherent feature of digital >>> designs. However, the spurs produced can be made arbitrarily small >>> by using larger word sizes. No design, analog or digital, is >>> without spurs. In digital solutions the spurs are easily >>> controlled. >>> >>> DAC related errors are not really digital issues since they are from >>> the analog portion of the DAC and depend on the details of the >>> design and implementation. If you need an analog output they are >>> necessary. But they are analog components and the issues involved are >>> largely analog. Just as is true with any analog component there are >>> methods of design that can minimize these errors but they are indeed >>> inherent and can not be made arbitrarily small. >>> >>> In the end - you can eliminate phase generated errors altogether, >>> amplitude related errors can be reduced to any extent you need while >>> DAC errors can be minimized, but not to arbitrarily small levels. >> >> If you throw away almost everything that makes the DDS attractive in the >> first place, and reduce it to a divide-by-N counter, you can get rid of >> all the spurs that aren't harmonics of the output frequency, sure. But >> then why not use a frequency divider and save $20? > > You are over simplifying the DDS. A DDS without spurs is not a divide > by N counter. > > I can't tell if you don't understand, or *what* you don't understand or > if you are trying to understand what I am posting. You don't seem to > point to anything I say to show where it is faulty. You just disagree > and post something that is not really relevant. Are you trying to get > what I am saying? Should we continue or is this just an argument at > this point? >
The distinction between periodic and aperiodic errors is the distinction between a spur and the noise floor. You're moving the goal posts, or maybe you really don't understand my point here, so I agree we should just let it drop. 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 hobbs at electrooptical dot net http://electrooptical.net
Reply by rickman December 11, 20142014-12-11
On 12/11/2014 1:40 PM, Phil Hobbs wrote:
> On 12/11/2014 1:26 PM, rickman wrote: >> On 12/11/2014 12:28 PM, Phil Hobbs wrote: >>> On 12/11/2014 11:35 AM, rickman wrote: >>>> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >>>>> On 12/11/2014 10:55 AM, John Larkin wrote: >>>>>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>>>>> <hobbs@electrooptical.net> wrote: >>>>>> >>>>>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>>>>> >>>>>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, >>>>>>>>> using a phase increment M = 7036874417767. Being an >>>>>>>>> odd number, M is relatively prime to 2**48. Thus the >>>>>>>>> sequence of phase accumulator values will not repeat >>>>>>>>> for M cycles of the output. This requires 703687.4 >>>>>>>>> seconds which is more than 8 days, despite an apparent >>>>>>>>> periodicity of 100 ns. >>>>>>>>> >>>>>>>>> The DAC values may repeat more often than this, or >>>>>>>>> very nearly repeat (which is what Gerhard was talking >>>>>>>>> about on time-nuts) but there is the potential for DAC >>>>>>>>> nonlinearities and slewing effects to produce phase >>>>>>>>> and amplitude perturbations on time scales of hours to >>>>>>>>> days. >>>>>>>>> >>>>>>>>> Since time and frequency can be measured to absurd >>>>>>>>> accuracy, it's quite possible to get easily >>>>>>>>> measureable phase errors at surprisingly long time >>>>>>>>> scales. >>>>>>>> >>>>>>>> I really don't get your point. To make a 10 MHz sine >>>>>>>> wave from a 400 MHz clock, the phase step will be M/400 >>>>>>>> where M is the modulus. So your phase increment *can't* >>>>>>>> be prime relative to the modulus. Where did you get the >>>>>>>> numbers you are working with? >>>>>>>> >>>>>>>> I have no idea why you are talking about the DAC. If >>>>>>>> you are referring to the values fed to the DAC repeating >>>>>>>> more often than the phase values, then you are talking >>>>>>>> about truncation of the phase values which *is* where >>>>>>>> spurs come from. >>>>>>>> >>>>>>>> So what was your point? >>>>>>>> >>>>>>> Forget it. >>>>>>> >>>>>>> Cheers >>>>>>> >>>>>>> Phil Hobbs >>>>>> >>>>>> Rickman just wants to argue and insult people. Better to >>>>>> ignore him. >>>>>> >>>>>> >>>>> I don't mind arguing, but arguing without plugging in the >>>>> numbers to try to understand the example is, *ahem*, >>>>> unproductive. >>>> >>>> So why don't you want to discuss a real example then? You >>>> picked three numbers that were not possible, they don't add up... >>>> or divide up actually. Do you wish to pick some real numbers? >>>> I would prefer to use numbers I can work with on my calculator so >>>> a modulus of less than 2^32 would be better. >>> >>> Get a better calculator. ;) >>> >>> c:\>mc2 2**48/7036874417767 >>> >>> 39.9999999999965894 >>> >>> That will make 10 MHz with a 48-bit, 400 MHz DDS such as an >>> AD9956. >>> >>> All I need for the argument is that the increment is relatively >>> prime to 2**48. >>> >>> What part don't you like? >> >> Ok, let's ignore that this does *not* produce 10 MHz. I guess it is >> close enough. 10.000000000000900E+00 according to my spread sheet. >> >>>>>>>>> potential for DAC nonlinearities and slewing effects >>>>>>>>> to produce phase and amplitude perturbations on time >>>>>>>>> scales of hours to days. >> >> DAC irregularities are not something that the DDS is about really. > > The DAC is on-chip. We're talking reality here. You might want to go > read a couple of datasheets, e.g. that very nice AD9956 under discussion.
Yes, in a DDS chip the DAC is on most DDS chips, but the fact remains that it is not an inherent part of a DDS function. There are digital DDS functions which are all digital such as the one discussed previously in the Timing Solutions design. Their patent even says it included a DDS, but it does not feed a DAC, it feeds a multiplier to do the mixing. If you want to discuss imperfections of DACs then we can do that, but don't blame them on the DDS circuit that feeds it even if it is on the same chip. I don't think this is semantics. I don't see any value in mixing the three causes of spurs.
>> That is an issue of the DAC in question, no? I'm not sure the time >> scale would need to be days or whatever. > > I just calculated that it could be up to a week, with very plausible and > typical values. You could make it as long as months if you picked some > odd increment closer to 2**47 (200 MHz).
You are talking about the cycle time of the digital pattern. But this pattern does not create spurs. All of these numbers are exact.
>> I expect they will be more related to the input clock period. > > You're weaselling. As I said, it's an analogue issue, because the ADC > waveform won't repeat exactly (even in the spherical cow universe) for > more than a week, so you can get spurs that are only a few microhertz > from the carrier.
First, why not dispense with the personal comments, ok? No need to call names. If you don't want to discuss this, then let's stop. When you say the waveform won't repeat "exactly" how does that cause spurs? You mean the digital words won't repeat exactly, but that is irrelevant. All that matters is that they don't have error. Any spurs you see at the output of the DAC are due to aliasing from the sampling or imperfections from the DAC. A good enough anti-alias filter should reduce the anti-alias problem as needed. Of course an anti-alias filter can cause other issues you may not like.
>> Regardless this comes from the fact that it is producing an analog >> signal. You have the same problem in using amplifiers or any other >> analog component. > > No, because there isn't the periodicity issue.
Irrelevant. Amplifiers have distortion just as any analog part does. Periodicity is not important to that. Distortion in the amplifiers will be related to the signal frequency. Distortion in the DAC will be related to the signal frequency as well as the clock frequency since the clock shows up in the signal until it passes through the anti-alias filter.
>> Is that what you wish to discuss, the DAC caused spurs? I didn't >> get this from the referenced discussions, but then they were all >> over the map with a lot of imprecise language, so hard to tell. > > As I said above, > >>>>>>>> The DAC values may repeat more often than this, or > >>>>>>>> very nearly repeat (which is what Gerhard was talking > >>>>>>>> about on time-nuts) but there is the potential for DAC > >>>>>>>> nonlinearities and slewing effects to produce phase > >>>>>>>> and amplitude perturbations on time scales of hours to > >>>>>>>> days. > >>>>>>>> > >>>>>>>> Since time and frequency can be measured to absurd > >>>>>>>> accuracy, it's quite possible to get easily > >>>>>>>> measureable phase errors at surprisingly long time > >>>>>>>> scales. > > I'm not sure what you find unclear about that.
Please separate the DAC distortion effects from the digital issues. How would the DAC values (I assume you mean the sine values) repeat more often than the phase values unless the phase is being truncated? If the phase is truncated that *will* produce errors which produces spurs.
>> I'll summarize this again for clarity. There are three sources of >> errors (spurs) in a DDS. Errors from phase truncation, limited >> amplitude resolution and if you are using a DAC to produce an analog >> signal, DAC related errors. >> >> The phase truncation errors are easily avoided by not truncating the >> phase which limits the producible frequencies. However, there are >> still many ways to produce the frequency of interest. For all DDS, >> or digital circuits for that matter, the frequencies must be related >> by integer ratios - "rational" ratios. But if you limit your design >> to say, modulus of 2^N, you further limit the possible output >> frequencies. >> >> Limited amplitude resolution is also an inherent feature of digital >> designs. However, the spurs produced can be made arbitrarily small >> by using larger word sizes. No design, analog or digital, is >> without spurs. In digital solutions the spurs are easily >> controlled. >> >> DAC related errors are not really digital issues since they are from >> the analog portion of the DAC and depend on the details of the >> design and implementation. If you need an analog output they are >> necessary. But they are analog components and the issues involved are >> largely analog. Just as is true with any analog component there are >> methods of design that can minimize these errors but they are indeed >> inherent and can not be made arbitrarily small. >> >> In the end - you can eliminate phase generated errors altogether, >> amplitude related errors can be reduced to any extent you need while >> DAC errors can be minimized, but not to arbitrarily small levels. > > If you throw away almost everything that makes the DDS attractive in the > first place, and reduce it to a divide-by-N counter, you can get rid of > all the spurs that aren't harmonics of the output frequency, sure. But > then why not use a frequency divider and save $20?
You are over simplifying the DDS. A DDS without spurs is not a divide by N counter. I can't tell if you don't understand, or *what* you don't understand or if you are trying to understand what I am posting. You don't seem to point to anything I say to show where it is faulty. You just disagree and post something that is not really relevant. Are you trying to get what I am saying? Should we continue or is this just an argument at this point? -- Rick
Reply by rickman December 11, 20142014-12-11
On 12/11/2014 1:33 PM, John Larkin wrote:
> On Thu, 11 Dec 2014 12:28:48 -0500, Phil Hobbs > <hobbs@electrooptical.net> wrote: > >> On 12/11/2014 11:35 AM, rickman wrote:>> >>> So why don't you want to discuss a real example then? You picked three >>> numbers that were not possible, they don't add up... or divide up >>> actually. Do you wish to pick some real numbers? I would prefer to use >>> numbers I can work with on my calculator so a modulus of less than 2^32 >>> would be better. >> >> Get a better calculator. ;) >> >> c:\>mc2 2**48/7036874417767 >> >> 39.9999999999965894 >> >> That will make 10 MHz with a 48-bit, 400 MHz DDS such as an AD9956. >> >> All I need for the argument is that the increment is relatively prime to >> 2**48. >> >> What part don't you like? >> >> Cheers >> >> Phil Hobbs > > Ricky made the argument that as long as M and S are integers, the > ratio is rational (gosh!) so the DDS has no spurs. It follows that no > DDS can ever have spurs.
Notice how Larkin won't discuss this with me directly. I never said what he claims I did say. But when it comes to phase calculation related spurs, I have stated clearly that this is caused by phase truncation. At one point I was confusing some of the issues and was saying the modulus had to be an integer multiple of the step size. I corrected this in later posts. If you use the full phase accumulator in calculating the sine from the phase, there will be no resulting spurs from the phase. -- Rick
Reply by Phil Hobbs December 11, 20142014-12-11
On 12/11/2014 1:26 PM, rickman wrote:
> On 12/11/2014 12:28 PM, Phil Hobbs wrote: >> On 12/11/2014 11:35 AM, rickman wrote: >>> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >>>> On 12/11/2014 10:55 AM, John Larkin wrote: >>>>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>>>> <hobbs@electrooptical.net> wrote: >>>>> >>>>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>>>> >>>>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, >>>>>>>> using a phase increment M = 7036874417767. Being an >>>>>>>> odd number, M is relatively prime to 2**48. Thus the >>>>>>>> sequence of phase accumulator values will not repeat >>>>>>>> for M cycles of the output. This requires 703687.4 >>>>>>>> seconds which is more than 8 days, despite an apparent >>>>>>>> periodicity of 100 ns. >>>>>>>> >>>>>>>> The DAC values may repeat more often than this, or >>>>>>>> very nearly repeat (which is what Gerhard was talking >>>>>>>> about on time-nuts) but there is the potential for DAC >>>>>>>> nonlinearities and slewing effects to produce phase >>>>>>>> and amplitude perturbations on time scales of hours to >>>>>>>> days. >>>>>>>> >>>>>>>> Since time and frequency can be measured to absurd >>>>>>>> accuracy, it's quite possible to get easily >>>>>>>> measureable phase errors at surprisingly long time >>>>>>>> scales. >>>>>>> >>>>>>> I really don't get your point. To make a 10 MHz sine >>>>>>> wave from a 400 MHz clock, the phase step will be M/400 >>>>>>> where M is the modulus. So your phase increment *can't* >>>>>>> be prime relative to the modulus. Where did you get the >>>>>>> numbers you are working with? >>>>>>> >>>>>>> I have no idea why you are talking about the DAC. If >>>>>>> you are referring to the values fed to the DAC repeating >>>>>>> more often than the phase values, then you are talking >>>>>>> about truncation of the phase values which *is* where >>>>>>> spurs come from. >>>>>>> >>>>>>> So what was your point? >>>>>>> >>>>>> Forget it. >>>>>> >>>>>> Cheers >>>>>> >>>>>> Phil Hobbs >>>>> >>>>> Rickman just wants to argue and insult people. Better to >>>>> ignore him. >>>>> >>>>> >>>> I don't mind arguing, but arguing without plugging in the >>>> numbers to try to understand the example is, *ahem*, >>>> unproductive. >>> >>> So why don't you want to discuss a real example then? You >>> picked three numbers that were not possible, they don't add up... >>> or divide up actually. Do you wish to pick some real numbers? >>> I would prefer to use numbers I can work with on my calculator so >>> a modulus of less than 2^32 would be better. >> >> Get a better calculator. ;) >> >> c:\>mc2 2**48/7036874417767 >> >> 39.9999999999965894 >> >> That will make 10 MHz with a 48-bit, 400 MHz DDS such as an >> AD9956. >> >> All I need for the argument is that the increment is relatively >> prime to 2**48. >> >> What part don't you like? > > Ok, let's ignore that this does *not* produce 10 MHz. I guess it is > close enough. 10.000000000000900E+00 according to my spread sheet. > >>>>>>>> potential for DAC nonlinearities and slewing effects >>>>>>>> to produce phase and amplitude perturbations on time >>>>>>>> scales of hours to days. > > DAC irregularities are not something that the DDS is about really.
The DAC is on-chip. We're talking reality here. You might want to go read a couple of datasheets, e.g. that very nice AD9956 under discussion.
> That is an issue of the DAC in question, no? I'm not sure the time > scale would need to be days or whatever.
I just calculated that it could be up to a week, with very plausible and typical values. You could make it as long as months if you picked some odd increment closer to 2**47 (200 MHz).
> I expect they will be more related to the input clock period.
You're weaselling. As I said, it's an analogue issue, because the ADC waveform won't repeat exactly (even in the spherical cow universe) for more than a week, so you can get spurs that are only a few microhertz from the carrier.
> Regardless this comes from the fact that it is producing an analog > signal. You have the same problem in using amplifiers or any other > analog component.
No, because there isn't the periodicity issue.
> > Is that what you wish to discuss, the DAC caused spurs? I didn't > get this from the referenced discussions, but then they were all > over the map with a lot of imprecise language, so hard to tell.
As I said above, >>>>>>>> The DAC values may repeat more often than this, or >>>>>>>> very nearly repeat (which is what Gerhard was talking >>>>>>>> about on time-nuts) but there is the potential for DAC >>>>>>>> nonlinearities and slewing effects to produce phase >>>>>>>> and amplitude perturbations on time scales of hours to >>>>>>>> days. >>>>>>>> >>>>>>>> Since time and frequency can be measured to absurd >>>>>>>> accuracy, it's quite possible to get easily >>>>>>>> measureable phase errors at surprisingly long time >>>>>>>> scales. I'm not sure what you find unclear about that.
> > I'll summarize this again for clarity. There are three sources of > errors (spurs) in a DDS. Errors from phase truncation, limited > amplitude resolution and if you are using a DAC to produce an analog > signal, DAC related errors. > > The phase truncation errors are easily avoided by not truncating the > phase which limits the producible frequencies. However, there are > still many ways to produce the frequency of interest. For all DDS, > or digital circuits for that matter, the frequencies must be related > by integer ratios - "rational" ratios. But if you limit your design > to say, modulus of 2^N, you further limit the possible output > frequencies. > > Limited amplitude resolution is also an inherent feature of digital > designs. However, the spurs produced can be made arbitrarily small > by using larger word sizes. No design, analog or digital, is > without spurs. In digital solutions the spurs are easily > controlled. > > DAC related errors are not really digital issues since they are from > the analog portion of the DAC and depend on the details of the > design and implementation. If you need an analog output they are > necessary. But they are analog components and the issues involved are > largely analog. Just as is true with any analog component there are > methods of design that can minimize these errors but they are indeed > inherent and can not be made arbitrarily small. > > In the end - you can eliminate phase generated errors altogether, > amplitude related errors can be reduced to any extent you need while > DAC errors can be minimized, but not to arbitrarily small levels.
If you throw away almost everything that makes the DDS attractive in the first place, and reduce it to a divide-by-N counter, you can get rid of all the spurs that aren't harmonics of the output frequency, sure. But then why not use a frequency divider and save $20? 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 hobbs at electrooptical dot net http://electrooptical.net
Reply by John Larkin December 11, 20142014-12-11
On Thu, 11 Dec 2014 12:28:48 -0500, Phil Hobbs
<hobbs@electrooptical.net> wrote:

>On 12/11/2014 11:35 AM, rickman wrote:>> >> So why don't you want to discuss a real example then? You picked three >> numbers that were not possible, they don't add up... or divide up >> actually. Do you wish to pick some real numbers? I would prefer to use >> numbers I can work with on my calculator so a modulus of less than 2^32 >> would be better. > >Get a better calculator. ;) > >c:\>mc2 2**48/7036874417767 > >39.9999999999965894 > >That will make 10 MHz with a 48-bit, 400 MHz DDS such as an AD9956. > >All I need for the argument is that the increment is relatively prime to >2**48. > >What part don't you like? > >Cheers > >Phil Hobbs
Ricky made the argument that as long as M and S are integers, the ratio is rational (gosh!) so the DDS has no spurs. It follows that no DDS can ever have spurs. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
Reply by rickman December 11, 20142014-12-11
On 12/11/2014 12:28 PM, Phil Hobbs wrote:
> On 12/11/2014 11:35 AM, rickman wrote: >> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >>> On 12/11/2014 10:55 AM, John Larkin wrote: >>>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>>> <hobbs@electrooptical.net> wrote: >>>> >>>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>>> >>>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, using a phase >>>>>>> increment M = 7036874417767. Being an odd number, M is relatively >>>>>>> prime >>>>>>> to 2**48. Thus the sequence of phase accumulator values will not >>>>>>> repeat >>>>>>> for M cycles of the output. This requires 703687.4 seconds which is >>>>>>> more than 8 days, despite an apparent periodicity of 100 ns. >>>>>>> >>>>>>> The DAC values may repeat more often than this, or very nearly >>>>>>> repeat >>>>>>> (which is what Gerhard was talking about on time-nuts) but there is >>>>>>> the >>>>>>> potential for DAC nonlinearities and slewing effects to produce >>>>>>> phase >>>>>>> and amplitude perturbations on time scales of hours to days. >>>>>>> >>>>>>> Since time and frequency can be measured to absurd accuracy, it's >>>>>>> quite >>>>>>> possible to get easily measureable phase errors at surprisingly long >>>>>>> time scales. >>>>>> >>>>>> I really don't get your point. To make a 10 MHz sine wave from a >>>>>> 400 >>>>>> MHz clock, the phase step will be M/400 where M is the modulus. So >>>>>> your >>>>>> phase increment *can't* be prime relative to the modulus. Where did >>>>>> you >>>>>> get the numbers you are working with? >>>>>> >>>>>> I have no idea why you are talking about the DAC. If you are >>>>>> referring >>>>>> to the values fed to the DAC repeating more often than the phase >>>>>> values, >>>>>> then you are talking about truncation of the phase values which *is* >>>>>> where spurs come from. >>>>>> >>>>>> So what was your point? >>>>>> >>>>> Forget it. >>>>> >>>>> Cheers >>>>> >>>>> Phil Hobbs >>>> >>>> Rickman just wants to argue and insult people. Better to ignore him. >>>> >>>> >>> I don't mind arguing, but arguing without plugging in the numbers to try >>> to understand the example is, *ahem*, unproductive. >> >> So why don't you want to discuss a real example then? You picked three >> numbers that were not possible, they don't add up... or divide up >> actually. Do you wish to pick some real numbers? I would prefer to use >> numbers I can work with on my calculator so a modulus of less than 2^32 >> would be better. > > Get a better calculator. ;) > > c:\>mc2 2**48/7036874417767 > > 39.9999999999965894 > > That will make 10 MHz with a 48-bit, 400 MHz DDS such as an AD9956. > > All I need for the argument is that the increment is relatively prime to > 2**48. > > What part don't you like?
Ok, let's ignore that this does *not* produce 10 MHz. I guess it is close enough. 10.000000000000900E+00 according to my spread sheet. >>>>>>> potential for DAC nonlinearities and slewing effects to produce >>>>>>> phase >>>>>>> and amplitude perturbations on time scales of hours to days. DAC irregularities are not something that the DDS is about really. That is an issue of the DAC in question, no? I'm not sure the time scale would need to be days or whatever. I expect they will be more related to the input clock period. Regardless this comes from the fact that it is producing an analog signal. You have the same problem in using amplifiers or any other analog component. Is that what you wish to discuss, the DAC caused spurs? I didn't get this from the referenced discussions, but then they were all over the map with a lot of imprecise language, so hard to tell. I'll summarize this again for clarity. There are three sources of errors (spurs) in a DDS. Errors from phase truncation, limited amplitude resolution and if you are using a DAC to produce an analog signal, DAC related errors. The phase truncation errors are easily avoided by not truncating the phase which limits the producible frequencies. However, there are still many ways to produce the frequency of interest. For all DDS, or digital circuits for that matter, the frequencies must be related by integer ratios - "rational" ratios. But if you limit your design to say, modulus of 2^N, you further limit the possible output frequencies. Limited amplitude resolution is also an inherent feature of digital designs. However, the spurs produced can be made arbitrarily small by using larger word sizes. No design, analog or digital, is without spurs. In digital solutions the spurs are easily controlled. DAC related errors are not really digital issues since they are from the analog portion of the DAC and depend on the details of the design and implementation. If you need an analog output they are necessary. But they are analog components and the issues involved are largely analog. Just as is true with any analog component there are methods of design that can minimize these errors but they are indeed inherent and can not be made arbitrarily small. In the end - you can eliminate phase generated errors altogether, amplitude related errors can be reduced to any extent you need while DAC errors can be minimized, but not to arbitrarily small levels. -- Rick
Reply by Phil Hobbs December 11, 20142014-12-11
On 12/11/2014 11:35 AM, rickman wrote:
> On 12/11/2014 11:04 AM, Phil Hobbs wrote: >> On 12/11/2014 10:55 AM, John Larkin wrote: >>> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >>> <hobbs@electrooptical.net> wrote: >>> >>>> On 12/10/2014 11:26 PM, rickman wrote: >>>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>>> On 12/10/2014 12:05 AM, rickman wrote: >>>>>>> On 12/9/2014 3:34 PM, Phil Hobbs wrote: >>>>>>>> On 12/09/2014 12:17 PM, rickman wrote: >>>>>>>>> On 12/9/2014 10:23 AM, Phil Hobbs wrote: >>>>>>>>>> On 12/8/2014 8:49 PM, rickman wrote: >>>>>>>>>>> On 12/8/2014 7:57 PM, Phil Hobbs wrote: >>>>>>>>>>>> On 12/8/2014 7:10 PM, rickman wrote: >>>>>>>>>>>>> On 12/8/2014 6:57 PM, Phil Hobbs wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> If I thought I was always right about everything, I wouldn't >>>>>>>>>>>>>> need to >>>>>>>>>>>>>> talk to anybody. ;) >>>>>>>>>>>>> >>>>>>>>>>>>> Lol, yeah. That's a large part of why I'm here, to learn >>>>>>>>>>>>> something in >>>>>>>>>>>>> the areas I know less about, like most things analog. Joerg >>>>>>>>>>>>> helped >>>>>>>>>>>>> me a >>>>>>>>>>>>> lot a couple of weeks ago to learn about the Miller effect and >>>>>>>>>>>>> cascode >>>>>>>>>>>>> circuits. >>>>>>>>>>>>> >>>>>>>>>>>>> Have you figured out what people are referring to when they >>>>>>>>>>>>> talk >>>>>>>>>>>>> about >>>>>>>>>>>>> the "phase jump" as the accumulator wraps around? I'm >>>>>>>>>>>>> thinking >>>>>>>>>>>>> they >>>>>>>>>>>>> are >>>>>>>>>>>>> talking about the remainder that results from the non-integral >>>>>>>>>>>>> ratio of >>>>>>>>>>>>> the step size and modulus. It's not really a "jump", but I >>>>>>>>>>>>> can >>>>>>>>>>>>> see >>>>>>>>>>>>> someone referring to it that way in a conversation. >>>>>>>>>>>> >>>>>>>>>>>> It seems like the issue is that for many choices of the phase >>>>>>>>>>>> increment, >>>>>>>>>>>> there's a spur very close to the carrier, associated with the >>>>>>>>>>>> actual >>>>>>>>>>>> periodicity of the waveform. With an N-bit accumulator, it's >>>>>>>>>>>> quite >>>>>>>>>>>> possible for this to be many times longer than 2**N clock >>>>>>>>>>>> cycles, >>>>>>>>>>>> i.e. >>>>>>>>>>>> far too long to be visible on frequency-domain instruments >>>>>>>>>>>> such as >>>>>>>>>>>> spectrum analyzers, and long enough to be surprising to even >>>>>>>>>>>> fairly >>>>>>>>>>>> sophisticated users. >>>>>>>>>>> >>>>>>>>>>> Yes, but a spur would not be described as a "phase jump" on >>>>>>>>>>> "rollover". >>>>>>>>>>> Do you think this is what they are talking about? That would >>>>>>>>>>> be so >>>>>>>>>>> far removed from what *is* happening that it's hard to imagine. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> I find it funny that some don't seem to really understand >>>>>>>>>>>>> how a >>>>>>>>>>>>> DDS >>>>>>>>>>>>> works. Joe Gwinn seems to think there is something different >>>>>>>>>>>>> about >>>>>>>>>>>>> the >>>>>>>>>>>>> way Timing Solutions implemented a non-DDS so it didn't have >>>>>>>>>>>>> spurs. >>>>>>>>>>>>> "The >>>>>>>>>>>>> actual frequency is tweaked such that there is no glitch >>>>>>>>>>>>> when the >>>>>>>>>>>>> memory >>>>>>>>>>>>> rolls over." I believe all they did was use the equivalent >>>>>>>>>>>>> of a >>>>>>>>>>>>> DDS >>>>>>>>>>>>> circuit with limitations so there was no remainder. I expect >>>>>>>>>>>>> they >>>>>>>>>>>>> incremented the phase by 1 and could only generate outputs >>>>>>>>>>>>> that >>>>>>>>>>>>> were >>>>>>>>>>>>> integer ratios to the reference clock. >>>>>>>>>>>> >>>>>>>>>>>> The paper referenced upthread that used (instead of a sine >>>>>>>>>>>> LUT) a >>>>>>>>>>>> two-turn CORDIC algorithm with AGC to generate the output is a >>>>>>>>>>>> pretty >>>>>>>>>>>> good read. >>>>>>>>>>> >>>>>>>>>>> I didn't dig into all the papers people referenced. I looked at >>>>>>>>>>> some >>>>>>>>>>> and didn't find much to explain what they were talking about. >>>>>>>>>>> What >>>>>>>>>>> Joe >>>>>>>>>>> described was a simple lookup table with sine values in it >>>>>>>>>>> which is >>>>>>>>>>> how >>>>>>>>>>> a DDS works. There are two forms of spurs from digital >>>>>>>>>>> implementations. >>>>>>>>>>> One is from phase quantization and the other is from >>>>>>>>>>> amplitude >>>>>>>>>>> quantization. Then the DAC has its own type of distortion >>>>>>>>>>> which can >>>>>>>>>>> also produce spurs but are not directly related to the fact >>>>>>>>>>> that the >>>>>>>>>>> data is digital. The other two types are an inherent >>>>>>>>>>> limitation of >>>>>>>>>>> digital data representation of a sine wave. The phase >>>>>>>>>>> quantization >>>>>>>>>>> can >>>>>>>>>>> be completely eliminated by using only integer ratios between >>>>>>>>>>> the >>>>>>>>>>> reference clock frequency and the synthesized frequency. >>>>>>>>>>> Amplitude >>>>>>>>>>> quantization can not be eliminated and ultimately is imposed >>>>>>>>>>> by the >>>>>>>>>>> resolution of the DAC. >>>>>>>>>>> >>>>>>>>>>> I designed a DDS a couple of years ago and used a reasonable >>>>>>>>>>> size >>>>>>>>>>> LUT >>>>>>>>>>> with linear interpolation. I think the ultimate sine values >>>>>>>>>>> were >>>>>>>>>>> accurate to about 20 or maybe 22 bits. But that was all >>>>>>>>>>> overkill. >>>>>>>>>>> Even >>>>>>>>>>> though I had 24 bit DACs the SNR and SINAD were in the 90s and >>>>>>>>>>> 100s of >>>>>>>>>>> dB. At least I was confident it wasn't the digital stuff that >>>>>>>>>>> limited >>>>>>>>>>> the result. >>>>>>>>>>> >>>>>>>>>> The time-nuts post by Gerhard seemed to say that the very low >>>>>>>>>> frequency >>>>>>>>>> instability is due to the very long period of the actual >>>>>>>>>> waveform. If >>>>>>>>>> the phase increment M and 2**N are relatively prime, the actual >>>>>>>>>> period >>>>>>>>>> of the output waveform is M * 2**N clocks. >>>>>>>>> >>>>>>>>> I'm not clear on this. As long as there is no truncated bits in >>>>>>>>> the >>>>>>>>> phase accumulator, there is no "instability", all the phase >>>>>>>>> values are >>>>>>>>> exact. >>>>>>>>> >>>>>>>>> If you are working in the digital domain, there will be no >>>>>>>>> noise or >>>>>>>>> distortion to the signal other than the limited amplitude >>>>>>>>> resolution >>>>>>>>> which can be reduced as much as required. If you are >>>>>>>>> converting to >>>>>>>>> analog you are only limited by your DAC and anti-alias filter. >>>>>>>> >>>>>>>> It was an analogue issue, AIUI. For a general choice of phase >>>>>>>> increment >>>>>>>> M, the nominal period of the output is 2**N/M, whereas the real >>>>>>>> period >>>>>>>> (where the DAC values all repeat) is the LCM of M and 2**N. That >>>>>>>> can be >>>>>>>> as much as M**2 times longer, and give rise to small phase >>>>>>>> artifacts >>>>>>>> that the time-nuts folks care about a lot. >>>>>>> >>>>>>> I'm a bit unclear. If it is an analog issue, it would have >>>>>>> nothing to >>>>>>> do with the digital portion and in particular the ratios of >>>>>>> modulus and >>>>>>> step size. >>>>>>> >>>>>>> There is some misunderstanding. The issue you are raising, the >>>>>>> lack of >>>>>>> exact digital values repeating on each Fout cycle, will *not* create >>>>>>> spurs other than the other mechanisms as I have mentioned which >>>>>>> include >>>>>>> amplitude quantization and analog effects. If it does I would >>>>>>> like to >>>>>>> know the mechanism. >>>>>>> >>>>>> >>>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, using a phase >>>>>> increment M = 7036874417767. Being an odd number, M is relatively >>>>>> prime >>>>>> to 2**48. Thus the sequence of phase accumulator values will not >>>>>> repeat >>>>>> for M cycles of the output. This requires 703687.4 seconds which is >>>>>> more than 8 days, despite an apparent periodicity of 100 ns. >>>>>> >>>>>> The DAC values may repeat more often than this, or very nearly repeat >>>>>> (which is what Gerhard was talking about on time-nuts) but there is >>>>>> the >>>>>> potential for DAC nonlinearities and slewing effects to produce phase >>>>>> and amplitude perturbations on time scales of hours to days. >>>>>> >>>>>> Since time and frequency can be measured to absurd accuracy, it's >>>>>> quite >>>>>> possible to get easily measureable phase errors at surprisingly long >>>>>> time scales. >>>>> >>>>> I really don't get your point. To make a 10 MHz sine wave from a 400 >>>>> MHz clock, the phase step will be M/400 where M is the modulus. So >>>>> your >>>>> phase increment *can't* be prime relative to the modulus. Where did >>>>> you >>>>> get the numbers you are working with? >>>>> >>>>> I have no idea why you are talking about the DAC. If you are >>>>> referring >>>>> to the values fed to the DAC repeating more often than the phase >>>>> values, >>>>> then you are talking about truncation of the phase values which *is* >>>>> where spurs come from. >>>>> >>>>> So what was your point? >>>>> >>>> Forget it. >>>> >>>> Cheers >>>> >>>> Phil Hobbs >>> >>> Rickman just wants to argue and insult people. Better to ignore him. >>> >>> >> I don't mind arguing, but arguing without plugging in the numbers to try >> to understand the example is, *ahem*, unproductive. > > So why don't you want to discuss a real example then? You picked three > numbers that were not possible, they don't add up... or divide up > actually. Do you wish to pick some real numbers? I would prefer to use > numbers I can work with on my calculator so a modulus of less than 2^32 > would be better.
Get a better calculator. ;) c:\>mc2 2**48/7036874417767 39.9999999999965894 That will make 10 MHz with a 48-bit, 400 MHz DDS such as an AD9956. All I need for the argument is that the increment is relatively prime to 2**48. What part don't you like? 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 hobbs at electrooptical dot net http://electrooptical.net
Reply by rickman December 11, 20142014-12-11
On 12/11/2014 11:04 AM, Phil Hobbs wrote:
> On 12/11/2014 10:55 AM, John Larkin wrote: >> On Thu, 11 Dec 2014 09:44:20 -0500, Phil Hobbs >> <hobbs@electrooptical.net> wrote: >> >>> On 12/10/2014 11:26 PM, rickman wrote: >>>> On 12/10/2014 5:37 PM, Phil Hobbs wrote: >>>>> On 12/10/2014 12:05 AM, rickman wrote: >>>>>> On 12/9/2014 3:34 PM, Phil Hobbs wrote: >>>>>>> On 12/09/2014 12:17 PM, rickman wrote: >>>>>>>> On 12/9/2014 10:23 AM, Phil Hobbs wrote: >>>>>>>>> On 12/8/2014 8:49 PM, rickman wrote: >>>>>>>>>> On 12/8/2014 7:57 PM, Phil Hobbs wrote: >>>>>>>>>>> On 12/8/2014 7:10 PM, rickman wrote: >>>>>>>>>>>> On 12/8/2014 6:57 PM, Phil Hobbs wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> If I thought I was always right about everything, I wouldn't >>>>>>>>>>>>> need to >>>>>>>>>>>>> talk to anybody. ;) >>>>>>>>>>>> >>>>>>>>>>>> Lol, yeah. That's a large part of why I'm here, to learn >>>>>>>>>>>> something in >>>>>>>>>>>> the areas I know less about, like most things analog. Joerg >>>>>>>>>>>> helped >>>>>>>>>>>> me a >>>>>>>>>>>> lot a couple of weeks ago to learn about the Miller effect and >>>>>>>>>>>> cascode >>>>>>>>>>>> circuits. >>>>>>>>>>>> >>>>>>>>>>>> Have you figured out what people are referring to when they >>>>>>>>>>>> talk >>>>>>>>>>>> about >>>>>>>>>>>> the "phase jump" as the accumulator wraps around? I'm thinking >>>>>>>>>>>> they >>>>>>>>>>>> are >>>>>>>>>>>> talking about the remainder that results from the non-integral >>>>>>>>>>>> ratio of >>>>>>>>>>>> the step size and modulus. It's not really a "jump", but I can >>>>>>>>>>>> see >>>>>>>>>>>> someone referring to it that way in a conversation. >>>>>>>>>>> >>>>>>>>>>> It seems like the issue is that for many choices of the phase >>>>>>>>>>> increment, >>>>>>>>>>> there's a spur very close to the carrier, associated with the >>>>>>>>>>> actual >>>>>>>>>>> periodicity of the waveform. With an N-bit accumulator, it's >>>>>>>>>>> quite >>>>>>>>>>> possible for this to be many times longer than 2**N clock >>>>>>>>>>> cycles, >>>>>>>>>>> i.e. >>>>>>>>>>> far too long to be visible on frequency-domain instruments >>>>>>>>>>> such as >>>>>>>>>>> spectrum analyzers, and long enough to be surprising to even >>>>>>>>>>> fairly >>>>>>>>>>> sophisticated users. >>>>>>>>>> >>>>>>>>>> Yes, but a spur would not be described as a "phase jump" on >>>>>>>>>> "rollover". >>>>>>>>>> Do you think this is what they are talking about? That would >>>>>>>>>> be so >>>>>>>>>> far removed from what *is* happening that it's hard to imagine. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> I find it funny that some don't seem to really understand how a >>>>>>>>>>>> DDS >>>>>>>>>>>> works. Joe Gwinn seems to think there is something different >>>>>>>>>>>> about >>>>>>>>>>>> the >>>>>>>>>>>> way Timing Solutions implemented a non-DDS so it didn't have >>>>>>>>>>>> spurs. >>>>>>>>>>>> "The >>>>>>>>>>>> actual frequency is tweaked such that there is no glitch >>>>>>>>>>>> when the >>>>>>>>>>>> memory >>>>>>>>>>>> rolls over." I believe all they did was use the equivalent >>>>>>>>>>>> of a >>>>>>>>>>>> DDS >>>>>>>>>>>> circuit with limitations so there was no remainder. I expect >>>>>>>>>>>> they >>>>>>>>>>>> incremented the phase by 1 and could only generate outputs that >>>>>>>>>>>> were >>>>>>>>>>>> integer ratios to the reference clock. >>>>>>>>>>> >>>>>>>>>>> The paper referenced upthread that used (instead of a sine >>>>>>>>>>> LUT) a >>>>>>>>>>> two-turn CORDIC algorithm with AGC to generate the output is a >>>>>>>>>>> pretty >>>>>>>>>>> good read. >>>>>>>>>> >>>>>>>>>> I didn't dig into all the papers people referenced. I looked at >>>>>>>>>> some >>>>>>>>>> and didn't find much to explain what they were talking about. >>>>>>>>>> What >>>>>>>>>> Joe >>>>>>>>>> described was a simple lookup table with sine values in it >>>>>>>>>> which is >>>>>>>>>> how >>>>>>>>>> a DDS works. There are two forms of spurs from digital >>>>>>>>>> implementations. >>>>>>>>>> One is from phase quantization and the other is from amplitude >>>>>>>>>> quantization. Then the DAC has its own type of distortion >>>>>>>>>> which can >>>>>>>>>> also produce spurs but are not directly related to the fact >>>>>>>>>> that the >>>>>>>>>> data is digital. The other two types are an inherent >>>>>>>>>> limitation of >>>>>>>>>> digital data representation of a sine wave. The phase >>>>>>>>>> quantization >>>>>>>>>> can >>>>>>>>>> be completely eliminated by using only integer ratios between the >>>>>>>>>> reference clock frequency and the synthesized frequency. >>>>>>>>>> Amplitude >>>>>>>>>> quantization can not be eliminated and ultimately is imposed >>>>>>>>>> by the >>>>>>>>>> resolution of the DAC. >>>>>>>>>> >>>>>>>>>> I designed a DDS a couple of years ago and used a reasonable size >>>>>>>>>> LUT >>>>>>>>>> with linear interpolation. I think the ultimate sine values were >>>>>>>>>> accurate to about 20 or maybe 22 bits. But that was all >>>>>>>>>> overkill. >>>>>>>>>> Even >>>>>>>>>> though I had 24 bit DACs the SNR and SINAD were in the 90s and >>>>>>>>>> 100s of >>>>>>>>>> dB. At least I was confident it wasn't the digital stuff that >>>>>>>>>> limited >>>>>>>>>> the result. >>>>>>>>>> >>>>>>>>> The time-nuts post by Gerhard seemed to say that the very low >>>>>>>>> frequency >>>>>>>>> instability is due to the very long period of the actual >>>>>>>>> waveform. If >>>>>>>>> the phase increment M and 2**N are relatively prime, the actual >>>>>>>>> period >>>>>>>>> of the output waveform is M * 2**N clocks. >>>>>>>> >>>>>>>> I'm not clear on this. As long as there is no truncated bits in >>>>>>>> the >>>>>>>> phase accumulator, there is no "instability", all the phase >>>>>>>> values are >>>>>>>> exact. >>>>>>>> >>>>>>>> If you are working in the digital domain, there will be no noise or >>>>>>>> distortion to the signal other than the limited amplitude >>>>>>>> resolution >>>>>>>> which can be reduced as much as required. If you are converting to >>>>>>>> analog you are only limited by your DAC and anti-alias filter. >>>>>>> >>>>>>> It was an analogue issue, AIUI. For a general choice of phase >>>>>>> increment >>>>>>> M, the nominal period of the output is 2**N/M, whereas the real >>>>>>> period >>>>>>> (where the DAC values all repeat) is the LCM of M and 2**N. That >>>>>>> can be >>>>>>> as much as M**2 times longer, and give rise to small phase artifacts >>>>>>> that the time-nuts folks care about a lot. >>>>>> >>>>>> I'm a bit unclear. If it is an analog issue, it would have >>>>>> nothing to >>>>>> do with the digital portion and in particular the ratios of >>>>>> modulus and >>>>>> step size. >>>>>> >>>>>> There is some misunderstanding. The issue you are raising, the >>>>>> lack of >>>>>> exact digital values repeating on each Fout cycle, will *not* create >>>>>> spurs other than the other mechanisms as I have mentioned which >>>>>> include >>>>>> amplitude quantization and analog effects. If it does I would >>>>>> like to >>>>>> know the mechanism. >>>>>> >>>>> >>>>> Say you're using a 400 MHz, 48-bit DDS to make 10 MHz, using a phase >>>>> increment M = 7036874417767. Being an odd number, M is relatively >>>>> prime >>>>> to 2**48. Thus the sequence of phase accumulator values will not >>>>> repeat >>>>> for M cycles of the output. This requires 703687.4 seconds which is >>>>> more than 8 days, despite an apparent periodicity of 100 ns. >>>>> >>>>> The DAC values may repeat more often than this, or very nearly repeat >>>>> (which is what Gerhard was talking about on time-nuts) but there is >>>>> the >>>>> potential for DAC nonlinearities and slewing effects to produce phase >>>>> and amplitude perturbations on time scales of hours to days. >>>>> >>>>> Since time and frequency can be measured to absurd accuracy, it's >>>>> quite >>>>> possible to get easily measureable phase errors at surprisingly long >>>>> time scales. >>>> >>>> I really don't get your point. To make a 10 MHz sine wave from a 400 >>>> MHz clock, the phase step will be M/400 where M is the modulus. So >>>> your >>>> phase increment *can't* be prime relative to the modulus. Where did >>>> you >>>> get the numbers you are working with? >>>> >>>> I have no idea why you are talking about the DAC. If you are referring >>>> to the values fed to the DAC repeating more often than the phase >>>> values, >>>> then you are talking about truncation of the phase values which *is* >>>> where spurs come from. >>>> >>>> So what was your point? >>>> >>> Forget it. >>> >>> Cheers >>> >>> Phil Hobbs >> >> Rickman just wants to argue and insult people. Better to ignore him. >> >> > I don't mind arguing, but arguing without plugging in the numbers to try > to understand the example is, *ahem*, unproductive.
So why don't you want to discuss a real example then? You picked three numbers that were not possible, they don't add up... or divide up actually. Do you wish to pick some real numbers? I would prefer to use numbers I can work with on my calculator so a modulus of less than 2^32 would be better. In all cases Fclock/Fout = Modulus/StepSize. When you talk about "relative prime" modulus and step size while the clock and output frequencies are in a ratio of 40, you have picked impossible numbers. I find it interesting that Larkin won't discuss this either but he is happy to jump in and insult people. -- Rick