Image sensing device and method
By introducing an adjustment circuit into the image sensing device, the delay amount of the sensor data signal is automatically adjusted, which solves the problem of low transmission efficiency caused by unbalanced line routing design, achieves correct signal sampling and data acquisition, and simplifies the design process. .
Patent Information
- Application Number
- CN202111535403.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-08-16
- Filing Date
- 2021-12-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Due to the unbalanced circuit routing design of the existing image sensor device, the transmission efficiency of the clock signal and the sensor data signal is low, and the user needs to manually adjust it, which is not efficient.
Design an image sensing device, including a processing circuit and an adjustment circuit, to automatically determine the delay amount of the sensor data signal and apply a preliminary delay amount to the clock signal and the sensor data signal to compensate for the imbalance of the circuit routing design , to achieve automatic adjustment.
It improves the effective range of signals received by external circuits, ensures correct sampling and data acquisition of signals, reduces the need for manual adjustments by users, and simplifies printed circuit board routing design.
Smart Images

Figure CN115914491B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to an image sensing mechanism, and more particularly to an image sensing device and a corresponding method. Background Art
[0002] Generally speaking, existing image sensor devices are used to generate and output a clock signal and multiple sensor data signals to a microcontroller located outside the device through a line routing design, such as a routing line / wire of a printed circuit board (PCB). The clock signal and multiple sensor data signals are transmitted through a parallel communication interface and through the line routing design. However, due to various imbalances or other circuit limitations of the line routing design, users or designers must manually adjust the line routing design or manually adjust the clock signal and multiple sensor data signals through the human eye. This method cannot efficiently implement existing image sensor devices. Summary of the invention
[0003] Therefore, one of the objectives of the present invention is to disclose an image sensing device and a method of the image sensing device to solve the above-mentioned problem.
[0004] According to an embodiment of the present invention, an image sensing device for externally coupling to an external circuit through a line routing design is disclosed. The image sensing device includes a processing circuit and an adjustment circuit. The processing circuit is used to generate and output the clock signal and multiple sensor data signals. The adjustment circuit is coupled to the processing circuit and is used to compensate for the imbalance of the line routing design by automatically determining the delay amount of multiple results of the multiple sensor data signals, applying a preliminary delay amount to the clock signal, and applying the delay amount of the multiple results to the multiple sensor data signals, so as to generate and output a delayed clock signal and multiple delayed sensor data signals to the external circuit through the line routing design.
[0005] According to an embodiment of the present invention, a method for an image sensing device externally coupled to an external circuit through a line routing design is disclosed. The method includes: generating and outputting the clock signal and a plurality of sensor data signals; and compensating for the imbalance of the line routing design by automatically determining a plurality of resultant delay amounts of the plurality of sensor data signals, applying a preliminary delay amount to the clock signal, and applying the plurality of resultant delay amounts to the plurality of sensor data signals, so as to generate and output a delayed clock signal and a plurality of delayed sensor data signals to the external circuit through the line routing design. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1FIG. 4 is a block diagram of an image sensing device according to an embodiment of the present application.
[0007] Figure 2 FIG. 1 is a schematic diagram of an example of an image sensing device implemented on a printed circuit board and connected to an external circuit through a plurality of printed circuit board routing lines / conductors according to an embodiment of the present application.
[0008] Figure 3 FIG. 4 is a diagram showing an example of waveforms of results of a plurality of existing sensor data signals received by an external circuit.
[0009] Figure 4 FIG. 4 is a schematic diagram showing an example of waveforms of a plurality of sensor data signals received by an external circuit according to an embodiment of the present application.
[0010] Figure 5 According to an embodiment of the present application, when operating in the adjustment mode Figure 1 An example schematic diagram of the adjustment circuit in FIG.
[0011] Figure 6 According to an embodiment of the present application, when operating in normal mode Figure 1 An example schematic diagram of the adjustment circuit in FIG.
[0012] Figure 7 According to an embodiment of the present application, the controller controls the delay path block in the adjustment mode to sequentially apply a plurality of different delay amounts to Figure 5 An exemplary schematic diagram of sequentially generating a plurality of delayed response signals APV” having a plurality of different signal delays using a response signal APV′.
[0013] Figure 8 According to another embodiment of the present application, the controller controls the delay path blocks in the adjustment mode to sequentially apply different delay amounts to Figure 5 A response signal APV' is used to sequentially generate a plurality of delayed response signals APV" with different signal delays.
[0014] Fig. 9 is a flowchart of a delay adjustment operation according to an embodiment of the present application.
[0015] The reference numerals are described as follows:
[0016] 100 Image sensing device
[0017] 101 External Circuit
[0018] 105 Processing Circuit
[0019] 110 Adjustment circuit
[0020] 1101 Controller
[0021] 1102_V, 1102_H, 1102_0~1102_N Multiplexer
[0022] 1103_C, 1103_V, 1103_H, Delay Path Block
[0023] 1103_0~1103_N DETAILED DESCRIPTION
[0024] The present application is intended to disclose a technical solution for an integrated circuit device or component that can be used to automatically adjust or correct the signal delay of multiple communication signals, wherein the multiple communication signals are to be output in parallel and sent to an external circuit through printed circuit board routing lines / traces, wherein the disclosed technical solution increases, prolongs or maximizes an effective signal range of the received multiple communication signals by using the same, partially different or completely different multiple delay amounts to delay the periods of the multiple communication signals (or shift their multiple phases), so that other multiple signals of the multiple communication signals seen and received by the external circuit can be correctly sampled by a clock signal of the multiple communication signals as much as possible; the effective range will be described in the subsequent paragraphs. The disclosed technical solution can effectively compensate or correct the imbalance of the line routing design between the image sensing device and the external circuit, such as printed circuit board routing imbalance.
[0025] The integrated circuit element is, for example (but not limited to), an image sensor device that is used to output data (or sensor data) including a clock signal, one or more synchronization signals, and multiple pixel / image / frame data signals to a microcontroller. However, this is not a limitation of the present application. The clock signal can also be referred to as a clock data signal, and the one or more synchronization signals can be referred to as one or more synchronization data signals.
[0026] Figure 11 is a block diagram of an image sensing device 100 according to an embodiment of the present application. The image sensing device 100 is used to be externally coupled to an external circuit 101, which includes a processing circuit 105 and an adjustment circuit 110. The image sensing device 100 is, for example, an image sensor circuit, such as an integrated circuit chip, which can be arranged on a printed circuit board for connecting to the external circuit 101, and the external circuit 101 can also be arranged on the same printed circuit board (but not limited to). The image sensing device 100 communicates with the external circuit 101 through a specific interface, and the specific interface has multiple parallel synchronous communication signal lines, such as a universal input and output interface with multiple ports or pins, however, this is not a limitation of the present application, and other communication interface standards are also applicable to the present application. The image sensing device 100 can use the interface, for example, to output and transmit multiple sensor data signals from the image sensing device 100 to the external circuit 101. Furthermore, the image sensing device 100 can also receive a plurality of signals transmitted in parallel from the external circuit 101 .
[0027] In practice, the multiple sensor data signals are transmitted and forwarded through multiple different routing lines or wires on the printed circuit board based on different printed circuit board routing designs or requirements. The lengths of multiple different routing lines or wires may be completely different or partially different, which may actually cause multiple signals transmitted by multiple different parallel communication lines of the specific interface to have different signal delays. For the external circuit 101, if multiple received signals are related to a narrow effective range, it will be difficult to correctly sample, judge and obtain data for the multiple signals received by the external circuit 101.
[0028] In the present application, the image sensing device 100 uses the adjustment circuit 110 to automatically adjust the delay or phase of the multiple sensor data / digital signals generated by the processing circuit 105 and then output in parallel to the external circuit 101 through multiple lines or wires of the printed circuit board, so that the signals received by the external circuit 101 are related to a wider effective range. In this way, the external circuit 101 can easily and correctly sample, judge and obtain the data of the multiple sensor data signals received. In addition, the user or operator does not need to manually adjust the phase and delay of the signals of the image sensing device 100 and / or does not need to manually adjust the design of the printed circuit board routing, so the arrangement and setting of the lines or wires of the printed circuit board routing will become easier.
[0029] Figure 2FIG. 1 is a schematic diagram of an example of the image sensing device 100 implemented on the printed circuit board and connected to the external circuit 101 through multiple printed circuit board routing lines / conductors according to an embodiment of the present application. The processing circuit 105 can generate multiple sensor data signals, and the multiple sensor data signals include a clock signal CLK, a vertical synchronization signal Vsync, a horizontal synchronization signal Hsync, and multiple bit data signals D[0] to D[7], which are not shown in FIG. Figure 2 .exist Figure 2 For example, the sensor data signals adjusted by the adjustment circuit 110 include the clock signal CLK' outputted through the port / pin P_C, the vertical synchronization signal Vsync' outputted through the port / pin P_V, the horizontal synchronization signal Hsync' outputted through the port / pin P_H, and the 8-bit data signals such as D[0]'-D[7]' outputted through the ports / pins P0-P7, respectively. The adjusted sensor data signals are outputted by the image sensing device 100 (e.g., sensor chip), transferred through a plurality of different printed circuit board routing lines / conductors with completely different or partially different lengths, and then received by the external circuit 101 (e.g., microcontroller) through a plurality of different ports / pins G0-G10. It should be noted that each bit data signal D[0]'-D[7]' carries one bit of information, and the multiple bit data signals D[0]'-D[7]' form an image / frame data signal D[7:0]' having 8 bits. In other embodiments, the image data signal may also have 12 or more bit data signals, that is, the number of bit data signals is not a limitation of the present application.
[0030] In order to explain the concepts of narrower and wider effective ranges of signals and to enable readers to more clearly understand the improved performance of the image sensing device 100 of the present application, the present application discloses Figure 3 and Figure 4 Comparison of example schematics. Figure 3 is a schematic diagram of an example waveform of a result of a plurality of existing sensor data signals received by the external circuit 101, wherein the plurality of existing sensor data signals are directly output by an image sensor device and then Figure 2 The printed circuit board routing is forwarded without executing a delay adjustment mechanism of the present application. Figure 4 FIG. 1 is a schematic diagram of an example waveform of a plurality of sensor data signals received by the external circuit 101 according to an embodiment of the present application. The plurality of sensor data signals are output by the image sensing device 100 using the delay adjustment mechanism and then output by the image sensing device 100. Figure 2 It should be noted that Figure 3 and Figure 4 The exemplary schematic diagrams are not intended to be limiting of the present application.
[0031] exist Figure 3 In the embodiment, the clock signal CLK and other multiple sensor data signals Vsync, Hsync and D[7:0] are directly output from an existing image sensor device without being adjusted by the delay adjustment operation of the present application. As a result, the clock signal CLK and other multiple data signals Vsync, Hsync and D[7:0] may have different signal delays. When the clock signal CLK and other multiple data signals Vsync, Hsync and D[7:0] have been received by the external circuit 101, the external circuit 101 is used to sample and determine the other multiple data signals, such as the synchronization signals Vsync and Hsync and the multiple bit data signals D[7:0], according to the timing of the signal edge (e.g., the rising edge) of the clock signal CLK. The clock signal CLK can have a frequency of, for example, 50 MHz (but not limited to), and its period is equal to 20 nanoseconds (hereinafter represented by ns).
[0032] In order to illustrate the concept of narrower and wider valid ranges of signals, it is assumed that the multiple bit data signals D[7:0] respectively carry a same interlaced bit pattern such as '1010' or '0101', so that the reader can more clearly understand the concept of valid range. The external circuit 101 is used to sample the synchronization signals Vsync and Hsync every time a rising edge (but not limited to) of the clock signal CLK occurs. Once the sampled levels of the synchronization signals Vsync and Hsync are low (but not limited to), the external circuit 101 determines that the multiple bit data signals D[7:0] are valid.
[0033] exist Figure 3 For example, at time point t1, the clock signal CLK has a rising edge, and the sampled levels of the signals Vsync and Hsync are high, so the external circuit 101 determines that the bit data signal D[7:0] at time point t1 is not valid. Then, at time point t2, the clock signal CLK has another rising edge, and the sampled levels of the signals Vsync and Hsync are low, so the external circuit 101 determines that the bit data signal D[7:0] at time point t2 is valid, and the external circuit 101 samples the bit data signals D[7:0]. Ideally, the bit data signals D[7:0] should be aligned with the clock signal CLK. However, in reality, if Figure 3 As shown in the example of the left half of FIG, the bit data signals D[7:0] have different signal delays due to different lengths of the routing lines / conductors of the multiple printed circuit boards. Figure 3 In the example, the bit data signal D[0] seen and received by the external circuit 101 has a signal edge, such as a rising edge, which is earlier than the rising edges of the other multiple bit data signals D[1] to D[7]. The bit data signal D[7] received by the external circuit 101 has a signal edge, such as a rising edge, which is later than the rising edges of the other multiple bit data signals D[0] to D[6]. In this case, a corresponding falling edge of the bit data signal D[0] will appear immediately 3ns after the rising edge of the bit data signal D[7]. In this way, in order to sample and obtain the correct bit content of all bit data signals, the effective range (that is, the effective time period) will become only 3ns, that is, a narrower signal timing margin or tolerance. Since the rising edge of the clock signal CLK is more likely to appear outside the narrower tolerance due to any signal disturbance or circuit design imbalance, it will be more difficult for the external circuit 101 to correctly sample the multiple-bit data signal D[7:0].
[0034] Similarly, in Figure 3 In the example of the right half of , a falling edge of the bit data signal D[7] occurs at time point t3, and a rising edge of the bit data signal D[0] occurs at time point t4. That is, the rising edge of the bit data signal D[0] occurs immediately 4ns after the falling edge of the bit data signal D[7]. In this way, in order to obtain the correct bit content of all bit data signals, the effective range (that is, the effective time period) will become only 4ns, that is, a narrower tolerance. It will also be more difficult for the external circuit 101 to use the narrower tolerance to correctly sample the multiple bit data signals D[7:0].
[0035] Figure 4 FIG. 1 is a schematic diagram showing an example of a larger or wider tolerance of the delay adjustment mechanism of the image sensing device 100. Figure 4As shown in , the clock signal CLK' and other multiple data signals Vsync', Hsync' and D[7:0]' are signals delayed by the delay adjustment operation of the present application, then output from the image sensing device 100 and finally seen and received by the external circuit 101. For example, at time point t5, a rising edge of the clock signal CLK' occurs, and the levels sampled by the signals Vsync' and Hsync' are both high levels, so the external circuit 101 can determine that the multiple bit data signals D[7:0]' at time point t5 are not valid. Then, at time point t6, another rising edge of the clock signal CLK' occurs, and the levels sampled by the signals Vsync' and Hsync' are both low levels, so the external circuit 101 can determine that the multiple bit data signals D[7:0]' at time point t6 are valid, and the external circuit 101 can sample the multiple bit data signals D[7:0]'. In this embodiment, the plurality of bit data signals D[7:0]' may have different signal delays respectively, which are first compensated by the adjustment circuit 110 and then output to the external circuit 101 to correspond to the different lengths of the routing lines / conductors suitable for a plurality of printed circuit boards.
[0036] exist Figure 4 In the example of , the plurality of bit data signals D[7:0]' also respectively carry an interleaved bit pattern, such as '1010' or '0101'. Figure 4 In the example of the left half of , the bit data signal D[0]' has a corresponding falling edge 15ns after the rising edge of the bit data signal D[7]'. In order to sample and obtain the correct bit content of all bit data signals, the effective range (that is, the effective time period) becomes 15ns, which is a larger tolerance. For the external circuit 101, even if any signal disturbance or circuit design imbalance occurs, it is easy to correctly sample the content of the multiple bit data signals D[7:0]'. Similarly, in Figure 4 In the example of the right half of , the bit data signal D[0]' has a corresponding falling edge 17ns after a rising edge of the bit data signal D[7]'. In this way, in order to sample and obtain the correct bit content of all bit data signals, the effective range (that is, the effective time period) becomes 17ns, that is, a larger tolerance. For the external circuit 101, using a larger tolerance can easily and correctly sample the content of the multiple bit data signals D[7:0]'.
[0037] In practice, in one embodiment, the image sensing device 100 may include a normal mode and an adjustment mode. After the image sensing device 100 leaves the factory and is powered on, the image sensing device 100 enters and operates in the adjustment mode, sends and outputs multiple training / test signals from its multiple ports / pins to test the lengths of multiple printed circuit board routing lines / wires, and then receives multiple response signals to determine the delay amounts of multiple results used to compensate for different printed circuit board routing lines / wires. After determining the delay amounts of the multiple results, the image sensing device 100 may leave the adjustment mode and enter the normal mode, and use the delay amounts of the multiple results to adjust or fine-tune the delay / phase of the multiple sensor data signals respectively, so as to maximize or increase the above-mentioned effective range of the external circuit 101 as much as possible. However, this is not a limitation of the present application. In other embodiments, the delay amounts of the multiple results may be obtained or determined before the image sensing device 100 leaves the factory and then stored in the image sensing device 100, so that the image sensing device 100 can enter the normal mode when it is powered on and directly adjust the delay / phase of the multiple sensor data signals.
[0038] For the embodiment supporting the adjustment mode and the normal mode, the processing circuit 105 may generate and output the original (unprocessed) clock signal CLK and a plurality of original data signals (e.g., synchronization signals Hsync and Vsync and a plurality of bit data signals such as D[7:0]) in the normal mode. It should be noted that the plurality of original data signals may carry vertical and horizontal synchronization information and pixel image contents of a plurality of images / frames, and are generated when the image sensor device 100 captures the plurality of images / frames.
[0039] In the adjustment mode, the processing circuit 105 generates and outputs the clock signal CLK and a plurality of training data signals, each of which is formed by the same specific pattern signal APS, such as an interleaved bit pattern signal '1010' or '0101'. However, this is not a limitation of the present application. The plurality of training data signals may also be different.
[0040] Furthermore, in the present embodiment, the processing circuit 105 generates a plurality of identical pattern signals APS as synchronization signals Hsync and Vsync and a plurality of bit data signals such as D[7:0] in the adjustment mode. In other embodiments, each training data signal can be generated by using the original clock signal CLK, and the period of the generated training data signal is twice the period of the original clock signal CLK.
[0041] In practice, the adjustment circuit 110 includes a plurality of delay paths for respectively adjusting the delays / phases of the plurality of sensor data signals. Figure 5 According to an embodiment of the present application, when operating in the adjustment mode Figure 1 FIG. 1 is a schematic diagram of an example of the adjustment circuit 110 . Figure 6 According to an embodiment of the present application, when operating in the normal mode Figure 1 FIG. 1 is a schematic diagram of an example of the adjustment circuit 110 .
[0042] like Figure 5 As shown in , the adjustment circuit 110 includes a controller 1101, a plurality of multiplexers 1102_V, 1102_H, 1102_0 to 1102_N, and a plurality of delay path blocks / circuits 1103_C, 1103_V, 1103_H, 1103_0 to 1103_N (i.e., delay circuits). The number of multiplexers 1102_0 to 1102_N (or the number of delay path blocks 1103_0 to 1103_N) is the same as the total number of signals D[0] to D[7]. In this embodiment, the value of N is equal to 7 (but not limited to). In other embodiments, if the plurality of bit data signals are D[0] to D
[11] , the value of N may also be equal to 11.
[0043] In the adjustment mode, the processing circuit 105 generates and outputs the clock signal CLK to the delay path block 1103_C, and generates and outputs the plurality of training data signals APS to the multiplexers 1102_V, 1102_H, and 1102_0 ˜ 1102_N, for example.
[0044] The multiplexer 1102_V has a first input, a second input and an output, wherein the first input (corresponding to bit '0') is coupled to the training data signal APS, the second input (corresponding to bit '1') is coupled to a response signal APV' corresponding to a delayed training data signal APV, the delayed training data signal APV being generated from the training data signal APS being delayed by the delay path block 1103_V, and the output thereof is coupled to the input of the delay path block 1103_V. The multiplexer 1102_H has a first input, a second input and an output, wherein the first input is coupled to the training data signal APS, the second input is coupled to a response signal APH' corresponding to a delayed training data signal APH obtained by delaying the training data signal APS by the delay path block 1103_H, and the output thereof is coupled to the input of the delay path block 1103_H. The multiplexers 1102_0 to 1102_N respectively have a first input, a second input and an output, the first inputs are respectively coupled to the training data signals APS, the second inputs are respectively coupled to the response signals AP_0' to AP_N' corresponding to the delayed training data signals AP_0 to AP_N, the delayed training data signals AP_0 to AP_N are respectively generated by delaying the training data signals APS by the delay path blocks 1103_0 to 1103_N, and the outputs are respectively coupled to the inputs of the delay path blocks 1103_0 to 1103_N.
[0045] Each delay path block 1103_C, 1103_V, 1103_H, 1103_0-1103_N includes M delay units D1, which are connected in series. Each delay unit D1 includes a corresponding multiplexer and a corresponding delay register / element. The corresponding multiplexer in each delay unit D1 has a first input, a second input and an output. The first input of the corresponding multiplexer is connected to an output of the corresponding delay register. The corresponding delay register has an input connected to the input of each delay unit D1. The second input of the corresponding multiplexer is directly connected to the input of each delay unit D1. The output of the corresponding multiplexer is connected to the output of each delay unit D1. In addition, the corresponding delay register can be used to delay its input signal with a specific unit delay amount to generate its output signal. The specific unit delay amount can be, for example, 2ns (but not limited). In addition, the specific unit delay amount can also be fixed or adjustable. For each delay unit D1 in each delay path block 1103_C, 1103_V, 1103_H and 1103_0 to 1103_N, the controller 1101 can control each delay unit D1 to determine whether to output a delayed input signal with a signal delay of 2ns or to output an input signal that is not delayed. In this way, for a delay path block such as 1103_C, 1103_V, 1103_H and 1103_0 to 1103_N, the controller 1101 can control the delay path block to use an adjustable delay amount to delay the input signal of the delay path block to generate an output signal of the delay path block, and the adjustable delay amount is, for example, zero, 2ns, 2*2ns, 3*2ns, ... or M*2ns.
[0046] In this embodiment, when the image sensing device 100 enters the adjustment mode, the controller 1101 initially controls the multiplexers 1102_V, 1102_H and 1102_0 ˜ 1102_N to select the training data signal APS as the output of the multiplexers 1102_V, 1102_H and 1102_0 ˜ 1102_N. Next, for applying a plurality of preliminary delay amounts to a plurality of corresponding input signals, the controller 1101 controls the delay path blocks 1103_C, 1103_V, 1103_H and 1103_0-1103_N to delay the clock signal CLK and the corresponding training data signals APS by the preliminary delay amounts, so as to generate and output the delayed clock signal CLK' and the delayed training signals APV, APH and AP_0-AP_N to the ports P_C, P_V, P_H and P_0-P_N, respectively. Each port P_C, P_V, P_H and P_0-P_N is implemented by an input / output register, which can be used to output a signal within the chip to the outside of the chip and / or receive and transmit a signal outside the chip to the inside thereof. In addition, in this embodiment, the multiple preliminary delay amounts are the same, for example, they are all a part of a maximum delay amount that a delay path block can provide, and the part of the maximum delay amount can be, for example, half of the maximum delay amount. In other embodiments, the preliminary delay amounts can also be partially different or completely different.
[0047] After the delayed clock signal CLK' and the delayed training data signals APV, APH and AP_0~AP_N have been transmitted to the outside, the ports P_C, P_V, P_H and P_0~P_N are used to respectively receive a response clock signal CLK" and multiple response data signals APV', APH' and AP_0'~AP_N', and the response clock signal CLK" and the multiple response data signals APV', APH' and AP_0'~AP_N' are respectively related to the delayed clock signal CLK' and the delayed multiple training data signals APV, APH and AP_0~AP_N. The response signals CLK', APV', APH' and AP_0'~AP_N' are transmitted back from the external circuit 101 or the multiple printed circuit board routing lines / conductors, and can be used to reflect the different lengths of multiple different printed circuit board routing lines / conductors. The response signals APV', APH' and AP_0'~AP_N' are fed into the second inputs of the multiplexers 1102_V, 1102_H and 1102_0~1102_N.
[0048] Next, the controller 1101 controls the multiplexers 1102_V, 1102_H and 1102_0 to 1102_N to respectively select the response signals APV', APH' and AP_0' to AP_N' as their outputs. For adjusting the applied delay amounts, the controller 1101 then controls the delay path blocks 1103_V, 1103_H and 1103_0 to 1103_N to increase or decrease their respective delay amounts to generate and output the delayed response signals APV", APH", and AP_0" to AP_N", and it respectively takes the delayed response signals APV", APH", and AP_0" to AP_N" to compare with the signal edge of the response clock signal CLK", so as to determine the delay amounts of the multiple results applied by the delay path blocks 1103_V, 1103_H and 1103_0 to 1103_N.
[0049] For example, the controller 1101 sequentially controls the delay path block 1103_V to use multiple different delay amounts to delay the response signal APV' to generate multiple delayed response signals APV" with multiple different signal delays. The controller 1101 sequentially compares the delayed response signals APV" with multiple different signal delays with the response clock signal CLK" to determine the delay amount of the result mentioned by the delay path block 1103_V. Similarly, the controller 1101 can also determine the delay amounts of multiple results of multiple different delay path blocks.
[0050] After determining the delay amounts of the results generated by the delay path blocks 1103_V, 1103_H and 1103_0 to 1103_N, the controller 1101 uses the delay amounts of the results of the delay path blocks 1103_V, 1103_H and 1103_0 to 1103_N to delay the original sensor data signals respectively. Figure 6As shown in FIG. 1 , the controller 1101 controls the multiplexers 1102_V, 1102_H and 1102_0 to 1102_N in the normal mode to select the signals on their respective second inputs (ie, signals Vsync, Hsync and D[0] to D[7]) as their respective output signals. Next, the delay path blocks 1103_V, 1103_H and 1103_0~1103_N are used to apply their respective determined result delay amounts to the signals Vsync, Hsync and D[0]~D[7], so as to utilize the determined result delay amounts to delay the signals Vsync, Hsync and D[0]~D[7] to generate the delayed signals Vsync', Hsync' and D[0]'~D[7]' at their respective output ends, wherein the delayed signals Vsync', Hsync' and D[0]'~D[7]' are then output to the external circuit 101 through the multiple printed circuit board routing lines / conductors, so that the delayed signals Vsync', Hsync' and D[0]'~D[7]' transmitted through the multiple printed circuit board routing lines / conductors and then seen by the external circuit 101 can have an increased effective range or a maximized effective range.
[0051] Figure 7 According to an embodiment of the present application, the controller 1101 controls the delay path block 1103_V in the adjustment mode to sequentially apply a plurality of different delay amounts to Figure 5 A response signal APV' is used to sequentially generate a plurality of delayed response signals APV" having different signal delays. For example, the controller 1101 can be used to control the delay path block 1103_V to delay an input signal using different delay amounts such as 0ns, 2ns, 4ns, 6ns...14ns or 16ns to generate an output signal, that is, the maximum delay amount is equal to 16ns. Initially, the controller 1101 controls the delay path block 1103_V to delay the input signal using the initial delay amount, and the initial delay amount is, for example, half of the maximum delay amount, that is, 8ns.
[0052] like Figure 7As shown in , for the first sampling operation, the controller 1101 samples a response signal APV' of a vertical synchronization signal at the signal edge of the response signal CLK" of the delayed clock signal CLK', and the first sampled level is equal to a specific logic level, such as a low level '0'. In another example, the specific logic level can also be a high level '1'. When the first sampled level is equal to the specific logic level, the controller 1101 determines that the external circuit 101 can still correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the delay amount is equal to half of the maximum delay amount.
[0053] Next, for the second sampling operation, in addition to the initial delay of 8ns, the controller 1101 controls the delay path block 1103_V to add an additional 2ns delay to the response signal APV', that is, the current delay is equal to 10ns, and samples the delayed response signal APV" caused by the delay of 10ns at the signal edge of the response signal CLK", and the sampled level is also equal to the specific logic level '0'. When the second sampled level is equal to the specific logic level, the controller 1101 determines that the external circuit 101 can still correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the delay is equal to 10ns.
[0054] Similarly, for the third sampling operation, in addition to the initial delay of 8ns, the controller 1101 controls the delay path block 1103_V to apply an additional 4ns delay to the response signal APV', that is, the current delay is equal to 12ns, and the delayed response signal APV" caused by the delay of 12ns is sampled at the signal edge of the response signal CLK", and the sampled level is also equal to the specific logic level '0'. For the fourth sampling operation, in addition to the initial delay of 8ns, the controller 1101 controls the delay path block 1103_V to apply an additional 6ns delay to the response signal APV', that is, the current delay is equal to 14ns, and the delayed response signal APV" caused by the delay of 14ns is sampled at the signal edge of the response signal CLK", and the sampled level is also equal to the specific logic level '0'. For the fifth sampling operation, in addition to the initial delay of 8ns, the controller 1101 controls the delay path block 1103_V to add an additional delay of 8ns to the response signal APV', that is, the current delay is equal to the maximum delay of 16ns, and the delayed response signal APV" caused by the delay of 16ns is sampled at the signal edge of the response signal CLK", and the sampled level is also equal to the specific logic level '0'. In the above sampling operation, even if the delay is adjusted to 10ns, 12ns, 14ns or 16ns, the controller 1101 determines that the external circuit 101 can correctly sample the vertical synchronization signal output by the image sensing device 100.
[0055] Furthermore, for the sixth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 2ns from half of the maximum delay (i.e., 8ns) to delay the response signal APV' by a delay of 6ns, and samples the delayed response signal APV" caused by the delay of 6ns at the signal edge RS1 of the response signal CLK". At this time, the sampled level is also equal to the specific logic level '0'. Similarly, for the seventh sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 4ns from half of the maximum delay (i.e., 8ns) to delay the response signal APV' by a delay of 4ns, and samples the delayed response signal APV" caused by the delay of 4ns at the signal edge RS1 of the response signal CLK". At this time, the sampled level is also equal to the specific logic level '0'. For the eighth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 6ns from half of the maximum delay (i.e., 8ns) to delay the response signal APV' with a delay of 2ns, and samples the delayed response signal APV" caused by the delay of 2ns at the signal edge RS1 of the response signal CLK". At this time, the sampled level is also equal to the specific logic level '0'. For the ninth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 8ns from half of the maximum delay (i.e., 8ns) to process the response signal APV' with a delay of zero, and samples the response signal APV" corresponding to the zero delay at the signal edge RS1 of the response signal CLK". At this time, the sampled level is also equal to the specific logic level '0'. In the above operation, the controller 1101 determines that even if the delay amount is adjusted to 6ns, 4ns, 2ns or zero, the external circuit 101 can still correctly sample the vertical synchronization signal output by the image sensor device 100 .
[0056] Based on the above Figure 7 As a result of the operation in the controller 1101, the controller 1101 can determine that after the delay amount is set to an initial value (i.e., a preliminary delay amount), such as 8ns (equal to the delay amount of the delay path block 1103_C), it is not necessary to adjust the delay amount of the delay path block 1103_V to delay a vertical synchronization signal, and it can determine that the delay amount of the result of the delay path block 1103_V is equal to 8ns. Such an operation can also be applied to the operation of adjusting the delay amount of the delay path blocks 1103_H and 1103_0~1103_N to determine the delay amount of their respective results.
[0057] Figure 8According to another embodiment of the present application, the controller 1101 controls the delay path block 1103_V in the adjustment mode to sequentially apply different delay amounts to Figure 5 A response signal APV' is used to sequentially generate a plurality of delayed response signals APV" with different signal delays. Figure 8 As shown in, for the first sampling operation, the controller 1101 samples a response signal APV' of a vertical synchronization signal at the signal edge RS2 of the response signal CLK" of the delayed clock signal CLK', and the first sampled level is equal to the specific logic level, such as '0'; in another example, the specific logic level may also be '1'. When the first sampled level is equal to the specific logic level, the controller 1101 determines that the external circuit 101 can still correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the applied delay amount is equal to half of the maximum delay amount (that is, 8ns).
[0058] For the second sampling operation, in addition to the delay of 8ns, the controller 1101 controls the delay path block 1103_V to delay the response signal APV' by an additional delay of 2ns, that is, the total delay is 10ns, and samples the delayed response signal APV" caused by the delay of 10ns at the signal edge RS2 of the response signal CLK". At this time, the sampled level is also equal to the specific logic level '0'. When the second sampled level is equal to the specific logic level, the controller 1101 can determine that the external circuit 101 can still correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the applied delay is equal to 10ns.
[0059] Similarly, for the third sampling operation, in addition to the delay of 8 ns, the controller 1101 controls the delay path block 1103_V to delay the response signal APV' by an additional delay of 4 ns, that is, the total delay is 12 ns, and samples the delayed response signal APV" caused by the delay of 12 ns at the signal edge RS2 of the response signal CLK", and the sampled level is a high level at this time. When the third sampled level is a high level, which is different from a low level, the controller 1101 can determine that the external circuit 101 cannot correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the applied delay is equal to 12 ns. For the fourth sampling operation, in addition to the delay of 8ns, the controller 1101 controls the delay path block 1103_V to delay the response signal APV' by an additional delay of 6ns, that is, the total delay is 14ns, and samples the delayed response signal APV" caused by the delay of 14ns at the signal edge RS2 of the response signal CLK". At this time, the sampled level is a high level, and the controller 1101 can determine that the external circuit 101 cannot correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the applied delay is equal to 14ns. For the fifth sampling operation, in addition to the delay of 8ns, the controller 1101 controls the delay path block 1103_V to delay the response signal APV' by an additional delay of 8ns, that is, the total delay is 16ns, and samples the delayed response signal APV" caused by the delay of 16ns at the signal edge RS2 of the response signal CLK". At this time, the sampled level is a high level, and the controller 1101 can determine that the external circuit 101 cannot correctly sample the vertical synchronization signal output by the image sensing device 100 under the condition that the applied delay is equal to 16ns.
[0060] Furthermore, for the sixth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 2 ns from half of the maximum delay (i.e., 8 ns), that is, to delay the response signal APV' by a delay of 6 ns, and the sampled level is a low level. Similarly, for the seventh sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 4 ns from half of the maximum delay (i.e., 8 ns), that is, to delay the response signal APV' by a delay of 4 ns, and the sampled level is a low level. For the eighth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 6 ns from half of the maximum delay (i.e., 8 ns), that is, to delay the response signal APV' by a delay of 2 ns, and the sampled level is a low level. For the ninth sampling operation, the controller 1101 controls the delay path block 1103_V to reduce a delay of 8ns from half of the maximum delay (ie 8ns), that is, the response signal APV' is not delayed to generate the response signal APV", and the sampled level is a low level.
[0061] Based on the results of the above-mentioned multiple sampling operations, the controller 1101 can know that when the delay amount is gradually increased from half of the maximum delay amount to the maximum delay amount, there are three times when the sampling reaches the low level. In this way, the controller 1101 reduces a specific delay amount (the specific delay amount is equal to three times of a unit delay amount of 2ns) from half of the maximum delay amount to determine the resulting delay amount. In this example, the reduced delay amount is 6ns, and the resulting delay amount is equal to 2ns, which is different from the preliminary delay amount (i.e., half of the maximum delay amount, 8ns).
[0062] like Figure 8 As shown in , the response signal APV' transmitted back from the external circuit 101 is related to the training data signal APS (corresponding to a vertical synchronization signal), that is, the signal delayed by a preliminary delay amount 8n and then output to the external circuit 101 through the printed circuit board routing line. When the resulting delay amount is set to 2ns, the falling edge FS of the signal APV' can be shifted to become significantly closer to or adjacent to the time point t8. In this way, when the image sensing device 100 is in the normal mode, the timing of a signal edge (e.g., a rising edge) of the clock signal CLK' seen by the external circuit 101 can be closer to or closer to the middle point of a level (e.g., the above-mentioned low level) of the vertical synchronization signal seen by the external circuit 101. For the external circuit 101, it is easy to correctly sample and obtain information on the level of the vertical synchronization signal.
[0063] Similarly, in other embodiments, if the controller 1101 knows, for example (but not limited to), that a low-level result will be sampled three times when gradually decreasing a unit delay amount from half of the maximum delay amount to zero, the controller 1101 will increase a delay amount (i.e., 6ns) that is three times a unit delay amount (i.e., 2ns) from half of the maximum delay amount (8ns) to determine the delay amount of the result (i.e., 14ns).
[0064] The above operations are applicable to and can be used for a horizontal synchronization signal and a plurality of bit data signals to determine the delay amounts of the corresponding results.
[0065] In order to make the readers more clear and understand the operation of this application, Fig. 9 . Fig. 9 FIG. 1 is a flowchart of a delay adjustment operation according to an embodiment of the present application. Fig. 9 The steps in the process shown are performed in the order shown, and Fig. 9 The steps shown do not have to be performed consecutively, that is, other steps can also be inserted therein; the detailed process steps are described below:
[0066] Step S900: start;
[0067] Step S905: Entering an adjustment mode;
[0068] Step S910: Generate a clock signal and a plurality of training data signals;
[0069] Step S915: Delaying the clock signal and the training data signals respectively by using a plurality of preliminary delay amounts, generating and outputting a delayed clock signal and a plurality of delayed training data signals to the external circuit through a plurality of ports;
[0070] Step S920: receiving a response clock signal and a plurality of response data signals from the plurality of ports, wherein the response clock signal and the plurality of response data signals are respectively related to the delayed clock signal and the plurality of delayed data signals;
[0071] Step S925: generating a plurality of result delay amounts of the plurality of response data signals; for a response data signal, this step will perform an operation of sequentially applying a plurality of different delay amounts to the response data signal to generate a plurality of delayed response data signals, and then perform an operation of determining a result delay amount according to the plurality of delayed response data signals and the response clock signal;
[0072] Step S930: using a preliminary delay amount as a result delay amount of the response clock signal;
[0073] Step S935: Entering a normal mode;
[0074] Step S940: generating the clock signal and a plurality of sensor data signals in the normal mode;
[0075] Step S945: applying the preliminary delay amount to the clock signal and applying the multiple resultant delay amounts of the multiple response data signals to the multiple sensor data signals to generate and output a plurality of delayed communication signals to be output to the external circuit; and
[0076] Step S950: End.
[0077] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An image sensing device for externally coupling to an external circuit through a circuit routing design, It is characterized in that Include: a processing circuit for generating and outputting a clock signal and a plurality of sensor data signals; and an adjustment circuit coupled to the processing circuit, for compensating for an imbalance of the circuit routing design by automatically determining a plurality of resultant delay amounts of the plurality of sensor data signals, applying a preliminary delay amount to the clock signal, and applying the plurality of resultant delay amounts to the plurality of sensor data signals, so as to generate and output a delayed clock signal and a plurality of delayed sensor data signals to the external circuit through the circuit routing design; The processing circuit is used to generate and output the clock signal and a plurality of training data signals in the adjustment mode, and to generate and output the clock signal and a plurality of sensor data signals in the normal mode. The plurality of training data signals are used to test the line routing design.
2. The image sensing device according to claim 1, It is characterized in that The adjustment circuit is used to: Delaying the clock signal and the training data signals respectively by using a plurality of preliminary delay amounts to generate a delayed clock signal and a plurality of delayed training data signals to the external circuit through a plurality of ports; Receiving a response clock signal and a plurality of response data signals from the plurality of ports, respectively, the response clock signal and the plurality of response data signals being related to the delayed clock signal and the plurality of delayed training data signals, respectively; Generating the plurality of resultant delays corresponding to the plurality of response data signals comprises: For the response data signal: sequentially applying a plurality of different delay amounts to the response data signal to generate a plurality of delayed response data signals; as well as Determining a result delay amount according to the plurality of delayed response data signals and the response clock signal; using the preliminary delay amount as a resulting delay amount of the response clock signal; as well as The preliminary delay amount is applied to the clock signal and the resultant delay amounts corresponding to the response data signals are applied to the sensor data signals to generate and output a plurality of delayed communication signals, which will be output to the external circuit.
3. The image sensing device according to claim 2, It is characterized in that The adjustment circuit includes: a first delay path circuit associated with the clock signal, for applying the preliminary delay amount to the clock signal; a plurality of multiplexers, respectively used to receive the plurality of training data signals and the plurality of response data signals in the adjustment mode, and respectively used to receive the plurality of sensor data signals in the normal mode; A plurality of second delay path circuits, respectively coupled to the plurality of output signals of the plurality of multiplexers, for respectively applying a plurality of corresponding delay amounts to the plurality of output signals; as well as a controller coupled to the first delay path circuit and the plurality of second delay path circuits, for controlling the first delay path circuit and the plurality of second delay path circuits, and for controlling the plurality of second delay path circuits to respectively apply the plurality of resultant delay amounts to the plurality of sensor data signals; Each delay path circuit includes a plurality of delay units connected in series, and each delay unit is controlled by the controller to determine whether to apply a specific unit delay amount of each delay unit.
4. The image sensing device according to claim 1, It is characterized in that The plurality of training data signals are formed by the same interleaved pattern signal.
5. The image sensing device according to claim 1, It is characterized in that The preliminary delay amount is half of the maximum delay amount of the delay path circuit included in the adjustment circuit.
6. The image sensing device according to claim 1, It is characterized in that The adjustment circuit is used to increase or maximize the effective signal time point range of the plurality of sensor data signals to be sampled by the clock signal.
7. A method for externally coupling an image sensing device to an external circuit by circuit routing design, It is characterized in that Include: Generate and output a clock signal and a plurality of sensor data signals; as well as Compensating for the imbalance of the circuit routing design by automatically determining a plurality of resultant delay amounts of the plurality of sensor data signals, applying a preliminary delay amount to the clock signal, and applying the plurality of resultant delay amounts to the plurality of sensor data signals, so as to generate and output a delayed clock signal and a plurality of delayed sensor data signals to the external circuit through the circuit routing design; The method further comprises: generating and outputting the clock signal and a plurality of training data signals in an adjustment mode; and generating and outputting the clock signal and the plurality of sensor data signals in a normal mode; The plurality of training data signals are used to test the line routing design.
8. The method according to claim 7, It is characterized in that The method further comprises: Delaying the clock signal and the training data signals respectively by using a plurality of preliminary delay amounts to generate a delayed clock signal and a plurality of delayed training data signals to the external circuit through a plurality of ports; Receiving a response clock signal and a plurality of response data signals from the plurality of ports, respectively, the response clock signal and the plurality of response data signals being related to the delayed clock signal and the plurality of delayed training data signals, respectively; Generating the plurality of resultant delays corresponding to the plurality of response data signals comprises: For the response data signal: sequentially applying a plurality of different delay amounts to the response data signal to generate a plurality of delayed response data signals; as well as Determining a result delay amount according to the plurality of delayed response data signals and the response clock signal; using the preliminary delay amount as a resulting delay amount of the response clock signal; as well as The preliminary delay amount is applied to the clock signal and the resultant delay amounts corresponding to the response data signals are applied to the sensor data signals to generate and output a plurality of delayed communication signals, which will be output to the external circuit.
9. The method according to claim 7, It is characterized in that The plurality of training data signals are formed by the same interleaved pattern signal.
10. The method according to claim 7, It is characterized in that The initial delay amount is half of the maximum delay amount.
11. The method according to claim 7, It is characterized in that The method further comprises: The effective signal time point range of the plurality of sensor data signals to be sampled by the clock signal is increased or maximized.
