The invention relates to the conversion into digital information of the frequency difference between a first signal and a second signal or reference signal. More specifically, it concerns the measurement of the fractional part of the number of cycles or periods of a first signal within a period of a reference signal.
Many electronic devices, such as mobile telephones or computers, make use of at least one cyclic digital signal generator. This digital signal generally consists of square pulses. It is often useful to measure the pulse frequency, for example in order to monitor the frequency of the digital signal relative to a target value so that modifications can be made to bring the value closer to said target value.
To do this, a first step can consist of measuring the number of pulses in the digital signal, contained within a period of a reference signal of a known frequency.
To improve the accuracy, it is then desirable to measure the fractional part of this number over the same period of the reference signal.
A need therefore exists for a means for measuring this fractional part, one which consumes little energy and only marginally affects the spectrum of the digital signal measured, while providing sufficient functional accuracy for the anticipated applications.
A first aspect of the invention proposes a time-to-digital conversion process for determining a digital information item corresponding to a fractional part of the number of periods of a first signal contained within a period of a second signal. It comprises the following steps:
the second signal being delayed by a first timer delay and the first signal being delayed by a second timer delay, with first timer delay being greater than second timer delay;
steps /1/, /2/, /3/, /4/ being repeated at least once, before step /5/, with first timer delay being less than second timer delay.
In parallel, the process allows multiplying the measurements used to calculate the fractional part. However, for a same period of the second signal, increasing the time shift between the second signal and the first signal allows improving the accuracy of the measurement of the fractional part, particularly because this enables determining a larger number of digital information items, functions of the fractional part.
A second aspect proposes a computer program comprising instructions for implementing the process according to the first aspect when said program is executed by a processor.
A third aspect proposes a time-to-digital conversion device comprising first connection means for receiving a first signal and a second signal, as well as an output for delivering a fractional part of the number of periods of the first signal contained within a period of the second signal. It additionally comprises timing and comparison means adapted to implement the following processing:
the processing sequence /a/, /b/, /c/ and /d/ being repeated at least once; said device further comprising a first vernier delay unit comprising a first delay line and a second delay line, a timer delay introduced by the first delay line being greater than a timer delay introduced by the second delay line and a second vernier delay unit comprising a second vernier delay line comprising a first delay line and a second delay line, a timer delay introduced by the first delay line being less than a timer delay introduced by the second delay line; the first vernier delay unit and second vernier unit being serially connected.
The device comprises a calculation means coupled to the timing and comparison means in order to determine the digital information item corresponding to the fractional part, based on the first and second digital information items.
In particular, the timing and comparison means can be adapted to repeat the processing sequence /a/, /b/, /c/ and /d/ at least once.
By alternatively delaying the second signal and the first signal relative to each other, the device limits the spikes in power consumption. In addition, the accuracy of the calculation of the fractional part depends on the accuracy with which it is possible to know the value of the shift actually introduced between the signals. The time shift is typically created by a series of clocks implemented by a plurality of transistor-based delay circuits. The time shift can be increased by increasing the duration of the time delay individually introduced by each delay circuit. The benefits obtained by means of this last possibility are offset, however, by the decreased accuracy for the duration of each time delay introduced. Increasing the time shift can also be achieved by increasing the number of delay circuits. However, the greater the number of circuits, the more the power consumption increases for a same measured reference period. The increase in power consumption is also accompanied by spectral disturbances (particularly spurious lines in the high and low frequencies). In particular, the device allows increasing the number of measurements when the delay circuits have equal time delays.
In the device according to the third aspect, in order to satisfy other needs, the timing and comparison means can comprise at least one vernier delay unit receiving the second signal and the first signal. Each vernier delay unit then comprises:
In particular, the device according to the third aspect may comprise timing and comparison means comprising at least two serially connected vernier delay units.
Alternatively, the device of the third aspect can comprise timing and comparison means which comprise a single vernier delay unit. The device then comprises switching means adapted to alternate between directing, each time for a determined period of the second signal:
This embodiment reduces the silicon surface area required for the production of the device, because a single vernier delay unit is used.
Alternatively, the device according to the third aspect can comprise timing and comparison means comprising a first vernier delay unit and a second vernier delay unit, serially connected, with the device comprising switching and timing means adapted to direct:
This embodiment limits the meta-unstable states which can adversely impact the accuracy of the calculation of the fractional part.
In a fourth aspect, a digital phase-locked loop (or digital PLL) is proposed, adapted to deliver a first signal of a frequency controlled by a set point signal. The digital PLL comprises a time-to-digital conversion device according to the third aspect, in order to determine a fraction of the number of cycles of the first signal contained within a period of a second signal.
A fifth aspect proposes a portable electronic device comprising a digital phase-locked loop according to the fourth aspect.
Other features and advantages of the invention will become apparent upon reading the following description. This description is purely illustrative and is to be read with reference to the attached drawings, in which:
In the following sections, a vernier delay unit 10 as represented in
The vernier delay unit 10 comprises a sampling unit 26 comprising latches D. Each latch D is adapted to receive the first signal S1 on a first input and the second signal S2 on a second input, and to deliver on an output Q the binary value of the first signal S1 after a rising edge has been detected in the second signal S2. Each latch D therefore allows sampling the first signal Si by the second signal S2. In the sampling unit 26, the latches D are arranged so that a binary value w is obtained on the output Q before and after each new timer delay simultaneously introduced in the first signal S1 and the second signal S2. In the example in
The sampling unit 26 comprises N+1 latches D. The word W, delivered by the sampling unit 26 on the third output 20, is thus equal to the word formed by the sequence of binary values from each output Q of the latches D. In the example in
and the second signal S2 of period
are represented. Note in particular that the period T1 can be expressed as T2=T1×(a+b) , where a is an integer and b is a real number strictly between 0 and 1. The period T2 can therefore be expressed as a multiple of the period T1 to which is added a fraction of the period T1.
During operation, the sampling unit 26 receives the first signal S1 and the second signal S2, and delivers:
In the example in
Thus, in the example in
τ2V1>τ1V1, τ2V2<τ1V2, τ2V3>τ1V3.
The vernier delay units of the chain will therefore alternate between delaying the reference signal Sref relative to the output signal Sout, and delaying the output signal Sout relative to the reference signal Sref. In one embodiment, the timer delays τ1 and τ2 are selected such that τ1V1=τ2V2=τ1V3 and τ2V1=τ1V2=τ2V3.
Alternatively, each vernier delay unit in the chain can comprise a different number N of timers T and latches D. The chain is then arranged such that, when considering pairs of two immediately adjacent vernier delay units, the signal propagation time in one of the vernier delay units of each pairing compensates for the propagation time introduced by the other vernier delay unit in the group. Considering, for example, the pairing which consists of the vernier delay unit V1 equipped with a number NV1 of timers T and the vernier delay unit V2 equipped with a number NV2 of timers T, the following mathematical expression is then satisfied:
N
V1·(τ1V1−τ2V1)=NV2·(τ2V2−τ1V2)
The calculation means 130, connected to the third output 20 of each vernier delay unit, are adapted to calculate the fractional part of the number of periods of the output signal Sout per period of the reference signal Sref, based on the words W. In particular, this fractional part can be obtained by calculating the mean of the values of the fractional part b corresponding to each word W. Alternatively, this fractional part can also be obtained by applying Gaussian filtering to the different values obtained for the fractional part b. In the special case where τ1V1=τ2V2=τ1V3 and τ2V1=τ1V2=τ2V3, the value of the fractional part b obtained from the words W1, W2 and W3 is identical, aside from small inaccuracies due primarily to the meta-unstable states of the vernier delay unit latches as well as to the unpairing of the delays.
For vernier delay units which have an uneven number for their sequential position in the chain (in the example in
where:
For vernier delay units which have an even number for their sequential position in the chain (in the example in
where:
As a non-limiting example, if N is equal to 12 and if the words W1, W2, W3 are respectively equal to 001110000111, 111000111100, and 001111000111, we then obtain:
In this example, on the average, the fractional part b is equal to 2/7.
In the example in
The state machine 220 comprises an input for receiving the word W delivered by the vernier delay unit V, and inputs for receiving the output signal Sout and the reference signal Sref output from the vernier delay unit V. The state machine 220 has the particular function of allowing or not allowing output signals from the vernier delay unit V to loop to the inputs of the vernier delay unit V. To do this, the state machine 220 comprises an output 222 which delivers a control signal. The control signal initially has a value of 0. The state machine 220 is programmed so that the control signal assumes a value of 1 upon detection of the rising or falling edge of the output signal Sout. Alternatively, the state machine 220 can be programmed so that the control signal assumes a value of 1 upon detection of the rising or falling edge of the output signal from the vernier delay unit V which has been subjected to a timer delay in the vernier delay unit V of the smallest duration. The state machine 220 also has the function of sending to the calculation means 130 the words W successively delivered over time by the vernier delay unit V.
The inputs to the first “AND” logic gate 230 are connected to receive the output signal from the state machine 220 and the output signal Sout from the vernier delay unit V. The inputs to the second “AND” logic gate 240 are connected to receive the output signal from the state machine 220 and the reference signal Sref that is output by the vernier delay unit V.
In the first alternative embodiment, the calculation means 130 are adapted to calculate the fractional parts b from a series of received words W
delivered by the state machine 220, by applying the relation where:
In the example in
The “OR” logic gates 300 and 310 are each designed to perform a non-exclusive OR Boolean operation on received input signals in order to obtain an output signal. The “AND” logic gates 330 and 340 are each designed to perform an AND Boolean operation on received input signals in order to obtain an output signal. The inputs to the first “OR” logic gate 300 are connected to receive the output signal from the first “AND” logic gate 330 and the reference signal Sref. The output signal from the first “OR” logic gate 300 is connected to the second input 14 of the first vernier delay unit V1. The inputs to the second “OR” logic gate 310 are connected to receive the output signal from the second “AND” logic gate 340 and the output signal Sout. The output signal from the second “OR” logic gate 310 is connected to the first input 12 of the first vernier delay unit V1.
The first state machine 320 comprises an input for receiving the word W1 delivered by the first vernier delay unit V1, and inputs for receiving the output signal Sout and the reference signal Sref output from the first vernier delay unit V1. The second state machine 350 comprises an input for receiving the word W2 delivered by the second vernier delay unit V2, and inputs for receiving the output signal Sout and the reference signal Sref output from the second vernier delay unit V2. The second state machine 350 has the particular function of allowing or not allowing the output signals from the second vernier delay unit V2 to loop to the inputs of the first vernier delay unit V1. To do this, the second state machine 350 comprises an output for delivering a control signal. The control signal initially has a value of 0. The second state machine 350 is programmed so that the control signal assumes a value of 1 upon detection of the rising or falling edge of the output signal Sout from the second vernier delay unit V2. Alternatively, the second state machine 350 can be programmed so that the control signal assumes a value of 1 upon detection of the rising or falling edge of the output signal from the second vernier delay unit V2 which has undergone a timer delay in the first and second vernier delay unit V1, V2 of the smallest total duration. The state machine 220 also has the function of sending to the calculation means 130 the words W successively delivered over time by the second vernier delay unit V2.
The inputs to the first “AND” logic gate 330 are connected to receive the output signal from the second state machine 350, and to receive the output signal Sout from the second vernier delay unit V1 delayed by a duration τ3 by the first timer 360. The inputs to the second “AND” logic gate 240 are connected to receive the output signal from the second state machine 350, and to receive the reference signal Sref output from the second vernier delay unit V2 delayed by a duration τ4 by the second timer 370. In particular, the duration τ3 and the duration τ4 are chosen so that the difference τ3−τ4 is substantially proportional to τ1−τ2.
As is represented in
Thus the frequency Fout is equal to (Ncycle+fcycle)×Fref.
The digital control unit 510 delivers a control signal to a digitally controlled oscillator 520 such that said oscillator generates the output signal Sout as a function of Ncycle and of fcycle. A counter 530 is connected to the output of the oscillator, which counts the number N′cycle of cycles actually contained in the output signal Sout for a period of the signal Sref. The counter 530 is also connected to the digital control unit 510 in order to send the number N′cycle, to said unit. The first input 110 of the converter 100 is connected to receive the output signal Sout. The second input 120 of the converter 100 is connected to receive the reference signal Sref. The fractional part b which is output from the converter 100 is equivalent to the number fcycle representing the fraction of a complete cycle actually contained in the output signal Sout. The output 150 from the converter is connected to the input of the digital control unit 510. Based on its knowledge of the number f′cycle and the number N′cycle, the digital control unit 510 adapts the control signal to reduce the differences between the pair Ncycle, fcycle and the pair N′cycle, f′cycle.
A digital phase-locked loop can, for example, be used in electronic equipment requiring the generation of electrical signals of a frequency that can be precisely configured. A radio communication transmitter/receiver 700 as illustrated in
Number | Date | Country | Kind |
---|---|---|---|
09 58016 | Nov 2009 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2010/067400 | 11/12/2010 | WO | 00 | 5/11/2012 |