Time difference digital conversion circuit and method for controlling time difference digital conversion circuit

The time difference digital conversion circuit addresses PVT-induced fluctuations by measuring edge time differences in a time division manner, ensuring accurate width time measurement with reduced power consumption and complexity.

JP2024167416AActive Publication Date: 2024-12-03DENSO CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024156556
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-03
Estimated Expiration
2040-07-29

AI Technical Summary

Technical Problem

Existing time difference digital conversion circuits face challenges in accurately measuring the width time between edges of a current waveform due to fluctuations caused by PVT variations, such as power supply voltage changes and temperature, especially when operating at high speeds.

Method used

A time difference digital conversion circuit that measures the first edge time difference and second edge time difference between a pulse to be measured and a reference clock in a time division manner, using a Ring Delay Line (RDL) to compensate for PVT variations by calculating the ratio of the pulse width to the reference clock period.

Benefits of technology

The circuit accurately measures the width time between edges of a current waveform while minimizing the impact of PVT variations, reducing power consumption, and maintaining low manufacturing complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024167416000001_ABST
    Figure 2024167416000001_ABST
Patent Text Reader

Abstract

To provide a time difference digital conversion circuit that can measure a width time of a pulse to be measured while suppressing fluctuation due to PVT variation.SOLUTION: One TDC 24 digitally converts the time difference between a pair of edges of a pulse PW to be measured using a delay time generated by an RDL. The TDC 24 measures a first edge time difference between a pair of edges of the pulse PW to be measured and a second edge time difference in a period of a reference clock SCLK in a time-division manner. A divider 28 calculates a result of dividing the first edge time difference by the second edge time difference, at least to the decimal point.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a time difference digital conversion circuit and a control method for a time difference digital conversion circuit. [Background technology]

[0002] For example, when detecting a surge analog current waveform generated when a motor control circuit drives a motor through a switching element drive circuit at high speed, the surge analog current can be converted into a pulse by comparing it with a desired threshold value using a comparator. In order for the control logic to sample the pulse generated when a surge is detected with a high resolution using a reference clock, it is necessary to operate the reference clock for sampling at high speed. However, when a high-voltage process is adopted, it is difficult to implement a reference clock that operates at high speed.

[0003] The sampling period of the pulse that the control logic can acquire depends on the period of the reference clock. For this reason, it has been proposed to prepare a low-speed reference clock and use a DLL to multi-phase it to create a high-speed reference clock.

[0004] In addition, when implementing such a technique, it has been proposed to use a time difference digital conversion circuit (for example, see Patent Document 1). According to the technique described in Patent Document 1, data is delayed using a delay line and sampled with a reference clock to perform time difference digital conversion. In the technique described in Patent Document 1, calibration is performed at appropriate times. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2012-114716 A Summary of the Invention [Problem to be solved by the invention]

[0006] As described in Patent Document 1, the use of timely calibration complicates the design. Moreover, it has been found that the design is vulnerable to PVT variations due to process, power supply voltage, or temperature.

[0007] An object of the present invention is to provide a time difference digital conversion circuit and a control method for a time difference digital conversion circuit that are capable of measuring as accurately as possible the width time between edges of a current waveform surge width as a measurement target pulse while suppressing fluctuations due to PVT variations. [Means for solving the problem]

[0008] According to claim 1, one TDC (Time to Digital Converter) measures a first edge time difference between a pair of edges of the pulse to be measured and a second edge time difference of the period of the reference clock in a time-division manner, and a division unit calculates a division result by dividing the first edge time difference by the second edge time difference.

[0009] The first edge time difference between a pair of edges of the pulse to be measured and the second edge time difference in the period of the reference clock tend to fluctuate similarly due to PVT variations such as changes in power supply voltage and temperature. According to the invention described in claim 1, the TDC measures the surge width of the current waveform as the first edge time difference between a pair of edges of the pulse to be measured. This makes it possible to compensate for the influence of the period fluctuation of the reference clock and to measure the width time between the pulse edges of the surge width of the current waveform to be measured as accurately as possible. [Brief description of the drawings]

[0010] [Figure 1] Electrical configuration diagram of a time difference digital conversion circuit according to one embodiment [Diagram 2] Electrical configuration diagram of the motor control circuit [Diagram 3] Example of peak slice width waveform and measurement target pulse [Figure 4] Electrical diagram of the measurement frequency change circuit [Diagram 5]Electrical diagram of TDC [Figure 6] RDL Electrical Configuration Diagram [Figure 7] State change diagram [Figure 8] Latch and Encoder Electrical Configuration Diagram [Figure 9] Electrical diagram of the pulse width time acquisition circuit, part 1 [Figure 10] Part 2 of the electrical diagram of the pulse width time acquisition circuit [Figure 11] Electrical block diagram of the reference clock period acquisition circuit, part 1 [Figure 12] Part 2 of the electrical diagram of the reference clock period acquisition circuit [Figure 13] Divider Electrical Block Diagram [Figure 14] Divider circuit electrical diagram [Figure 15] Divider Truth Table [Figure 16] Timing chart No. 1 [Figure 17] Timing chart No. 2 [Figure 18] Explanatory diagram of the modified example No. 1 [Figure 19] Explanatory diagram of modified example No. 2 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] An embodiment of the present invention will be described below with reference to the drawings. The time difference digital conversion circuit 1 shown in FIG. 1 mainly inputs a measurement target pulse PW and a reference clock SCLK to operate, and is a circuit that can digitally convert and measure the width of the measurement target pulse PW that is shorter than the period of the reference clock SCLK. Hereinafter, the measurement target pulse PW will be abbreviated to pulse PW as necessary. The time difference digital conversion circuit 1 may be applied to the input portion of the control logic 3 of the motor control circuit 2 shown in FIG. 2, for example. The motor control circuit 2 shown in FIG. 2 has a control logic 3, an analog drive circuit 4, a three-phase inverter 5, and an analog detection circuit 6 configured as shown in the figure, and feedback controls the motor 7.

[0012] When the motor control circuit 2 drives the motor 7 using the control logic 3, the analog drive circuit 4, and the three-phase inverter 5, a large current flows through the three-phase inverter 5 when the motor is driven, as shown in Fig. 3. The analog detection circuit 6 performs analog detection of the surge current flowing through the three-phase inverter 5. The analog detection circuit 6 amplifies the current using an amplifier 8, and then performs digital conversion using a comparator 10 that compares the amplified signal with a predetermined threshold value Vt input through a DAC 9. In other words, the comparator 10 can peak-slice the surge width of the surge current waveform (corresponding to an analog signal waveform) obtained by driving the motor 7 at the predetermined threshold value Vt and output it as digital data.

[0013] The control logic 3 can also D-input the output of this comparator 10 to, for example, DFF11 in the input stage. However, if the time width of the output digital data of the comparator 10 is shorter than or equal to the period of the reference clock SCLK, the control logic 3 cannot accurately detect the width of the high-speed pulse upon surge detection.

[0014] Therefore, it is desirable to configure the time difference digital conversion circuit 1 described below at the input stage of the control logic 3 and detect the peak slice width as a pulse PW. Here, the relationship between the length of the measurement target pulse PW and the period of the reference clock SCLK does not matter, but in this embodiment, the pulse PW is set to a length approximately equal to the period of the reference clock SCLK. When the width time of the pulse PW is set to a time sufficiently shorter than the period of the reference clock SCLK, the effect becomes more remarkable.

[0015] 1 includes a TDC control circuit 21, OR gates 22 and 23, a TDC 24 (Time to Digital Converter), latches 25, 26 and 27 as holding units, a divider 28, and a measurement frequency change circuit 29. The TDC control circuit 21 receives as input a measurement target pulse PW, a reference clock SCLK used to measure the width of the pulse PW, and a clear signal CLR that instructs to clear the state from the outside.

[0016] The frequency of the reference clock SCLK is set to a low frequency, for example, about 10 MHz, which can reduce the effects of power consumption and parasitic capacitance, and can improve ease of manufacture.

[0017] The TDC 24, which is an example of a time difference measurement unit, includes an RDL 31 (Ring Delay Line) as a delay circuit, a counter 32, a latch and encoder 33, latches 34 and 35, and a subtractor 36, as shown in Fig. 5. The RDL 31 is configured by connecting a NAND gate 37, which is an inverting delay element for startup, and, for example, 30 NOT gates 38, which are inverting delay elements, in a ring shape, as shown in Fig. 6. A signal PA is input to one of the NAND gates 37. Hereinafter, the NAND gates 37 and NOT gates 38 will be described as inverting delay elements as necessary.

[0018] Here, the common connection nodes of the inverting delay elements 37, 38 connected in a ring shape are defined as nodes N1...N16, respectively, as shown in Fig. 6. One NAND gate 37 is connected between adjacent nodes N16-N1, and two NOT gates 38 are connected between each of the other adjacent nodes N1-N2, N2-N3,..., N15-N16. The delay time of the NAND gate 37 is slightly longer than that of the NOT gate 38, which is the other inverting delay element, so only one NAND gate 37 is configured between adjacent nodes N16-N1.

[0019] In Fig. 5, two NOT gates 38 are grouped together and shown as one normal delay element DU. As shown in Fig. 6, the RDL 31 also includes gates 39 that receive the delayed signals from the normal delay elements DU from the nodes N1...N16, shape the waveforms, and output them as digital levels R1...R16.

[0020] When the signal PA="1" is continuously input to the NAND gate 37, the signal "1" is transmitted in sequence through the non-inverting delay elements DU, as shown in the state change in Fig. 7. Then, when the signal "1" circulates through the non-inverting delay elements DU connected in a ring shape, the signal "1" reaches the input of the NAND gate 37 after one full circuit. Then, the NAND gate 37 outputs "0", and thereafter the non-inverting delay elements DU transmit the signal "0" in sequence.

[0021] Furthermore, when the signal "0" circulates through the non-inverting delay elements DU connected in a ring shape, it makes one full revolution and also reaches the input of the NAND gate 37. This returns to the initial state. This operation is repeated as long as the signal PA is "1", and the RDL 31 changes the 32 states by outputting digital levels R1...R16 through the waveform shaping gate 39. One revolution is made when 32 states are changed.

[0022] 8, the latch and encoder 33 is formed by combining 16 DFF40 and an encoder 41. DFF40 receives as inputs D the digital levels R1...R16 related to the output of the non-inverting delay element DU, and all of them are latched by the same latch signal PB.

[0023] The encoder 41 receives the Q outputs of the 16 DFF40 and encodes them, encoding the 32 states of the digital levels R1...R16 into 5 bits, allowing the latch and encoder 33 to obtain phase information obtained by dividing one revolution time of the RDL 31 by 32.

[0024] The time required for one revolution of the edge by the RDL 31 is set to be sufficiently shorter than the period of the reference clock SCLK. In this embodiment, the time resolution of the TDC 24 is assumed to be 200 ps.

[0025] The counter 32 shown in Fig. 1 counts the number of revolutions in the RDL 31 and is, for example, a 17-bit counter. The details are as described in Japanese Patent Laid-Open Publication No. 6-283984, but the outline is as follows. The latch 34 latches the count value of the counter 32. The latch 35 latches 22-bit data DTp, which is a combination of the 17-bit data of the latch 34 and the 5-bit data of the latch-and-encoder 33. The latch signals of the latch-and-encoder 33, the latches 34 and 35 are all composed of the latch signal PB. The subtractor 36 subtracts the latch data of the latch 35 from the data DTp and outputs 22-bit data DT. The subtractor 36 is provided to compare the previous measurement value with the current measurement value in order to remove digital noise, and may be provided as necessary.

[0026] In addition, unless some edge is input as a signal, the NAND gate 37 and NOT gate 38 of the RDL 31 do not change their respective outputs, and therefore the inverting delay elements 37 and 38 also maintain a stable logical output state without consuming power. At this time, the RDL 31 can maintain a low power consumption state in which the power consumption is lower than in the normal operating state, and the other circuits of the TDC 24, i.e., the counter 32, the latch and encoder 33, and the latches 34 and 35, can also maintain a low power consumption state.

[0027] The TDC 24 returns from the low power consumption state to the normal operating state and operates when it receives a signal edge, for example, a pulse PAW corresponding to the measurement target pulse PW described later, or a pulse PAB corresponding to the period of the reference clock SCLK. When the input is interrupted, the output digital level of the internal circuit of the TDC 24 becomes stable, so that the power consumption can be reduced, and the TDC 24 returns from the normal operating state to the low power consumption state.

[0028] The TDC control circuit 21 includes a pulse PW width time acquisition circuit 50 illustrated in Figures 9 and 10, and a reference clock SCLK period acquisition circuit 70 illustrated in Figures 11 and 12. The pulse PW width time acquisition circuit 50 includes a main circuit 51 that mainly acquires the width time of the pulse PW, and a subordinate circuit 52 that receives the output of the main circuit 51 and operates subordinately.

[0029] 9, the main circuit 51 comprises DFF53a...53d connected in cascade in four stages, AND gates 54 and 55, a first delay circuit 56, and an OR gate 57. The D input of DFF53a in the first stage is pulled up, and the pulse PW is input to its clock terminal at its positive input. The pulse PW is input to the clock terminal of DFF53b in the second stage at its negative input. The D input of DFF53b in the second stage is input to each of the AND gates 54 and 55 at its positive input, and the Q output of DFF53b is input to each of the AND gates 54 and 55 at its negative input. As a result, the AND gate 54 outputs a pulse PAW1 with a width ranging from the timing at which the pulse PW is input at its rising edge to the timing at which it is input at its falling edge.

[0030] A first delay circuit 56 is interposed between DFF53b in the second stage and the negative input of the AND gate 55. The AND gate 55 corresponds to a first pulse output section which outputs a pulse PAW corresponding to a pair of edges of the pulse PW to be measured as a signal PA to the TDC 24. The AND gate 55 outputs a pulse PAW having a width from the timing at which the pulse PW is input to the TDC control circuit 21 at its rising edge to the timing at which it is input at its falling edge plus a first delay time Delay1 of the first delay circuit 56. The first delay circuit 56 corresponds to a first delay section which extends the width of the pulse PAW output by the AND gate 55 by the first delay time Delay1. The first delay circuit 56 is a timing adjustment circuit provided in order to stop the output of the pulse PAW after the output of the TDC 24 has been latched by the latch signal PB1W.

[0031] The reference clock SCLK is input to the clock terminal of DFF53c in the third stage at its negative input, and the reference clock SCLK is input to the clock terminal of DFF53d in the fourth stage at its positive input. The Q output of DFF53d in the fourth stage is input to the clear terminal of DFF53a in the first stage via the OR gate 57. The clear signal CLR is input to the OR gate 57 and also to the clear terminals of DFF53b ... 53d in the second to fourth stages. This allows the main circuit 51 to clear the Q output of DFF53a in the first stage after detecting a pulse PAW1 corresponding to the width of the pulse PW.

[0032] 10, the subordinate circuit 52 comprises DFF58a...58h connected in cascade in multiple stages, AND gates 59 and 60, and OR gates 61 and 62. The D input of DFF58a in the first stage is pulled up, and the pulse PAW1 is negatively input to its clock terminal. DFF58a in the first stage has a configuration equivalent to a first latch output section which outputs a latch signal PB1W corresponding to the later of a pair of edges of the pulse PW to be measured, and the Q output of DFF58a in the first stage is output as the latch signal PB1W.

[0033] The reference clock SCLK is input to the clock terminals of DFF58b to 58g in the second to seventh stages. DFF58b, 58d, and 58f in the second, fourth, and sixth stages receive the rising edge of the reference clock SCLK as a trigger and output the Q signal from their D inputs. DFF58c, 58e, and 58g in the third, fifth, and seventh stages receive the falling edge of the reference clock SCLK as a trigger and output the Q signal from their D inputs. As a result, when the reference clock SCLK is input to the clock terminals of DFF58b to 58g, the pulse PAW1 input to DFF58a in the first stage can be shifted in order each time a rising edge is input to DFF58b, 58d, and 58f in the second, fourth, and sixth stages and a falling edge is input to DFF58c, 58e, and 58g in the third, fifth, and seventh stages.

[0034] The D input of DFF58e in the fifth stage is input as a positive input to an AND gate 59, and the Q output of DFF58e is input as a negative input to the AND gate 59. This allows the AND gate 59 to obtain pulse PAW1 delayed by one reference clock SCLK as pulse PB2W. Similarly, the D input of DFF58g in the seventh stage is input as a positive input to an AND gate 60, and the Q output of DFF58g is input as a negative input to the AND gate 60. This allows the AND gate 60 to obtain pulse PAW1 delayed by a further reference clock SCLK as pulse PB3W.

[0035] The reference clock SCLK is also input to the clock terminal of DFF58h in the 8th stage as a negative input. The D input of DFF58h in the 8th stage is input to the positive input of the OR gate 61, and the Q output of DFF58g in the 7th stage is input to the positive input of the OR gate 61. As a result, the OR gate 61 can detect from the signal PBSTW that the pulse PAW1 has shifted to DFF58h in the 8th stage.

[0036] The Q output of DFF58c in the third stage is input to the clear terminal of DFF58a in the first stage via the OR gate 62. The clear signal CLR is input to the OR gate 62 and also to the clear terminals of DFF58b to 58h in the second to eighth stages. This allows the slave circuit 52 to clear the Q output of DFF58a in the first stage after detecting the pulse PAW1.

[0037] After the OR gate 61 detects the signal PBSTW, the reference clock SCLK period acquisition circuit 70 starts operating. The reference clock SCLK period acquisition circuit 70 includes a main circuit 71 that mainly acquires the period of the reference clock SCLK, and a subordinate circuit 72 that receives the output of the main circuit 71 and operates subordinately.

[0038] As shown in FIG. 11, the main circuit 71 comprises DFF73a...73d connected in cascade in four stages, AND gates 74 and 75, a second delay circuit 76, and an OR gate 77. The D input of DFF73a in the first stage receives the signal PBSTW output by the OR gate 61 shown in FIG. 10, and the reference clock SCLK is input to its clock terminal on the positive side. The reference clock SCLK is input to the clock terminal of DFF73b in the second stage. The D input of DFF73b in the second stage is input to each of the AND gates 74 and 75 on the positive side, and the Q output of DFF73b is input to each of the AND gates 74 and 75 on the negative side. As a result, the AND gate 74 outputs a pulse PAB1 with a width ranging from the timing at which the reference clock SCLK is input to the timing at which it is input to the rising edge of the reference clock SCLK.

[0039] A second delay circuit 76 is interposed between the Q output of DFF73b in the second stage and the negative input of the AND gate 75. The AND gate 75 has a configuration equivalent to a second pulse output section which outputs a pulse PAB corresponding to the period of the reference clock SCLK to the TDC 24, and outputs a pulse PAB with a width ranging from the timing at which the reference clock SCLK is input at its rising edge to the timing at which it is input at its falling edge plus the second delay time Delay2 of the second delay circuit 76.

[0040] The second delay circuit 76 is a configuration equivalent to a second delay unit that extends the width of the period of the reference clock SCLK output by the AND gate 75 by a second delay time Delay2. The second delay circuit 76 is a timing adjustment circuit provided to set the timing of stopping the output of the pulse PAB after the output of the TDC 24 has been latched by the latch signal PB1B.

[0041] The reference clock SCLK is input to the clock terminal of DFF73c in the third stage on the negative side, and the reference clock SCLK is input to the clock terminal of DFF73d in the fourth stage on the positive side. The Q output of DFF73d in the fourth stage is input to the clear terminal of DFF73a in the first stage via the OR gate 77. This allows the main circuit 71 to clear the Q output of DFF73a in the first stage after detecting the pulse PAB1 corresponding to the width of the reference clock SCLK.

[0042] As shown in FIG. 12, the subordinate circuit 72 comprises DFF78a...78g connected in cascade in multiple stages, AND gates 79 and 80, and an OR gate 81. The D input of DFF78a in the first stage is pulled up, and a pulse PAB1 is negatively input to its clock terminal. DFF78a in the first stage has a configuration equivalent to the second latch output section outputting a latch signal PB1B corresponding to the later edge which defines the period of the reference clock SCLK, and the Q output of DFF78a in the first stage is output as the latch signal PB1B.

[0043] The reference clock SCLK is input to the clock terminals of DFF78b...78g in the second to seventh stages. DFF78b, 78d, and 78f in the second, fourth, and sixth stages receive the rising edge of the reference clock SCLK as a trigger and output the Q signal at their D inputs. DFF78c, 78e, and 78g in the third, fifth, and seventh stages receive the falling edge of the reference clock SCLK as a trigger and output the Q signal at their D inputs. As a result, when the reference clock SCLK is input to the clock terminals of DFF78b...78g, the pulse PAB1 input to DFF78a in the first stage can be shifted in sequence each time a rising edge is input to DFF78b, 78d, and 78f in the second, fourth, and sixth stages and a falling edge is input to DFF78c, 78e, and 78g in the third, fifth, and seventh stages.

[0044] The D input of DFF78e in the fifth stage is input as a positive input to an AND gate 79, and the Q output of DFF78e is input as a negative input to the AND gate 79. This enables the AND gate 79 to obtain pulse PB2B obtained by delaying pulse PAB1 by one reference clock SCLK. Similarly, the D input of DFF78g in the seventh stage is input as a positive input to an AND gate 80, and the Q output of DFF78g is input as a negative input to the AND gate 80. This enables the AND gate 80 to output pulse PB3W obtained by further delaying pulse PB2B by one reference clock SCLK.

[0045] Returning to the reference diagram of Fig. 1, the overall configuration will be described. As described above, when the TDC control circuit 21 receives the pulse PW and the reference clock SCLK, it sequentially outputs the signals PAW, PAB, PB1W...PB3W, PB1B...PB3B according to the logic described above. The OR gate 22 obtains the logical sum of the pulses PAW and PAB as the signal PA to be input to the TDC 24. The OR gate 23 receives the signals PB1W...PB3W, PB1B...PB3B and the clear signal CLR and outputs the latch signal PB to the TDC 24.

[0046] A measurement frequency change circuit 29 is configured between the output terminal of pulse PAB and the OR gate 22, and between the output terminals of pulses PB1B...PB3B and the OR gate 23. The measurement frequency change circuit 29 illustrated in Fig. 4 is configured by combining a TFF 29a and AND gates 29b...29e in the illustrated form, and is a circuit that can reduce the measurement frequency, which indicates the ratio of the number of times the period of the reference clock SCLK is measured to the number of times the width time of the pulse PAW is measured, to less than 1.

[0047] The TFF 29a is a toggle flip-flop that repeatedly changes the output level between "0" and "1" every time a pulse PAW is input. The AND gates 29b...29e are provided as an enable / disable switching circuit that switches whether or not each of the pulses PAB, PB1B...PB3B is input as each of the signals PA and PB of the TDC 24 based on the output level "0" or "1" of the TFF 29a.

[0048] Each time the pulse PAW is input to the TFF 29a, the output level of the TFF 29a repeatedly changes between "0" and "1". Therefore, each time the pulse PAW is generated, the AND gates 29b...29e pass or block each of the pulses PAB, PB1B...PB3B. The pulses PAB, PB1B...PB3B are the outputs of the period acquisition circuit 70 of the reference clock SCLK. Therefore, one of two times the pulse PAW is generated, the AND gates 29b...29e block the pulses PAB, PB1B...PB3B, and the measurement of the period of the reference clock SCLK by the TDC 24 can be stopped. As a result, the period of the reference clock SCLK can be measured once every time the width time of the pulse PAW is measured twice.

[0049] In this case, the number of times the TDC 24 measures the period of the reference clock SCLK can be reduced, so the operation time of the TDC 24 can be shortened and power consumption can be reduced. The measurement frequency change circuit 29 may be provided as necessary. If the pulses PAB, PB1B...PB3B are passed directly through the OR gates 22 and 23 without providing the measurement frequency change circuit 29, the period of the reference clock SCLK can be measured once every time the TDC 24 measures the width time of the pulse PAW once.

[0050] 1 uses the edge of the pulse PB2W as a latch signal to latch the output of the TDC 24. At this time, the latch 25 holds the measurement result by the TDC 24 that measures the width time of the pulse PAW.

[0051] Latch 26 latches the output of TDC 24 using as a latch signal the edge of pulse PB2B after passing through AND gate 29d of measurement frequency change circuit 29. Latch 26 holds the measurement result by TDC 24 of the period of reference clock SCLK, but if pulse PB2B does not pass through AND gate 29d, no latch signal is input to latch 26. In this case, latch 26 holds the output of TDC 24 measured in advance before the previous time, i.e., data on the period of reference clock SCLK measured in advance before the previous time.

[0052] The divider 28 as a division section calculates a quotient Q (Q3:Q0) and a remainder R (R3:R0) by dividing a dividend A (A3:A0) by a divisor B (B3:B0), and is configured by combining division circuits 82 in a matrix as shown in FIG. 13.

[0053] As shown in Fig. 14, each division circuit 82 is configured by combining NAND gates 83...93, NOR gate 94, and NOT gates 95, 96 in the illustrated form, and the truth table is as shown in Fig. 15. The division circuit 82 has a general configuration and detailed explanation of its operation will be omitted. The divider 28 may be of any circuit form as long as it is a circuit that can divide dividend A by divisor B and calculate at least to the decimal point.

[0054] The effects and operations of the above-mentioned configuration will be described with reference to the timing charts shown in FIG. 16 and FIG. 17. The reference clock SCLK is constantly input as a pulse to the TDC control circuit 21. However, when the TDC control circuit 21 is not inputting the measurement target pulse PW, no clock is input to DFF58a shown in FIG. 9. As a result, the TDC control circuit 21 does not output the signals PAW, PAB, PB1W...PB3W, PB1B...PB3B. At this time, since the signals PA and PB are not input to the TDC 21, no signal is input to RDL31 either.

[0055] When the TDC 21 does not receive the start pulse signal PA or the latch signal PB, the output state of the inverting delay elements 37 and 38 is not changed, and the TDC 21 can maintain a low power consumption state in which the power consumption is lower than that in the normal operating state. Therefore, when the time difference digital conversion circuit 1 does not receive the measurement target pulse PW, the time difference digital conversion circuit 1 can maintain the low power consumption state.

[0056] After that, when the TDC control circuit 21 inputs the rising edge of the measurement target pulse PW, it returns to the normal operating state. When the pulse PW is input, the pulse PW width time acquisition circuit 50 shown in FIG. 9 outputs a pulse PAW1 having the same length as the pulse PW and also outputs a pulse PAW. When the OR gate 22 passes the pulse PAW and inputs it to the TDC 24 as a signal PA that becomes a start pulse, the TDC 21 starts digital conversion of the time width from the timing of the occurrence of the rising edge of the pulse PAW. The TDC 21 acquires a digital value corresponding to the integer digits by the 17-bit counter 32 and acquires a digital value corresponding to the 5-bit decimal digits by the latch and encoder 33, digitally converts these values ​​to a total of 22 bits, and outputs them to the latch 35 and the subtractor 36.

[0057] The TDC control circuit 21 outputs the rising edge of the pulse PAW at timing t1 in Fig. 16, and at the same time outputs the rising edge of the pulse PAW1. After the time of the pulse PAW1 has elapsed, when DFF58a in the slave circuit 52 shown in Fig. 10 receives the falling edge of the pulse PAW1 as its negative input, it outputs the rising edge of the latch signal PB1W at timing t2.

[0058] 9 is provided with a first delay circuit 56. The TDC control circuit 21 latches the pulse PAW extended by the first delay circuit 56 with the latch signal PB1W based on the Q output of DFF58a, and stops the output of the pulse PAW by the AND gate 55 after the first delay time Delay1 has elapsed.

[0059] Therefore, the TDC24 can reliably input the latch signal PB1W as the latch signal PB at timing t2 before the pulse PAW falls at timing t3. The TDC24 can reliably measure the width time of the pulse PAW1 as a digital value. When the TDC24 latches the pulse PAW with the latch signal PB1W, the data change settles down after a short time has passed.

[0060] After outputting the latch signal PB1W, the subordinate circuit 52 sequentially outputs pulses PB2W and PB3W. The pulse PB2W is input to the latch 25 shown in FIG. 1. Therefore, the latch 25 can hold the width time of the pulse PAW1, which is the output of the TDC 24 at the timing t4 when the pulse PB2W is input, as the dividend DB. At this time, the pulse PW width time acquisition circuit 50 can acquire the length between the edges of the measurement target pulse PW as the first edge time difference.

[0061] The subordinate circuit 52 outputs the pulse PB3W and also outputs the signal PBSTW. Then, the reference clock SCLK period acquisition circuit (period measurement circuit) 70 shown in Figures 11 and 12 starts operating. After that, when the TDC control circuit 21 inputs the rising edge of the reference clock SCLK, the reference clock SCLK period acquisition circuit 70 shown in Figure 11 outputs an edge of a pulse PAB1 having the same length as the period of the reference clock SCLK and also outputs an edge of a pulse PAB.

[0062] As described above, the measurement frequency change circuit 29 passes or blocks the pulses PAB, PB1B...PB3B every time the TDC control circuit 21 generates a pulse PAW, but when the measurement frequency change circuit 29 passes the pulses PAB, PB1B...PB3B, the OR gate 22 passes the pulse PAB and inputs it to the TDC 24 as a signal PA, which becomes a start pulse. Then, the TDC 24 starts digital conversion of the time width from the rising edge of the pulse PAB. The TDC 24 performs digital conversion corresponding to integer digits using a 17-bit counter 32, and digital conversion corresponding to 5-bit decimal digits using a latch and encoder 33, and digitally converts these values ​​to a total of 22 bits and outputs them to the latch 35 and the subtractor 36.

[0063] The TDC control circuit 21 outputs the rising edge of pulse PAB at timing t5 in Fig. 16, and at the same time outputs the rising edge of pulse PAB1. After the time of pulse PAB1 has elapsed, when DFF78a of the slave circuit 72 shown in Fig. 12 receives the falling edge of pulse PAB1 as its negative input, DFF78a outputs the rising edge of signal PB1B as the latch signal at timing t6.

[0064] 11 is provided with a second delay circuit 76. The TDC control circuit 21 latches the pulse PAB extended by the second delay circuit 76 with the latch signal PB1B from DFF78a, and stops the output of the pulse PAB from the AND gate 75 after the second delay time Delay2 has elapsed.

[0065] Therefore, the TDC 24 can reliably input the latch signal PB1B as the latch signal PB at timing t6 before the pulse PAB falls at timing t7. This allows the TDC 24 to reliably convert the width time of the pulse PAB1 into a digital signal. After the TDC 24 latches the pulse PAB with the latch signal PB1B, the data change settles down after a short time has passed.

[0066] After outputting the latch signal PB1B, the slave circuit 72 sequentially outputs pulses PB2B and PB3B. The pulse PB2B is input to the latch 26 shown in FIG. 1. Therefore, the latch 26 can hold the width time of the pulse PAB1, which is the output of the TDC 24 at the timing t8 when the pulse PB2B is input, as the divisor DA. At this time, the reference clock SCLK period acquisition circuit 70 can measure the period of the reference clock SCLK as the second edge time difference.

[0067] Divider 28 divides dividend DB by divisor DA at least to the decimal point. When slave circuit 72 outputs pulse PB3B, pulse PB3B is input to latch 27. Latch 27 holds the division result of divider 28. This makes it possible to calculate the ratio of the width time of pulse PW to the period of reference clock SCLK at the measurement point in time.

[0068] The width time of the pulse PW to be measured and the period of the reference clock SCLK tend to fluctuate in the same direction due to PVT variations such as changes in power supply voltage, temperature, etc. For this reason, by calculating the ratio of the width time of the pulse PW to the period of the reference clock SCLK using divider 28, it is possible to calculate the width time of the pulse PW to be measured that has been compensated for the effects of period fluctuations in the reference clock SCLK.

[0069] In particular, since the RDL 31 uses a gate delay method, the time difference digital conversion result is likely to change due to PVT variations when the TDC 24 is operated for a long time. According to this embodiment, immediately after the pulse PW width time acquisition circuit 50 acquires the width time of the pulse PW and measures it with the TDC 24, the reference clock SCLK period acquisition circuit 70 acquires the period of the reference clock SCLK in a time-division manner and measures it with the TDC 24. Therefore, even if the effect of PVT variations is taken into consideration, the effect is small, and the width time of the measurement target pulse PW can be calculated as accurately as possible.

[0070] In addition, by calculating the ratio of the width time of the pulse PW to the period of the reference clock SCLK, the influence of fluctuations due to PVT variations in the reference clock SCLK can be compensated for. Also, since the width time of the pulse PW is measured before the reference clock SCLK, it is not necessary to constantly measure changes in the period of the reference clock SCLK. The TDC control circuit 21 and TDC 24 return to the low power consumption state when they finish measuring the width time of the pulse PW to be measured and the period of the reference clock SCLK.

[0071] When the TDC 24 receives an edge of the pulse PW to be measured in the low power consumption state, it returns to the normal operating state, sequentially measures the first edge time difference between a pair of edges of the pulse PW to be measured and the second edge time difference in the period of the reference clock SCLK, and then returns from the normal operating state to the low power consumption state. This makes it possible to measure the width of the pulse PW to be measured and the period of the reference clock SCLK with minimal power consumption.

[0072] Furthermore, when the measurement frequency change circuit 29 blocks the pulses PAB, PB1B...PB3B, even if the latch 25 holds the width time of the pulse PW as the dividend at timing t4, the pulses PAB, PB1B...PB2B are not input to the TDC 24 and the latch 26 at timings t5 to t9, and therefore the latch 26 holds the time data of the previously measured period of the reference clock SCLK.

[0073] The divider 28 can divide the width time of the pulse PW by the period of the reference clock SCLK that was previously measured and previously held in the latch 26. In this case, the number of times the reference clock SCLK is measured can be reduced, and the power consumption of the TDC 24 can be reduced.

[0074] In this embodiment, since the measurement frequency change circuit 29 is configured using TFF 29a, the measurement frequency indicating the ratio of the number of times the period of the reference clock SCLK is measured to the number of times the pulse PW is measured is set to 1 / 2, but the measurement frequency is not limited to 1 / 2.

[0075] For example, the measurement frequency may be set to one tenth, i.e., the period of the reference clock SCLK may be measured once every time the width time of the pulse PAW is measured ten times by the TDC 24. Alternatively, the period of the reference clock SCLK may be measured by the TDC 24 every time a predetermined time has elapsed, which is set in advance so that the time change of the period of the reference clock SCLK becomes noticeable.

[0076] According to this embodiment, in response to a decrease in the frequency of measurement of the period of the reference clock SCLK, when the pulse PAW is measured but the period of the reference clock SCLK is not measured by time division, the divider 28 divides the data on the width time of the currently measured pulse PAW by the data on the period of the reference clock SCLK previously held in the latch 26. This makes it possible to reduce the number of times the reference clock SCLK is measured by the TDC 24, and thus the power consumption of the TDC 24 can be reduced.

[0077] In addition, the TDC control circuit 21 causes the TDC 24 to measure the first edge time difference and the second edge time difference in a time-division manner by sequentially inputting the pulses PAW and PAB to the TDC 24 in a predetermined order, regardless of the order in which the pair of edges of the pulse PW to be measured and the reference clock SCLK are input.

[0078] The reference clock SCLK is constantly input to the TDC control circuit 21. Even if there is a risk of metastability occurring due to two stable states in the digital circuit being generated in relation to the input of a pair of edges of the pulse PW and an edge of the reference clock SCLK, the TDC control circuit 21 sequentially inputs the pulses PAW and PAB to the TDC 24 in a predetermined order, so that the division result of the divider 28 is not affected.

[0079] (Other embodiments) The present invention is not limited to the above-mentioned embodiment, and can be modified or expanded as follows. The TDC 24 using the RDL 31 as a delay circuit measures the time difference, but the present invention is not limited to this. In the above-mentioned embodiment, the delay time is generated by a method using the signal propagation delay of the gate, for example, the NAND gate 37 and the NOT gate 38 as the inverting delay element, but the present invention is not limited to this, and any delay circuit may be used as long as it can measure the time difference.

[0080] Although the embodiment has been described in which the time difference between a pair of edges of the pulse PW to be measured is measured from the rising edge to the falling edge, the present invention is not limited to this and may be applied to a form in which the time difference between a pulse from the falling edge to the rising edge is measured.

[0081] Furthermore, as shown in Fig. 18, the time difference between the rising edges of the pulse signals PWX1 and PWY1 transmitted through two signal lines may be the "measurement target pulse PW", and the measurement target may be the "time difference between a pair of edges of the measurement target pulse PW" shown at timings t1 to t2 in Fig. 18. Similarly, as shown in Fig. 19, the time difference between the falling edges of the pulse signals PWX2 and PWY2 may be the "measurement target pulse PW", and the measurement target may be the "time difference between a pair of edges of the measurement target pulse PW" shown at timings t1 to t2 in Fig. 19.

[0082] In addition, the time difference between the rising edge of pulse signal PWX1 and the falling edge of pulse signal PWY2 may be considered as the "pulse PW to be measured," or the time difference between the falling edge of pulse signal PWX2 and the rising edge of pulse signal PWY1 may be considered as the "pulse PW to be measured."

[0083] The symbols in parentheses in the claims indicate the correspondence with the specific means described in the above-mentioned embodiment as one aspect of the present invention, and do not limit the technical scope of the present invention. A mode in which a part of the above-mentioned embodiment is omitted as long as the problem can be solved can also be considered as an embodiment. In addition, any conceivable mode can also be considered as an embodiment, as long as it does not deviate from the essence of the invention specified by the wording described in the claims.

[0084] Although the present invention has been described based on the above-mentioned embodiment, it is understood that the present invention is not limited to the embodiment or structure. The present invention also includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, and other combinations and forms including one, more, or less than one element, are also within the scope and concept of the present disclosure. [Explanation of symbols]

[0085] In the drawing, 24 indicates a TDC, 26 indicates a latch (holding section), 28 indicates a divider (division section), 31 indicates an RDL (delay circuit), 55 indicates an AND gate (first pulse output section), 56 indicates a first delay circuit (first delay section), 58a indicates a DFF (first latch output section), 75 indicates an AND gate (second pulse output section), 76 indicates a second delay circuit (second delay section), and 78a indicates a DFF (second latch output section).

Claims

1. A circuit for digitally converting a time difference between a pair of edges of a pulse to be measured using a delay time, the circuit measuring a first edge time difference (PAW) between the pair of edges of the pulse to be measured and a second edge time difference (PAB) of a reference clock period in a time-division manner; a division unit (28) that calculates a division result by dividing the first edge time difference by the second edge time difference, The TDC is a time difference digital conversion circuit that measures a surge width of a current waveform as the first edge time difference between a pair of edges of the pulse to be measured.

2. The TDC is 2. A time difference digital conversion circuit as claimed in claim 1, which operates in a normal operating state when a pair of edges of the pulse to be measured or a period of the reference clock is input, and enters a low power consumption state in which power consumption is lower than that of the normal operating state when the input is discontinued.

3. The TDC is 3. The time difference digital conversion circuit according to claim 2, configured to return to the normal operating state when an edge of the pulse to be measured is input in the low power consumption state, sequentially measure the first edge time difference between a pair of edges of the pulse to be measured and the second edge time difference in a period of the reference clock, and then return from the normal operating state to the low power consumption state.

4. a first pulse output unit (55) that outputs a pulse corresponding to a pair of edges of the measurement target pulse to the TDC; a first latch output section (58a) that outputs a latch signal corresponding to the later edge of the pair of edges of the pulse to be measured; a first delay unit (56) for extending the width of the pulse output by the first pulse output unit by a first delay time; and a TDC control circuit (21); The TDC control circuit includes:

4. A time difference digital conversion circuit as claimed in claim 1, wherein the pulse extended by the first delay section is latched by a latch signal from the first latch output section, and the output of the pulse by the first pulse output section is stopped after the first delay time has elapsed.

5. a second pulse output unit (75) that outputs a pulse corresponding to the period of the reference clock to the TDC; a second latch output section (78a) that outputs a latch signal corresponding to a later edge among edges that define a period of the reference clock; a second delay unit (76) that extends the width of the pulse output by the second pulse output unit by a second delay time; The TDC control circuit includes:

5. A time difference digital conversion circuit as claimed in claim 1, wherein the pulse extended by the second delay section is latched by a latch signal from the second latch output section, and the output of the pulse by the second pulse output section is stopped after the second delay time has elapsed.

6. a TDC control circuit (21) including a first pulse output unit (55) that receives a pair of edges of the pulse to be measured and the reference clock, and outputs a pulse corresponding to the pair of edges of the pulse to the TDC, and a second pulse output unit (75) that outputs a pulse corresponding to a period of the reference clock to the TDC, 6. The time difference digital conversion circuit according to claim 1, wherein the TDC control circuit causes the TDC to measure the first edge time difference and the second edge time difference in the time division by sequentially inputting a pulse from the first pulse output unit and a pulse from the second pulse output unit to the TDC in a predetermined order, regardless of the order in which a pair of edges of the pulse to be measured and the reference clock are input.

7. 7. The time difference digital conversion circuit according to claim 1, wherein the TDC measures a width of a peak slice of an analog signal waveform as the first edge time difference between edges of the measurement target pulse.

8. a measurement frequency change circuit (29) for decreasing a measurement frequency, which indicates a ratio of the number of times the second edge time difference is measured to the number of times the first edge time difference is measured, to less than 1; a holding unit (26) for holding the second edge time difference measured in advance in the time division; When the first edge time difference is measured but the second edge time difference is not measured in the time division in response to the reduction in the measurement frequency by the measurement frequency change circuit, The time difference digital conversion circuit according to claim 1 , wherein the division section divides the measured first edge time difference by the second edge time difference stored in advance in the storage section.

9. 9. The time difference digital conversion circuit according to claim 1, wherein the delay time is generated by a delay circuit.

10. 10. The time difference digital conversion circuit according to claim 9, wherein the delay circuit generates the delay time by using a signal propagation delay of a gate.

11. 11. The time difference digital conversion circuit according to claim 1, wherein the current waveform is a current waveform obtained by driving a motor (7).

12. The time difference digital conversion circuit according to claim 1 , wherein the division section calculates the division result at least to the decimal point.

13. 13. The time difference digital conversion circuit according to claim 1, further comprising: a time difference between a pair of edges of the measurement target pulse, the time difference digital conversion circuit outputting the time difference between a pair of edges of the measurement target pulse based on the division result by the division section.

14. A circuit for digitally converting a time difference between a pair of edges of a pulse to be measured using a delay time, the circuit measuring a first edge time difference (PAW) between the pair of edges of the pulse to be measured and a second edge time difference (PAB) of a reference clock period in a time-division manner; a division unit (28) that calculates a division result by dividing the first edge time difference by the second edge time difference; A method for controlling a time difference digital conversion circuit comprising: The method for controlling a time difference digital conversion circuit, in which the TDC measures a surge width of a current waveform as the first edge time difference between a pair of edges of the measurement target pulse.

Citation Information

Patent Citations

  • Pulse-width-voltage conversion circuit

    JP1993026926A

  • Time a / D converting apparatus

    JP1996075876A

  • Distance measuring device

    JP1999125676A

  • Projecting device and detecting device for vehicle distance estimation system

    JP2000018941A

  • Temporal digital converter with high resolution

    JP2019022237A