Timing device, distance measuring device, and optical sensor device
By using a signal generation circuit and a counter to output multiple reference signals in the timing device, combined with the correction mechanism of the control unit, a higher-speed and high-precision timing function is achieved, solving the problem of difficulty in achieving high-speed timing with existing technology.
Patent Information
- Application Number
- CN202410188872.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-20
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for existing timing devices to achieve higher-speed timing functions and cannot meet the requirements of high precision and high frequency.
A timing device is designed, which uses a signal generation circuit to generate multiple reference signals with different phases, outputs fine count values and coarse count values through the first counter and the second counter, and uses the control unit to determine whether coarse counting is needed based on the latch signal. Correction of count values, calculating binary sequence numbers for more accurate time counting.
It achieves higher-speed timing capabilities, can perform error correction of rough count values without stopping the continuous operation of the time-to-digital converter (TDC), reduces the circuit scale, and reduces time deviation in multi-channel situations, enabling At the same time, the driving signal of the light-emitting element is output.
Smart Images

Figure CN118567212A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a timing device, a distance measuring device and a light sensor device. Background Art
[0002] Japanese Patent Application Laid-Open No. 2019-78690 discloses a timing device that detects the time of one event for each light emission cycle by alternately operating two TDCs (Time to Digital Converters). Summary of the invention
[0003] There is a need for a timing device capable of performing higher-speed timing.
[0004] A timing device of one embodiment of the present invention comprises: a signal generating circuit, which generates multiple reference signals with different phases in the same period; a first counter, which uses multiple first pulse signals obtained from the multiple reference signals to output a precise count value; a second counter, which uses multiple second pulse signals obtained from the multiple reference signals and having a frequency smaller than that of the multiple first pulse signals to output a coarse count value; and a control unit, which determines whether correction of the coarse count value is required based on the precise count value latched by a latch signal and the coarse count value, and, if correction is required, uses the precise count value and the coarse correction value obtained by correcting the coarse count value to calculate a binary serial number. Effects of the Invention
[0005] According to one aspect of the present disclosure, faster time measurement can be performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 This is a block diagram showing the configuration of the timekeeping device according to this embodiment. Figure 2 This is a timing chart showing the operation of the timing device according to this embodiment. Figure 3 1 is an explanatory diagram showing the relationship between the second pulse signal, the Gray code of the rough count value, and the binary code. Figure 4 It is an explanatory diagram showing the relationship between the second pulse signal, the Gray code of the process count value, and the binary code. Figure 5 This is a table showing the relationship between the Gray code and the binary code of the precision count value. Figure 6 This is a flowchart showing an example of a method for calculating a BIN number. Figure 7 This is an explanatory diagram showing an example of a method for calculating a BIN number. Figure 8 This is an explanatory diagram showing an example of a method for calculating a BIN number. Fig. 9 This is an explanatory diagram showing an example of a method for calculating a BIN number. Fig.10 This is an explanatory diagram showing an example of a method for calculating a BIN number. Fig.11 This is an explanatory diagram showing an example of a method for calculating a BIN number. Fig.12 1 is an explanatory diagram showing the correspondence between the Gray code output from the first counter and the fine count value. Fig.13 It is a table that associates missing (Gray) codes with precise count values. Fig.14 This is a block diagram showing the structure of a timekeeping device having a watch. Fig.15 This is a block diagram showing the configuration of the timekeeping device according to this embodiment. Fig.16 This is a timing chart showing the operation of the timing device according to this embodiment. Fig.17 It is a histogram generated by the time calculation unit. Fig.18 It is a block diagram showing the configuration of the distance measuring device according to this embodiment. Fig.19 Schematic cross-sectional view showing the structure of the optical sensor device according to this embodiment. Fig. 20 : is a block diagram showing the configuration of the optical sensor device according to the present embodiment. Fig.21 : is a block diagram showing the configuration of the optical sensor device according to the present embodiment. Fig. 22 This is a block diagram showing the configuration of the timekeeping device according to this embodiment. DETAILED DESCRIPTION
[0007] Figure 1 This is a block diagram showing the configuration of the timekeeping device according to this embodiment. Figure 2 This is a timing chart showing the operation of the timing device according to this embodiment.
[0008] like Figure 1 as well as Figure 2 As shown, the timing device 30 according to the present embodiment includes a signal generating circuit 5 , a TDC 10 (Time to Digital Converter), and a control unit 20 . The signal generating circuit 5 generates a plurality of reference signals OS having different phases at the same cycle.
[0009] TDC10 has: a first counter 11, which uses a plurality of first pulse signals FP obtained from a plurality of reference signals OS to output a fine count value FV; and a second counter 12, which uses a plurality of second pulse signals CP obtained from a plurality of reference signals OS and having a frequency smaller than that of the plurality of first pulse signals FP to output a coarse count value CV. The plurality of first pulse signals FP are, for example, 8-phase signals, and the plurality of second pulse signals CP are, for example, 6-phase signals. Hereinafter, the first counter 11 is sometimes referred to as a FINE counter, and the second counter 12 is sometimes referred to as a COARSE counter.
[0010] The first counter 11 outputs a fine count value FV in Gray code, and the second counter 12 outputs a coarse count value CV in Gray code. The counting interval of the second counter 12 is longer than the counting interval of the first counter 11 .
[0011] The control unit 20 determines whether correction of the coarse count value CV is required based on the precise count value FV latched by the latch signal L and the coarse count value CV. If correction is required, the control unit 20 uses the precise count value FV and the coarse correction value CZ obtained by correcting the coarse count value CV to calculate the binary sequence number BIN. Furthermore, the coarse count value CV may also be a coarse count value CV latched within ±4TR from the latch timing of the precise count value FV. However, this is not limited to this. Furthermore, 4TR is four times the minimum time resolution TR (e.g., 0.1ns) of TDC10. In Figure 2 In the case of , the latched fine count value FV = 4, the coarse count value CV = 2, and the coarse count value CV does not need to be corrected, and the binary sequence number BIN = 20. Since one cycle of the reference signal OS (1.6ns) is equivalent to 16 binary sequence numbers, BIN = 20 is 2.0 [ns].
[0012] The control unit 20 includes: a first code conversion unit 21, which converts the Gray code FG (fine count value) from the first counter 11 into a binary code FB; a second code conversion unit 22, which converts the Gray code CG (coarse count value) from the second counter 12 into a binary code CB, and generates a binary code ZB of a coarse correction value as needed; and a time calculation unit 23, which performs time calculation based on the binary code FB from the first code conversion unit 21 and the binary code CB / ZB from the second code conversion unit 22.
[0013] The first code conversion unit 21, the second code conversion unit 22 and the time calculation unit 23 may be functional modules. For example, in the control unit 20 including a processor and a memory, the processor cooperates with the memory to execute a timing program, thereby realizing the functions of each functional module. The timing program may be stored in the memory of the control unit 20 or in an external storage device.
[0014] Figure 3 and Figure 4 It is an explanatory diagram showing the relationship between the second pulse signal, the Gray code of the rough count value, and the binary code. Figure 5 This is a table showing the relationship between the Gray code and the binary code of the precision count value.
[0015] like Figure 3 and Figure 4 As shown, M and N are set to natural numbers of M<N, the first counter 11 periodically outputs M precise count values FV (for example, when M=16, 16 precise count values of 0 to 9 and A to F), and the second counter 12 periodically outputs N rough count values CV (for example, when N=64, rough count values of 0 to 63).
[0016] like Figure 2 As shown, the counting interval of the first counter 11 may be 1 / M of the period of the plurality of reference signals OS. The counting interval of the first counter 11 may be 1.0 [nanoseconds] or less.
[0017] The signal generating circuit 5 may be a ring oscillator, the first counter 11 may count by detecting the phase of the ring oscillator, and the second counter 12 may count by detecting the number of oscillations of the ring oscillator.
[0018] Figure 3 Figure 5 As shown, the number of bits of the Gray code FG of the fine count value may be greater than the number of bits of the Gray code CG of the coarse count value. For example, the Gray code FG may be set to 8 bits and the Gray code CG may be set to 6 bits.
[0019] like Figure 3 Figure 5 As shown, let M = 2 X And N = 2 Y The first code conversion unit 21 converts the fine count value into a binary code FB of X bits (for example, X=4 bits), and the second code conversion unit 22 converts the coarse count value into a binary code CB of Y bits (for example, Y=6 bits).
[0020] If the highest bit of the binary code FB of the precise count value and the lowest bit of the binary code CB of the rough count value are the same, the second code conversion unit 22 determines that correction of the rough count value CV is not required. If the highest bit of the binary code FB of the precise count value and the lowest bit of the binary code CB of the rough count value are different, the second code conversion unit 22 determines that correction of the rough count value CV is required.
[0021] When the highest bit of the binary code FB of the precise count value is different from the lowest bit of the binary code CB of the coarse count value, the second code conversion unit 22 sets the value adjacent to the coarse count value CV as the coarse correction value CZ, so that the lowest bit of the binary code CB of the coarse count value and the highest bit of the binary code FB of the precise count value are consistent. That is, the difference between the coarse count value CV and the coarse correction value CZ is 1.
[0022] The time calculation unit 23 combines the upper (Y-1) bits of the binary code CB of the coarse count value with the upper side of the binary code FB of the fine count value without correcting the coarse count value CV, and calculates the binary serial number BIN corresponding to the binary code of the (X+Y-1) bits obtained thereby.
[0023] When correcting the rough count value CV, the time calculation unit 23 combines the upper (Y-1) bits of the binary code ZB of the rough correction value with the upper side of the binary code FB of the precise count value, and calculates the binary serial number BIN corresponding to the binary code of the (X+Y-1) bits obtained thereby.
[0024] Figure 6 This is a flowchart showing an example of a method for calculating a BIN number. Figure 7 to Figure 11 FIG. 1 is an explanatory diagram showing an example of a method for calculating a BIN number. Figure 6 As shown, in step S1, the binary code FB (4 bits) of the precise count value is calculated, and in step S2, the binary code CB (6 bits) of the rough count value is calculated. In step S2, it is determined whether the highest bit F3 of FB and the lowest bit C0 of CB are the same. If they are (the same), the process proceeds to step S4 to calculate the BIN number corresponding to the 9-bit binary code obtained by combining the high-order 5 bits of CB (6 bits) with the high-order side of FB (4 bits).
[0025] If the answer is no (different) in step S3, the process proceeds to step S5 to determine whether F3=1, C0=0, and F2=0. If the answer is yes (same), the process proceeds to step S6 to generate a binary code ZB of a rough correction value (C correction value) (correcting C0 of CB to 1). After step S6, the process proceeds to step S14 to calculate a BIN number corresponding to a 9-bit binary code obtained by combining the upper 5 bits of ZB (6 bits) with the upper side of FB (4 bits).
[0026] If the answer is no in step S5, the process proceeds to step S8 to determine whether F3=1, C0=0, and F2=1. If yes, the process proceeds to step S9 to generate the binary code ZB of the C correction value (=CV-1). If the answer is no in step S8, the process proceeds to step S10 to determine whether F3=0, C0=1, and F2=0. If yes, the process proceeds to step S11 to generate the binary code ZB of the C correction value (=CV+1). If the answer is no in step S10, the process proceeds to step S13 based on F3=0, C0=1, and F2=1 (step S12) to generate the binary code ZB of the rough correction value (C correction value) (correcting C0 of CB to 0). After steps S9, S11, and S13, the process proceeds to step S14 to calculate the BIN number corresponding to the 9-bit binary code obtained by combining the upper 5 bits of ZB (6 bits) with the upper side of FB (4 bits).
[0027] In this way, when correction of the precise count value is required, if the second highest bit F2 of the binary code FB of the precise count value is 0, the value obtained by adding 1 to the rough count value CV is used as the rough correction value (C correction value); if the second highest bit F2 of the binary code FB of the precise count value is 1, the value obtained by subtracting 1 from the rough count value CV is used as the rough correction value (C correction value).
[0028] Figure 7 In the case of step S3→S4, the fine count value FV is 5, the rough count value CV is 2, and the binary serial number BIN is 21. Figure 8 In the case of steps S6→S7, the fine count value FV is A, the coarse count value CV is 2, the coarse correction value CZ (C correction value) is 3, and the binary serial number BIN is 26. Fig. 9 In the case of steps S9→S14, the fine count value FV becomes E, the coarse count value CV becomes 2, the coarse correction value CZ (C correction value) becomes 1, and the binary serial number BIN becomes 14. Fig.10 In the case of steps S11→S14, the fine count value FV is 3, the rough count value CV is 3, the rough correction value CZ (C correction value) is 4, and the binary serial number BIN is 35. Fig.11 In the case of step S13→S14, the fine count value FV is 4, the coarse count value CV is 5, the coarse correction value CZ (C correction value) is 4, and the binary serial number BIN is 36.
[0029] The signal generating circuit 5 may be a ring oscillator, and the ring oscillator may continue to operate for a longer period than the period during which the M fine count values are output. The ring oscillator may continue to operate for a longer period than the period during which the N coarse count values are output.
[0030] In the timing device 30, by performing error correction of the rough count value CV, the TDD 10 can be operated continuously without stopping. In addition, when multiple TDDs 10 are mounted, it is only necessary to connect the latch circuit to one signal generating circuit 5 (for example, a ring oscillator), which can reduce the circuit scale. When multiple TDCs are provided for multi-channelization, since one ring oscillator becomes the time reference, the time deviation between the channels can be reduced, and the drive signals of the light emitting elements (for example, VCSEL) can be output simultaneously.
[0031] Fig.12 1 is an explanatory diagram showing the correspondence between the Gray code output from the first counter and the fine count value. Fig.13 It is a table that associates missing (Gray) codes with precise count values. Fig.14 This is a block diagram showing the structure of a timekeeping device having a watch.
[0032] Fig.12 Fig.14 As shown, due to the phase shift of the first pulse signal FP, the first counter 11 outputs M types (for example, 0) of values that correctly correspond to M (for example, 16) precise count values FV. 9. A In the case of a missing code MG not included in the Gray code of the 16 types of F, the first code conversion unit 21 may also rotate the precise count value corresponding to the outputted missing code from the M precise count values. The control unit 20 may have the following configuration: Fig.13 and Fig.14 A table TB (lookup table: LUT) is shown which associates a plurality of missing codes MG with M precise count values FV. Fig.12 In the case of such a phase shift (occurrence of missing codes), 0 and 8 are not output as the precise count value FV.
[0033] Fig.15 This is a block diagram showing the configuration of the timekeeping device according to this embodiment. Fig.16 This is a timing chart showing the operation of the timing device according to this embodiment. Fig.17 is the histogram generated by the time calculation unit. Fig.15 as well as Fig.16 As shown, the control unit 20 can also perform a process of calculating the binary serial number BIN corresponding to the latch signal Le (start latch signal), the latch signal Ls (reference latch signal) and the latch signal Lr (return latch signal), and this process can be performed more than once.
[0034] Specifically, the binary Gray code FGe of the fine count value latched by the latch signal Le is converted into the binary code FBe, the Gray code CG of the coarse count value latched by the latch signal Le is converted into the binary code CBe, and the binary code ZBe of the coarse correction value is generated as needed, and the binary code FBe and the binary code CBe / ZBe are used to calculate the binary serial number BIN corresponding to the latch signal Le.
[0035] Similarly, the binary code FGs of the fine count value latched by the latch signal Ls is converted into the binary code FBs, the binary code CGs of the coarse count value latched by the latch signal Ls is converted into the binary code CBs, and the binary code ZBs of the coarse correction value is generated as needed, and the binary code FBs and the binary code CBs / ZBs are used to calculate the binary serial number BIN corresponding to the latch signal Ls.
[0036] Similarly, the binary code FGr of the fine count value latched by the latch signal Lr is converted into the binary code FBr, the binary code CGr of the coarse count value latched by the latch signal Lr is converted into the binary code CBr, and the binary code ZBr of the coarse correction value is generated as needed, and the binary code FBr and the binary code CBr / ZBr are used to calculate the binary serial number BIN corresponding to the latch signal Lr.
[0037] Then, if Fig.16 As shown, the time calculation unit 23 calculates ΔBNs, ΔBNr, and the delay time DT obtained by subtracting ΔBNs from ΔBNr, wherein ΔBNs is the difference between the binary sequence number BIN corresponding to the latch signal Ls and the binary sequence number BIN corresponding to the latch signal Le, and ΔBNr is the difference between the binary sequence number BIN corresponding to the latch signal Lr and the binary sequence number BIN corresponding to the latch signal Le. Fig.16 In the example, since the binary sequence number BIN corresponding to the latch signal Ls is 10, the binary sequence number BIN corresponding to the latch signal Le is 10, and the binary sequence number BIN corresponding to the latch signal Lr is 36, ΔBNs = 0, ΔBNr = 26. Since one cycle (1.6 ns) of the reference signal OS is equivalent to 16 binary sequence numbers, ΔBNr = 26 = 2.6 [ns].
[0038] By performing the steps of obtaining ΔBNs, ΔBNr and delay time DT multiple times, it is possible to produce Fig.17 The time calculation unit 23 can output, for example, Fig.17 The delay time DT with the highest frequency in the histogram (for example, the time required for the laser to travel back and forth between the timing device 30 and the object) is calculated.
[0039] Fig.18is a block diagram showing the structure of the distance measuring device involved in this embodiment. Fig.18 As shown, the distance measuring device 40 according to the present embodiment includes a timing device 30 and a distance calculating unit 35 . The distance calculating unit 35 measures the distance to the object using the delay time DT output by the time calculating unit 23 and the speed of the laser beam irradiated to the object.
[0040] Fig.19 It is a schematic cross-sectional view showing the structure of the optical sensor device according to the present embodiment. Fig. 20 is a block diagram showing the structure of the optical sensor device involved in this embodiment. Fig.19 as well as Fig. 20 As shown, the optical sensor device 50 includes: a light emitting element ED (for example, VCSEL), a reference optical filter KS, a return optical filter KR, a focusing lens 4, a light shielding wall SH, a light receiving IC3 including a reference SPAD array SA and a return SPAD array RA (light receiving element), and a distance measuring device 40 ( Fig.18 ). The emitted light (eg, laser light) from the light emitting element ED enters the SPAD array SA via the reference optical filter KS, is reflected by the detection object, and enters the SPAD array RA via the condenser lens 4 and the return optical filter KR.
[0041] In the optical sensor device 50, the latch signal Le rises as the driving current in the light emitting element driving circuit 7 rises, the latch signal Ls rises as the light receiving current in the array driving circuit 8 rises, and the latch signal Lr rises as the light receiving current in the array driving circuit 9 rises. The latch signal Le (start latch signal) is a signal corresponding to the light emission timing of the light emitting element ED, the latch signal Ls (reference latch signal) is a signal corresponding to the timing of receiving the reference light from the light emitting element through the reference SPAD array SA (reference light receiving element), and the latch signal Lr (return latch signal) is a signal corresponding to the timing of receiving the reflected light emitted from the light emitting element ED and reflected by the object through the return SPAD array RA (return light receiving element). The control unit 20 calculates the binary sequence number BIN corresponding to each of the latch signal Le, the latch signal Ls, and the latch signal Lr (corresponding to the rise of each latch signal), and calculates ΔBNs, ΔBNr, and the delay time DT obtained by subtracting ΔBNs from ΔBNr, wherein ΔBNs is the difference between the binary sequence number BIN corresponding to the latch signal Ls and the binary sequence number BIN corresponding to the latch signal Le, and ΔBNr is the difference between the binary sequence number BIN corresponding to the latch signal Lr and the binary sequence number BIN corresponding to the latch signal Le. By performing the process of obtaining ΔBNs, ΔBNr, and the delay time DT multiple times, a histogram can be prepared. The time calculation unit 23 can output the delay time DT with the highest frequency in the histogram (for example, the time required for the emitted light to go back and forth between the timing device 30 and the object). The distance calculation unit 35 uses the delay time DT output by the time calculation unit 23 and the speed of the laser irradiated to the object to measure the distance to the object.
[0042] Fig.21 is a block diagram showing the structure of the optical sensor device involved in this embodiment. Fig.21 As shown in FIG. 1 , the return SPAD array RA may be divided into a plurality of SPAD arrays (RA1 to RAn) and the reflected light from the object may be received by a plurality of SPAD arrays (light receiving elements) at different positions. Fig.21 In the example, the latch signal Lr1 corresponding to the light received in the return SPAD array RA1 is input to the first counter 11 and the second counter 12, the latch signal Lr2 corresponding to the light received in the return SPAD array RA2 is input to the first counter 11 and the second counter 12, and the latch signal Lrn corresponding to the light received in the return SPAD array RAn is input to the first counter 11 and the second counter 12. Fig.21 In the composition, the three-dimensional position of the object can be grasped.
[0043] Fig. 22 FIG. 1 is a block diagram showing the structure of the timing device of this embodiment. Fig. 22 as well as Fig.12 as well as Fig.14 As shown, the timing device 30 comprises: a signal generating circuit 5, which generates a plurality of reference signals with different phases in the same period; a first counter 11, which uses a plurality of first pulse signals FP obtained from the plurality of reference signals to output a precise count value FV through a Gray code FG; a second counter 12, which uses a plurality of second pulse signals obtained from the plurality of reference signals and having a frequency smaller than that of the plurality of first pulse signals to output a rough count value CV; and a control unit, which calculates a binary serial number BIN using the precise count value FV and the rough count value CV corresponding to the missing code MG when the Gray code FG is a missing code MG.
[0044] M is set to a natural number greater than 2, and the first counter 11 periodically outputs M (for example, 0 9, A to F) precise count values FV, when the first counter 11 outputs a missing code MG that is not included in the M correct Gray codes corresponding to the M precise count values, the first code conversion unit 21 selects the precise count value FV corresponding to the missing code MG from the M precise count values FV and converts it into a binary code FB. The control unit 20 may also have the following Fig. 22 as well as Fig.13 The table TB shown associates a plurality of missing codes MG with M precise count values FV.
[0045] The timing device 30 described in this embodiment can be used in electronic devices such as laser distance measuring devices.
[0046] The above-mentioned embodiments are for the purpose of illustration and description, and are not intended to be limiting. Based on these illustrations and descriptions, it should be apparent to those skilled in the art that various modifications can be made.
Claims
1. A timing device, characterized in that: have: A signal generating circuit generates a plurality of reference signals with different phases in the same period; a first counter, using a plurality of first pulse signals obtained from the plurality of reference signals to output a precise count value; a second counter outputting a coarse count value using a plurality of second pulse signals obtained from the plurality of reference signals and having a frequency smaller than that of the plurality of first pulse signals; as well as The control unit determines whether the coarse count value needs to be corrected based on the fine count value and the coarse count value latched by the latch signal, and if the correction is required, calculates the binary serial number using the fine count value and the coarse correction value obtained by correcting the coarse count value.
2. The timing device according to claim 1, characterized in that: A counting interval of the second counter is longer than a counting interval of the first counter.
3. The timing device according to claim 2, characterized in that: M and N are set to natural numbers such that M<N, and the first counter periodically outputs M precise count values. The second counter periodically outputs N coarse count values.
4. The timing device according to claim 3, characterized in that: The signal generating circuit is a ring oscillator.
5. The timing device according to claim 4, characterized in that: The first counter counts by phase detection of the ring oscillator. The second counter counts by detecting the number of oscillations of the ring oscillator.
6. The timing device according to claim 3, characterized in that: The first counter outputs the precise count value in Gray code, The second counter outputs the coarse count value in Gray code.
7. The timing device according to claim 6, characterized in that: The number of bits of the Gray code of the fine count value is greater than the number of bits of the Gray code of the coarse count value.
8. The timing device according to claim 3, characterized in that: Let M = 2 X And N = 2 Y , The control unit converts the fine count value into an X-bit binary code and converts the coarse count value into a Y-bit binary code.
9. The timing device according to claim 8, characterized in that: When the highest bit of the binary code of the precise count value is the same as the lowest bit of the binary code of the coarse count value, the control unit determines that correction of the coarse count value is not required; when the highest bit of the binary code of the precise count value is different from the lowest bit of the binary code of the coarse count value, the control unit determines that correction of the coarse count value is required.
10. The timing device according to claim 9, characterized in that: When the highest bit of the binary code of the precise count value is different from the lowest bit of the binary code of the rough count value, the control unit sets the value adjacent to the rough count value as a rough correction value so that the lowest bit of the binary code of the rough count value is consistent with the highest bit of the binary code of the precise count value.
11. The timing device according to claim 10, characterized in that: When the second most significant bit of the binary code of the fine count value is 0, the value obtained by adding 1 to the rough count value is used as the rough correction value. When the second most significant bit of the binary code of the fine count value is 1, a value obtained by subtracting 1 from the rough count value is used as the rough correction value.
12. The timing device according to claim 9, characterized in that: The control unit combines the upper (Y-1) bits of the binary code of the rough count value with the upper side of the binary code of the precise count value without correcting the rough count value, and calculates a binary sequence number corresponding to the binary code of the resulting (X+Y-1) bits.
13. The timing device according to claim 10, characterized in that: When correcting the rough count value, the control unit combines the upper (Y-1) bits of the binary code of the rough correction value with the upper side of the binary code of the precise count value, and calculates a binary sequence number corresponding to the binary code of (X+Y-1) bits obtained thereby.
14. The timing device according to claim 6, characterized in that: When the first counter outputs a missing code that is not included in M types of Gray codes that correctly correspond to M precise count values, the control unit selects a precise count value corresponding to the missing code from the M precise count values.
15. The timing device according to claim 14, characterized in that: The control unit has a table that associates a plurality of missing codes with the M precise count values.
16. The timing device according to claim 3, characterized in that: A counting interval of the first counter is 1 / M of periods of the plurality of reference signals.
17. The timing device according to claim 16, characterized in that The counting interval is 1.0 [nanosecond] or less.
18. A timing device, characterized in that: have: A signal generating circuit generates a plurality of reference signals with different phases in the same period; a first counter, using a plurality of first pulse signals obtained from the plurality of reference signals to output a precise count value through a Gray code; a second counter, outputting a rough count value using a plurality of second pulse signals obtained from the plurality of reference signals and having a frequency smaller than that of the plurality of first pulse signals; as well as The control unit calculates a binary serial number using the fine count value corresponding to the missing code and the coarse count value when the Gray code is a missing code.
19. The timing device according to claim 18, characterized in that Let M be a natural number greater than 2, The first counter periodically outputs M precise count values. In a case where the first counter outputs a missing code that is not included in M correct Gray codes corresponding to the M precise count values, the control selects a precise count value corresponding to the missing code from the M precise count values.
20. The timing device according to claim 19, characterized in that The control unit has a table that associates the missing code with the precision count value.
Citation Information
Patent Citations
High-precision time measuring circuit and method
CN102253643A
Time-to-digital converter and time-to-digital conversion method
CN102882527A
High-precision time meter
CN103034117A
Optical sensor, electronic apparatus, distance calculation method, and program recording medium
CN115220048A
High-precision digital phase discriminator
CN1237041A
