Coherent signal source
09654124 ยท 2017-05-16
Assignee
Inventors
Cpc classification
H03L7/24
ELECTRICITY
G06F1/0328
PHYSICS
G06F1/022
PHYSICS
International classification
H03L7/24
ELECTRICITY
Abstract
An apparatus, a signal source, and a method for operating the same are disclosed. The apparatus includes a first signal source, a port, controller, signal synthesizer, and a first timestamp register. The port is adapted to receive a first clock signal that includes a sequence of pulses at a constant clock frequency. The signal synthesizer generates an output signal in response to inputs from the controller, the output signal having a first frequency. The first timestamp register counts pulses from the first clock signal. The controller is adapted to receive a command to change the output signal frequency from the first frequency to a second frequency, the controller causing the signal synthesizer to change the output signal frequency to the second frequency and to generate a frequency change timestamp from the timestamp register indicating a time at which the output signal changed from the first frequency to the second frequency.
Claims
1. An apparatus comprising: a first signal source comprising: a port adapted to receive a first clock signal comprising a sequence of pulses at a constant clock frequency; a controller; a signal synthesizer that generates an output signal characterized by an output signal frequency and an output signal phase, in response to inputs from said controller, said output signal initially having a tone at a first frequency; and a first timestamp register that counts pulses from said first clock signal, said controller being adapted to receive a command to change said output signal frequency from said first frequency to a second frequency, said controller causing said signal synthesizer to change said output signal frequency to said second frequency and to generate a frequency change timestamp from said first timestamp register indicating a time at which said output signal changed from said first frequency to said second frequency.
2. The apparatus of claim 1 wherein said controller sets said output signal phase to a known phase in response to a phase setting command and generates a timestamp indicating when said output signal phase was changed to said known phase.
3. The apparatus of claim 1 wherein said signal synthesizer changes frequency at times determined by said first clock signal.
4. The apparatus of claim 1 wherein said controller computes a second frequency reference phase corresponding to said second frequency from said frequency change timestamp, a first frequency reference phase, and said first and second frequencies.
5. The apparatus of claim 1 wherein said output signal is a sinusoid.
6. The apparatus of claim 1 wherein said signal synthesizer is a DDS.
7. The apparatus of claim 1 wherein said signal synthesizer is a fractional-N synthesizer.
8. The apparatus of claim 1 further comprising a mixer characterized by an input port, an LO port, and an IF output port, said output signal being connected to said LO port.
9. The apparatus of claim 8 further comprising a receiver comprising: a receiver signal port connected to said IF port; an ADC that generates one digital value from an IF signal leaving said IF port in response to each clock pulse from an ADC clock; an ADC clock register that includes an ADC timestamp value that is incremented on each clock pulse from said ADC clock; and a processor that records a sequence of said digital values starting at a first time and said ADC timestamp value at said first time.
10. The apparatus of claim 9 wherein said processor causes said controller to change said first frequency to said second frequency and reads said frequency change timestamp generated by changing said first frequency to said second frequency.
11. The apparatus of claim 10 wherein said processor determines a phase of a component of said IF signal after said controller changes said first frequency to said second frequency, said phase of said IF component being independent of phase changes introduced by said change in frequency from said first frequency to said second frequency.
12. The apparatus of claim 11 wherein said processor causes said ADC to generate a sequence of digital values starting at a starting time, said sequence of digital values being processed by said processor to determine said phase of said IF component, said determined phase being independent of said starting time.
13. A system comprising first and second component frequency sources and a common reference source that generates a common reference source signal, each component frequency source comprising: a reference clock that generates a clock signal comprising a sequence of pulses at a constant clock frequency; a controller, a signal synthesizer that generates an output signal in response to inputs from said controller, said output signal having a first frequency determined by said constant clock frequency; and a timestamp register that counts pulses from said clock signal, said controller being adapted to receive a command signal that indicates a change in said output signal frequency to a second frequency, or a change in said output signal phase to a new phase, said controller causing said signal synthesizer to change said output signal to a new output signal having said second frequency or said new phase, respectively, and to generate a change timestamp from said timestamp register indicating a time at which said a output signal changed, said common reference source coupling said common reference source signal to each of said reference clocks in said component frequency sources, said constant clock frequency in each of said component frequency sources being synchronized to said common reference source signal.
14. A method for determining the phase of a tone generated by a signal synthesizer when said tone changes frequency from a first frequency to a second frequency at time t.sub.s, said method comprising: providing a clock register that is incremented at a constant rate and not reset while said signal synthesizer is being utilized for a measurement of interest that depends on said phase; generating a timestamp from said clock register at t.sub.s; and determining said phase of said tone at times after t.sub.s from said timestamp, using said first and second frequencies and a phase of said tone at a known value of said clock register at a time prior to t.sub.s.
15. The method of claim 14 further comprising causing said signal synthesizer to change from said first frequency to said second frequency at a time determined by a time at which said clock register was incremented.
16. The method of claim 14 further comprising setting said phase of said signal synthesizer to a known phase at a time prior to t.sub.s and generating a timestamp from said clock register at that time.
17. The method of claim 14 further comprising using said signal synthesizer output as an LO signal to a mixer and determining a phase offset of an IF signal generated by said mixer using said determined phase of said tone.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) In the following discussion, the timezero phase of a sinusoidal signal is defined to be the phase of the signal at timezero, that is, .sub.1 in Eq. (2). While the instantaneous phase difference between V.sub.1(t) and V.sub.2(t) is a function of t, the timezero phase difference (.sub.2.sub.1) is invariant even in the case in which the two signals have different frequencies. Furthermore, even in the case in which the second signal is measured with respect to a different time scale that is offset relative to the time scale used to define the first signal, the timezero phase of the difference signal is still invariant. In this case, the timezero phase of the difference signal is .sub.2(t.sub.0).sub.1(0).sub.2t.sub.0, where to is the offset of the two time scales. Hence, if the time, t.sub.0, offset is known, the timezero phase difference can be computed and used in measurements made using the two signals in question. The present invention provides a mechanism for keeping track of the time at which the frequencies of a signal generator are changed so that the difference in time of the timezero phases can be obtained.
(10) The manner in which the present invention provides its advantages can be more easily understood with reference to
(11) Refer now to
(12) In the above example, the phase of the signal after the frequency change is known relative to the phase of the signal prior to the frequency change. Hence, if the phase prior to the frequency change is known at one point in time, the phase of the signal at any future point after that point in time can be computed. Hence, if sine wave generator 21 can be reset to a known phase and the time at which the reset took place is recorded in a timestamp, the absolute phase to the output of signal generator 20 is known even across frequency changes.
(13) The above example assumes that sine wave generator 21 does not change phase during the switching of the frequency of the output between .sub.1 and .sub.2. Refer now to
(14) Signal generator 10 also includes a timestamp register 17 that counts the pulses from clock 15. Timestamp register 17 is reset once when signal generator 10 is started and not reset again during the period in which signal generator 10 is being used. The size of timestamp register 17 is sufficient to ensure that the count in timestamp register 17 will not overflow. When controller 18 receives a command to change the output frequency, controller 18 changes increment register 16 and records the contents of timestamp register 17. Since the change only involves changing the increment in increment register 16, the phase of the output does not change at the switch point. Hence, the arrangement shown in
(15) It should be noted that signal generator 10 could also change the phase of the output at any time by incrementing or decrementing the contents of the phase register directly using controller 18. Hence, if, for example, the timezero phase of the signal at the new frequency was to match the timezero phase of the prior signal, controller 18 would also decrement the phase register by an amount corresponding to (.sub.1.sub.2)t.sub.s. In addition, resetting phase register 11 to a known value and recording the time at which the reset took place in a timestamp allows the absolute phase of the output signal to be known from that point in time forward.
(16) The timestamp technique of the present invention can also be used with signal generators that utilize fractional-N synthesizers. Refer now to
(17) When controller 36 receives an input to change frequencies, controller 36 outputs a timestamp from timestamp register 37 corresponding to the time of the frequency change. The ratio of the two divisors is then changed to reflect the new desired output frequency. As discussed above, timestamp register is reset once before signal generator 30 is started and is not subsequently reset. Timestamp register 37 counts the reference signal pulses. The frequency change starts on a clock pulse. However, it takes some time for the new frequency to settle to the desired value. Refer now to
(18) In the case of fractional-N synthesizer-based signal generators, there is a limit to the rate at which the frequency can be changed and still maintain the relationships with respect to the timezero phase. If the frequency is shifted too fast, the phase-locked loop will become unlocked. If this happens, the phase of the output signal will become uncontrolled, and hence, the resulting phase of the output signal cannot be determined. Hence, frequency shifts must be performed sufficiently slow to ensure that the phase locked loop does not unlock.
(19) It should be noted that a fractional-N synthesizer can be reset to a reset phase for any given frequency in response to a command to the controller. As noted above, a fractional-N synthesizer operates by shifting the divider value between two values in a manner such that the weighted average of the divisors generates the desired frequency from the synthesizer. For example, the divisor could be 100 for 10 cycles and 101 for 10 cycles to generate an output frequency that corresponds to a divisor of 100.5. To avoid artifacts such as spurs in the output signal, the actual pattern of switching between the divisors is determined by a pseudo-random switching sequence which provides the desired weighted average while avoiding spurs generated from a regular switching pattern. If the switching sequence is restarted from the beginning, the phase of the output signal will return to the same value as generated the last time the sequence began from this point. Controller 36 has an input that allows this sequence to reset to a predetermined starting point. However, to determine the value of this phase, a calibration procedure must be performed. If such a calibration is available, the absolute phase of the output signal can be determined from the time of the reset onward.
(20) A frequency source according to the present invention is particularly useful as the LO for a mixer. In a number of measurements, a test signal is down-converted in a mixer a number of times to measure different components of the test signal. At each down-conversion, the frequency of the mixer LO is changed. As noted above, the present invention allows the phase change of the LO signal to be determined, and hence, the phase of the components of the IF signal from the mixer can also be determined relative to the phase of the components that were previously measured. In prior art systems, the phase of the mixer at the new frequency is not known relative to the phase at the previous frequency, and hence, if that information is needed to process the measurements of the test signal in question, some other means for determining the phase of the new output from the mixer is needed. These other methods introduce errors, particularly in the presence of noise.
(21) Refer now to
(22) Consider a tone in the input signal. That tone is characterized by a phase. That tone is down-converted to a corresponding tone in the IF signal by mixer 61. The corresponding tone of the IF signal has a phase that is offset from the phase in the input signal for that tone by an amount that depends on the phase of LO signal relative to the phase of the tone in the input signal. If the phase of the LO is known, then the phase of the tone in the IF signal relative to the phase of that tone in the input signal can be determined. The timestamp generated from timestamp register 24 allows DSP 65 to determine the phase of the LO signal relative to the timezero phase of the output of sine wave generator 21.
(23) The phase of each tone in the IF signal changes over time. The IF signal can be represented by a signal S(t) of the form
S(t)=A.sub.0+A.sub.k cos(kt+.sub.k)(4)
where A.sub.k is the amplitude of the k.sup.th tone, .sub.k is the phase of the k.sup.th tone and k is the frequency of that tone. Consider the measurement of S in a system in which the time coordinates are offset by an amount to relative to system in Eq. (1). Denote time in the new system by t. Here, t=tt.sub.0.
S(t)=A.sub.0+A.sub.k cos(k(t+t.sub.0)+.sub.k)=A.sub.0+A.sub.k cos(k(t)+.sub.k)(5)
where
.sub.k=kt.sub.0+.sub.k(6)
(24) Here, .sub.k is the phase that would be measured in the new time system. From the equation above, it is clear that the amplitudes of the tones do not depend on the choice of the t=0 point in time, but the phases do. Consider the case in which all .sub.k are 0. That is, in the original time coordinate system, as a function of k is 0. In the new coordinate system, the phases, .sub.k now are a linear function of k. DSP 65 measures the IF signal in a time coordinate system that offsets from that time coordinate system of the LO or the input signal. Hence, to compute the phases of the IF signal from the phases measured by DSP 65, a knowledge of the time offset between the two systems is needed. i.e., the value of t.sub.0. This time offset is determined by the time at which the digital sequence that is analyzed by DSP 65 is begun. If only one LO frequency is used and only one digital signal is converted, the uncertainty in to leads to a fixed phase offset that is unknown; however, the relative phases of the components can be determined. If, on the other hand, two sets of measurements are to be made at different LO frequencies and times, the phases in the second set of measurements will have a different phase slope and offset than the phases measured in the first set of measurements. As a result, combining the two sets of measurements presents significant challenges.
(25) Since the t=0 point on the time scale is arbitrary, assume that the first set of measurements is performed at t=0. The second set of measurements is begun at t=t.sub.0. When DSP 65 commences recording a sequence of measurements from ADC 62, DSP 65 records a timestamp from timestamp register 63. ADC 62 digitizes the IF signal in response to an ADC clock 64. The pulses from ADC clock 64 are also counted in timestamp register 63. Timestamp register 63 is analogous to timestamp register 24 in that it is reset once at some time prior to the measurements being made and not reset thereafter. The size of timestamp register 63 is sufficient to ensure that the count stored therein will not overflow during the course of the measurements. Hence, DSP 65 knows the timestamp values at t=0 and t=t.sub.0. From these measurements, the phase slope of the second set of measurements relative to the first set of measurements can be determined. The phase offset of the second set of measurements relative to the first set of measurements can then be determined from the timestamp generated from timestamp register 24 at each point in time at which the frequency of the LO is changed, since the timezero phase of the LO signal at each frequency change relative to the previous timezero phase is known, and hence, the phase of the new LO signal relative to the previous timezero phase can be computed as a function of time as measured by the LO clock.
(26) The manner in which a measurement apparatus based on mixer-based measurement system 60 can be used in systems that utilize stitching to piece together a spectrum for a test signal that has much greater bandwidth than that of the receiver will now be discussed in more detail. Consider a case in which the input to mixer 61 shown in
(27) In the prior art, the component spectra are chosen such that the spectra overlap one another in a manner in which a known frequency component is present in both spectra. The overlapped data is then used to calculate the relative phase offset of the two component spectra and the relative starting times for the component spectra. One problem with this technique is that measurement noise can cause errors in the alignment. To reduce the errors, the overlap areas must be very large, which increases the number of component spectra that must be utilized to span the desired frequency range.
(28) Refer now to
(29) For the purposes of this example, an input signal having a 100 MHz frequency band of interest is assumed as shown in
(30) After timezero phase spectrum has been generated, DSP 65 sets the frequency of signal generator 20 such that the IF signal has the phase spectrum shown in
(31) In the above-described embodiment, the higher tone segment is stitched to the lower tone segment. However, the order in which the two component signals are stitched can be varied. For example, the higher frequency signal can be kept as the growing component with each lower frequency segment being added to that component.
(32) In the above-described embodiments, the timestamp registers count clock pulses. It should be noted that the registers can include a divider such that only every nth clock pulse is actually counted if the clock frequency is sufficiently high.
(33) A number of frequency sources according to the present invention can be combined to provide a system in which the relative phases between the sources can be controlled by driving the reference clocks in each source from a common frequency reference. Refer now to
(34) The above-described embodiments utilize a timezero phase that is the phase of a tone at a point in time that is defined to be the point at which a clock is 0. However, the teachings of the present invention can be applied in any system in which there is a clock that measures absolute time and in which the phase of the output of the signal synthesizer changes continuously over time during any frequency change in that synthesizer without explicitly computing the phase of the signal at t=0 on that clock. Knowing the phase of the signal at any specific time on the clock and the history of changes in frequency and/or phase including the clock at which each change was made and the nature of the change, is sufficient to allow the phase of the signal after the change to be computed in terms of the phase of the signal before the change. If the phase of the signal before the change was known in absolute terms, then the phase of the signal after the change is also known in absolute terms. If the phase of the signal before the change was not known in absolute terms, then the relative phase of the signal in terms of the phase of the signal before the change can be determined. The later case is often sufficient for many measurement problems in which phase changes are the variables of interest.
(35) Accordingly, the term reference phase, denoted by .sub.r is defined to be a phase of a tone at a known point in time, t.sub.r, referred to as the reference time. The timezero phase is .sub.rt.sub.r. The clock values captured by the timestamps provide the reference times at which the frequency or phase was changed.
(36) In the above-described embodiments, the clock whose pulses are counted to provide the timestamps is the same clock that is used by the signal synthesizer to control the output of the signal synthesizer. In general, the synthesizer will change frequency or reset the phase of the output at a time determined by some clock. For example, the frequency change will occur on an edge of that clock. The counter that counts the clock pulse to provide the timestamps is likewise synchronized with that clock. Hence, the counter value is an accurate measure of the time at which the frequency change was instituted. At most, the time of the frequency change is offset from the time on the clock by a constant amount that can be determined by a calibration procedure.
(37) In principle, the clock that is used to define the time values that are recorded in the timestamps could be an entirely separate clock. However, in this case, the time represented by counting pulses from this clock could have an uncertainty of half a clock cycle relative to the clock used by the synthesizer. Hence, the timestamp could have an uncertainty of one half a cycle of the timestamp clock. As a result, there would be an error in determining the phase of the signal after the frequency change. At high frequencies, this error could be unacceptable. Hence, using the same clock for synchronizing the synthesizer and the timestamps is preferred.
(38) The above-described embodiments of the present invention have been provided to illustrate various aspects of the invention. However, it is to be understood that different aspects of the present invention that are shown in different specific embodiments can be combined to provide other embodiments of the present invention. In addition, various modifications to the present invention will become apparent from the foregoing description and accompanying drawings. Accordingly, the present invention is to be limited solely by the scope of the following claims.