A phase adjusting apparatus includes a comparison code generating section, a calculating section, and a delay section. The comparison code generating section individually generates a first comparison code having a phase of a head code advanced and a second comparison code having the phase of the head code delayed, the head code being included in serial transfer data. The calculating section acquires a direction of adjustment of a phase of the serial transfer data using a comparison result of the head code and the first comparison code and a comparison result of the head code and the second comparison code. The delay section adjusts a delay amount of the serial transfer data based on the direction of adjustment of the phase.
|
1. A phase adjusting apparatus comprising:
a comparison code generating section individually generating a first comparison code having a phase of a head code advanced and a second comparison code having the phase of the head code delayed, the head code being included in serial transfer data;
a calculating section acquiring a direction of adjustment of a phase of the serial transfer data using a comparison result of the head code and the first comparison code and a comparison result of the head code and the second comparison code; and
a delay section adjusting a delay amount of the serial transfer data based on the direction of adjustment of the phase.
5. A camera comprising a phase adjusting apparatus, wherein the phase adjusting apparatus comprises a comparison code generating section individually generating a first comparison code having a phase of a head code advanced and a second comparison code having the phase of the head code delayed, the head code being included in serial transfer data; a calculating section acquiring a direction of adjustment of a phase of the serial transfer data using a comparison result of the head code and the first comparison code and a comparison result of the head code and the second comparison code; and a delay section adjusting a delay amount of the serial transfer data based on the direction of adjustment of the phase.
2. The phase adjusting apparatus according to
a control section actuating the comparison code generating section in accordance with any of a number of times of communication of the serial transfer data, an elapse of time, and an amount of change in temperature.
3. The phase adjusting apparatus according to
the delay section adjusts the delay amount during a period of time after effective data in a data area, among data included in the serial transfer data, has passed, the effective data in the data area being input following the head code.
4. The phase adjusting apparatus according to
the comparison code generating section adjusts a shift range of the phase of the first comparison code with respect to the head code and a shift range of the phase of the second comparison code with respect to the head code based on the comparison result of the head code and the first comparison code and the comparison result of the head code and the second comparison code, respectively.
|
This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2009-020076, filed on Jan. 30, 2009, the entire contents of which are incorporated herein by reference.
1. Field
The present application relates to a phase adjusting apparatus and a camera.
2. Description of the Related Art
Recently, accompanying an increase in the number of pixels in an image pickup device, there is an increasing demand for an electronics device, such as an electronic camera, to increase the transfer rate of digital data. In the design of such an electronics device, a relationship of phase between data and clock is maintained by suppressing variations in delay of data by controlling the impedance of a transfer line, making wires the same length, selecting the material of printed board, etc., and by performing a simulation of signal waveforms, etc.
It is known that the relationship of phase between data and clock changes due to heat generated in a continuous operation of an electronics device or the configuration of a peripheral circuit. As an example of measures to prevent this, Japanese Unexamined Patent Application Publication No. 2008-124714 discloses a configuration of a circuit that adjusts a relationship of phase between data and clock using two kinds of clock with different phases as well as adjusting a threshold value to determine the voltage of an input signal.
However, with the technique disclosed in Japanese Unexamined Patent Publication. No. 2008-124714 described above, it is actually difficult to determine a threshold value for determination of voltage and there is yet a room for improvement in a point that it becomes hard to maintain the precision of the two kinds of clock if the clock speed is increased.
Because of the above, a proposition is to provide a unit that appropriately adjusts a relationship of phase between data and clock with a simpler configuration.
A phase adjusting apparatus according to one embodiment includes a comparison code generating section, a calculating section, and a delay section. The comparison code generating section individually generates a first comparison code having a phase of a head code advanced and a second comparison code having the phase of the head code delayed, the head code being included in serial transfer data. The calculating section acquires a direction of adjustment of a phase of the serial transfer data using a comparison result of the head code and the first comparison code and a comparison result of the head code and the second comparison code. The delay section adjusts a delay amount of the serial transfer data based on the direction of adjustment of the phase.
The phase adjusting apparatus in the one embodiment described above may further includes a control section that actuates the comparison code generating section in accordance with any of a number of times of communication of serial transfer data, a elapse of time, and an amount of change in temperature.
In the one embodiment described above, the delay section may adjust the delay amount during a period of time after effective data in a data area, among data included in the serial transfer data, has passed, the effective data in the data area being input following the head code.
In the one embodiment described above, the comparison code generating section may adjust a shift range of the phase of the first comparison code with respect to the head code and a shift range of the phase of the second comparison code with respect to the head code based on the comparison result of the head code and the first comparison code and the comparison result of the head code and the second comparison code, respectively.
Further, a camera or an electronics device that includes the phase adjusting apparatus in the one embodiment described above is also effective as a specific embodiment of the present application.
Other propositions, features, and advantages described above will be made clearer by the following description.
(Configuration Example of Phase Adjusting Apparatus)
The transmitting section 11 is a signal processing circuit that outputs a data packet (serial transfer data) to be transferred in a serial scheme to a circuit in a post stage. In an embodiment, the period of a clock signal is set to 500 MHz and a digital data signal is transmitted in a double data rate (DDR) scheme at a rate of 1 Gbps. The output of the transmitting section 11 is connected with the delay section 12.
Here,
The header area includes, for example, a head code indicative of the head of serial transfer data, data indicative of the number of bytes in the data area, etc. The data area includes effective data (image data etc.) that is an object of serial transfer, padding data attached to adjust the data length of the data area, etc.
It is assumed that the head code in one embodiment has, a bit depth of 12 bits for one word and includes data corresponding to four words in which a word “FFF (h)” in which “1” appears successively 12 times and a word “000 (h)” in which “0” appears successively 12 times (“FFF (h), 000 (h), FFF (h), 000 (h)”) are arranged alternately side by side.
Returning to
The comparison code generating section 13 is a circuit having one input and three outputs that generates data the phase of which is shifted forward and backward, respectively, with respect to input data. The comparison code generating section 13 has three programmable delay circuits 13a, 13b and 13c having the same configuration, respectively. In one embodiment, the delay amount of each of the delay circuits 13a, 13b and 13c is set to an identical value (Ns), respectively. It is also possible for the delay circuits 13a, 13b and 13c to change the value of the delay amount Ns in accordance with a specification by the CPU 15.
Here, the input of the comparison code generating section 13 is connected to the delay circuit 13a. The output of the delay circuit 13a is branched into a signal line Tn and the input of the delay circuit 13b. The output of the delay circuit 13b is branched into a signal line To and the input of the delay circuit 13c. Then, the output of the delay circuit 13c is connected to a signal line Tp. Because of this, the output of the signal line Tn does not pass through the delay circuit 13b, and therefore, its phase is advanced than that of the output of the signal line To (refer to
The delay amount Ns in each of the delay circuits 13a, 13b and 13c described above is set appropriately in accordance with the clock of serial transfer data. For example, when the clock is 500 MHz, one period is 2 ns, and therefore, the initial value of the above-mentioned delay amount Ns is set to about 200 ps. In this case, a variation amount corresponding to one stage of N, to be described later, and Ns is set to about 20 ps.
The calculating section 14 is a circuit that compares the head code output from the signal line To with the head codes output from the signal lines Tp and Tn, respectively, and acquires the direction of adjustment of the phase of serial transfer data. The calculating section 14 has a register (not shown schematically) that holds a state of a flag “Tn_ERR” indicative of the comparison result between the head code and a first comparison code, to be described later, and a state of a flag “Tp_ERR” indicative of the comparison result between the head code and a second comparison code, to be described later, respectively. Further, the calculating section 14 has a signal line through which the input from the signal line To is output to a circuit in a post stage (not shown schematically) as it is.
The CPU 15 is a processor that totally controls the phase adjusting apparatus. The CPU 15 performs, for example, control of the output of serial transfer data in the transmitting section 11, determination of initiation of phase adjustment processing, to be described later, specification of switching of the path 12b for the selector 12c, specification of adjustment of each delay circuit of the comparison code generating section 13, etc.
Next, an operation example of the phase adjusting apparatus in one embodiment is explained. Serial transfer data output from the transmitting section 11 passes through the delay section 12, the comparison code generating section 13 and the calculating section 14 in a pipeline manner and is output to the post stage as it is. It is assumed that a value adjusted in advance to synchronize with a clock is set as the delay adjustment value N of the delay section 12.
During the period of normal operation described above, the CPU 15 monitors the number of times of transfer of serial transfer data, the time elapsed from the previous phase adjustment processing (or from the startup), and the temperature of the temperature sensor 16, respectively. Then, the CPU 15 starts the calculating section 14 to initiate phase adjustment processing when the CPU 15 determines either (1) the number of times of transfer of serial transfer data exceeds a threshold value, (2) a predetermined time has elapsed from the previous phase adjustment processing, or (3) the amount of change in temperature detected exceeds a threshold value.
Hereinafter, with reference to
Step S101: The calculating section 14 performs an initialization operation when receiving an instruction to initiate phase adjustment processing from the CPU 15. In S101, the calculating section 14 resets a flag “Tn_ERR” and a flag “Tp_ERR” to “0”, respectively (Tn_ERR=0, Tp_ERR=0).
Then, in S101, the calculating section 14 initiates monitoring of the signal value of serial transfer data output from the signal lines Tn, To and Tp, respectively.
Step S102: The calculating section 14 determines whether or not the head code of the serial transfer data is input from the signal lines Tn, To and Tp. As an example, the calculating section 14 refers to data corresponding to two words of the data to be input and when there is an input of “FFF (h), 000 (h)”, the calculating section 14 determines that the head code is input.
When the above-mentioned requirement is satisfied (YES side), the processing moves to S103. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the calculating section 14 awaits for the input of the head code of serial transfer data.
Step S103: The calculating section 14 reads a predetermined part of the head code input from the signal line Tn and acquires the first comparison code. In S103, the calculating section 14 acquires the first comparison code using the part of the third word of the head code. The first comparison code corresponds to a value when the output of the signal line To is advanced by Ns in phase (−Ns) and sampled.
Step S104: The calculating section 14 determines whether or not the first comparison code (S103) coincides with the head code. That is, in S104, the calculating section 14 determines whether or not the first comparison code coincides with the third word (“FFF (h)”) of the head code. When the above-mentioned requirement is satisfied (YES side), the processing moves to S106. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the processing moves to S105.
Step S105: The calculating section 14 sets the state of the flag “Tn_ERR” to “1” (Tn_ERR=1).
Step S106: The calculating section 14 reads a predetermined part of the head code input from the signal line Tp and acquires the second comparison code. In S106, the calculating section 14 acquires the second comparison code using the part of the third word of the head code. The second comparison code corresponds to a value when the output of the signal line To is delayed by Ns in phase (+Ns) and sampled.
Step S107: The calculating section 14 determines whether or not the second comparison code (S106) coincides with the head code. That is, in S107, the calculating section 14 determines whether or not the second comparison code coincides with the third word (“FFF (h)”) of the head code. When the above-mentioned requirement is satisfied (YES side), the processing moves to S109. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the processing moves to S108.
Step S108: The calculating section 14 sets the state of the flag “Tp_ERR” to “1” (Tp_ERR=1).
For the sake of simplicity, in
Step S109: The calculating section 14 determines whether or not the state of the flag “Tn_ERR” is “1” and the state of the flag “Tp_ERR” is “0” (Tn_ERR=1, Tp_ERR=0). When the above-mentioned requirement is satisfied (YES side), the processing moves to S110. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the processing moves to S111.
Step S110: In this case, the output of the signal line To produces a digital error when the phase is shifted in the direction in which the phase is advanced, however, does not produce any digital error when the phase is shifted in the direction in which the phase is delayed (refer to
Step S111: The calculating section 14 determines whether or not the state of the flag “Tn_ERR” is “0” and the state of the flag “Tp_ERR” is “1” (Tn_ERR=0, Tp_ERR=1). When the above-mentioned requirement is satisfied (YES side), the processing moves to S112. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the processing moves to S113.
Step S112: In this case, the output of the signal line To produces a digital error when the phase is shifted in the direction in which the phase is delayed, however, does not produce any digital error when the phase is shifted in the direction in which the phase is advanced (refer to
Step S113: The calculating section 14 determines whether or not the state of the flag “Tn_ERR” is “1” and the state of the flag “Tp_ERR” is also “1” (Tn_ERR=1, Tp_ERR=1). When the above-mentioned requirement is satisfied (YES side), the processing moves to S114. On the other hand, when the above-mentioned requirement is not satisfied (NO side), the processing moves to S115.
Step S114: In this case, the delay amount Ns of the delay circuit is large, and therefore, it is determined that a digital error is produced when the phase of the signal line To is shifted in either direction. Because of this, in S114, the calculating section 14 instructs the CPU 15 to reduce the delay amount Ns in each delay circuit by an amount corresponding to one stage (Ns=Ns−1). Due to this, in the next phase adjustment processing, the phase differences of the outputs of the signal lines Tn and Tp are reduced, respectively, with respect to the output of the signal line To. Because of this, it is made possible for the calculating section 14 to make a phase adjustment in finer steps. Then, the processing moves to S116.
Step S115: In this case, it is determined that no digital error is caused even if the phase of the signal line To shifts in either direction. Because of this, in S115, the calculating section 14 instructs the CPU 15 to increase the delay amount Ns in each delay circuit by an amount corresponding to one stage (Ns=Ns+1). Due to this, in the next phase adjustment processing, the phase differences of the outputs of the signal lines Tn and Tp are increased, respectively, with respect to the output of the signal line To. Because of this, it is made possible for the calculating section 14 to make a phase adjustment while viewing a wider range in the direction of time axis.
Step S116: The calculating section 14 instructs the CPU 15 to maintain the delay adjustment value of the delay section 12 as it is (N=N).
Step S117: In response to the instruction from the calculating section 14 (S110, S112, S114 to S116), the CPU 15 adjusts the delay adjustment value N of the delay section 12 or the delay amount Ns in each delay circuit. Then, the CPU 15 returns to the normal operation as well as ending the phase adjustment processing.
Here, the adjustment of the delay adjustment value N or the delay amount Ns is made by making use of the period of time during which the padding data of serial transfer data is passing (period of time after the effective data has passed). Because of this, it is unlikely that the transfer of effective data of serial transfer data is impeded by the phase adjustment processing. The explanation of the flowchart in
The adjustment of the delay adjustment value N or the delay amount Ns may be made at any time after the effective data has passed or after the effective data has passed and before the next serial data is transferred. For example, it may also be possible for the CPU 15 to adjust the delay adjustment value N or the delay amount Ns after the padding data has passed and before the next serial data arrives. When no padding data is attached to serial data, it may also be possible to adjust the delay adjustment value N or the delay amount Ns after the effective data has passed (after serial data is transferred) and before the next serial data arrives.
In the above-mentioned one embodiment, the calculating section 14 acquires, as well as generating the first comparison code and the second comparison code having a phase difference with respect to the head code, the direction of adjustment of the phase of serial transfer data based on whether or not their identity exists (S103 to S109, S111).
Because of this, in the one embodiment, it is possible to easily suppress a shift in phase of serial transfer data resulting from a change in temperature environment of the apparatus etc.
Further, in the one embodiment, the calculating section 14 performs phase adjustment processing using the head code of serial transfer data. Because of this, in the one embodiment, it is possible to make a phase adjustment without impeding the above-mentioned data transfer in a circumstance in which serial transfer data is transferred continuously (for example, when data of motion picture is transferred).
It may also be possible for a user to arbitrarily set the initial value of Ns, the amount of variation corresponding to one stage of N and Ns, or they may be set dynamically by switching them based on information about temperature etc.
<Supplementary Items of the Embodiment>
(1) The phase adjusting apparatus of the present invention is not limited to an example in which the apparatus is incorporated in an electronic camera, but the apparatus may be incorporated in another electronics device. In the above-mentioned embodiment, an example is explained, in which serial transfer is performed using one channel, however, it is of course obvious that the present invention can be applied to the case of a plurality of channels.
(2) In the above-mentioned embodiment, an example is explained, in which the comparison code is generated by making use of the third word of the head code of serial transfer data, however, it may also be possible for the calculating section 14 to generate the comparison code by making use of only, for example, part of an arbitrary word included in the head code (signal string corresponding to several bits). In the case described above, it may also be possible for the calculating section 14 to generate the comparison code across a plurality of words.
The many features and advantages of the embodiments are apparent from the detailed specification and, thus, it is intended by the appended claims to cover all such features and advantages of the embodiments that fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the inventive embodiments to the exact construction and operation illustrated and described, and accordingly all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
6256329, | Mar 11 1998 | Fujitsu Limited | Semiconductor laser driver circuit |
6654897, | Mar 05 1999 | International Business Machines Corporation | Dynamic wave-pipelined interface apparatus and methods therefor |
7586348, | Jun 02 2005 | Samsung Electronics Co., Ltd. | Systems, apparatuses and methods for synchronizing clock signals |
7696802, | Feb 01 2006 | Samsung Electronics Co., Ltd. | Data delay control circuit and method |
7911249, | Jul 25 2006 | Panasonic Corporation | Semiconductor integrated circuit |
7965116, | Nov 27 2008 | Sony Semiconductor Solutions Corporation | Timing adjustment circuit, solid-state image pickup element, and camera system |
20040068682, | |||
20060036915, | |||
20080112522, | |||
JP11112483, | |||
JP11261485, | |||
JP2000196571, | |||
JP2002539526, | |||
JP2004127147, | |||
JP2004171254, | |||
JP2008124714, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 30 2009 | Nikon Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Apr 10 2015 | 4 years fee payment window open |
Oct 10 2015 | 6 months grace period start (w surcharge) |
Apr 10 2016 | patent expiry (for year 4) |
Apr 10 2018 | 2 years to revive unintentionally abandoned end. (for year 4) |
Apr 10 2019 | 8 years fee payment window open |
Oct 10 2019 | 6 months grace period start (w surcharge) |
Apr 10 2020 | patent expiry (for year 8) |
Apr 10 2022 | 2 years to revive unintentionally abandoned end. (for year 8) |
Apr 10 2023 | 12 years fee payment window open |
Oct 10 2023 | 6 months grace period start (w surcharge) |
Apr 10 2024 | patent expiry (for year 12) |
Apr 10 2026 | 2 years to revive unintentionally abandoned end. (for year 12) |