The embodiments discussed herein are related to a clock generation circuit and a method for controlling the clock generation circuit.
Generally, a phase lock loop (PLL) circuit is a clock generation circuit used for generating a clock by multiplying a reference clock. The following describes a procedure for generating a clock by the PLL circuit. First, the PLL circuit receives an input of the reference clock. The PLL circuit divides a high frequency clock that is an output of a voltage controlled oscillator (VCO) using a frequency divider, and generates a frequency divided clock corresponding to a predetermined multiplication ratio. Then, the PLL circuit compares the reference clock with the frequency divided clock using a phase frequency detector (PFD). Next, the PLL circuit converts an error signal output from the phase frequency director to an analog signal, and removes an unnecessary signal. Then the PLL circuit controls an oscillation frequency of the VCO using the error signal so that the frequencies and the phases of the reference clock and the frequency divided clock are the same. Accordingly, the PLL circuit generates a clock output from the VCO as a desired multiplied clock.
In some PLL circuits that input a high-frequency signal output from the VCO, a plurality of frequency dividers having different frequency division ratios are arranged in parallel. The PLL circuit selects an output having an appropriate frequency divided clock from among outputs from the frequency dividers by a selector, and outputs it to a subsequent stage. For example, in the PLL circuit using a plurality of numbers of multiplication such as 4 and 5, frequency dividers of 4-division and 5-division are connected in parallel to the output from the VCO. Such a PLL circuit selects a frequency divider having a frequency division ratio to be used from the above frequency dividers on the basis of an external setting.
The upper limit for operating frequency by which the frequency divider normally operates is generally higher than a frequency of a circuit on which the PLL circuit is mounted. This is because in a pull-in process at an initial training in the PLL circuit, the oscillation frequency of the VCO fluctuates and converges to a steady operating frequency of a circuit mounted on the PLL circuit. The “pull-in process” indicates a process in which the PLL circuit starts to operate and an input signal and an output signal are synchronized with each other and stabilized, for example.
The PLL circuit only compares phases of the reference clock and the frequency divided clock, so that it is difficult to detect a synchronization error caused by malfunction of the frequency divider. Therefore, the upper-limit frequency at which the frequency divider connected to a VCO output operates is acceptable to be equal to or higher than a VCO oscillation frequency that is higher than an operating frequency of a circuit on which the PLL is mounted so that the PLL circuit is not erroneously synchronized.
However, in recent years, the operating frequency of the circuit on which the PLL circuit is mounted has been increasing to satisfy indications such as to increase the number of multiplication and to increase the reference clock frequency in order to cause a system to quickly operate. In this way, a circuit operation margin in the PLL decreases because the operating frequency of the circuit on which the PLL circuit is mounted increases. Accordingly, the frequency divider uses a larger operation margin when pulling-in the PLL than that in a steady operation in the PLL circuit, and hence there is a risk such as it is difficult to sufficiently secure a margin and the operation becomes unstable.
The operating frequency of the frequency divider is determined with reference to a frequency at the time when the clock is accelerated more than a setup time and a hold time of a flip flop (FF) and an output of the FF does not catch up with an input clock. As compared with the frequency divider having an even number frequency division ratio that directly inputs the FF output to the FF, the frequency divider having an odd number frequency division ratio that inputs a plurality of FF outputs to the FF through a logic circuit using the FF outputs as an input takes more time corresponding to delay time of the logic circuit. Therefore, the frequency divider having the odd number frequency division ratio only operates at a clock having a period longer than that of the frequency divider having the even number frequency division ratio. Accordingly, the operating frequency of the frequency divider having the odd number frequency division ratio is lower than that of the frequency divider having the even number frequency division ratio.
When the operating frequency increases, the output of the frequency divider having the odd number frequency division ratio fails to be inverted earlier than the frequency divider having the even number frequency division ratio fails, among the frequency dividers influenced by variation in the oscillation frequency of the VCO. In this case, the frequency divider having the odd number frequency division ratio causes malfunction such as the outputting of a clock having a high frequency division ratio, that is, a clock having a low frequency.
As a result, the frequency divided clock, which is compared with the reference clock, is locked higher than expected with a desired frequency division ratio. That is, the PLL circuit performs erroneous synchronization leaving the VCO oscillation frequency set to a clock frequency higher than expected with a desired number of multiplication. Therefore, it has been difficult to apply an operating frequency substantially the same as that in the PLL circuit including the frequency divider having the even number frequency division ratio to the PLL circuit including the frequency divider having the odd number frequency division ratio.
According to an aspect of an embodiment, a clock generation circuit includes: a phase lock loop (PLL) that generates an output clock obtained by multiplying a reference clock by an odd number of multiplication; a first frequency divider circuit that divides the output clock by the odd number to generate a first frequency divided clock; a second frequency divider circuit that divides the first frequency divided clock by a predetermined number to generate a second frequency divided clock; a third frequency divider circuit that divides the output clock by an even number to generate a third frequency divided clock; a fourth frequency divider circuit that divides the third frequency divided clock at such a frequency division ratio that makes a frequency division ratio of the first frequency divider circuit and the second frequency divider circuit match a frequency division ratio of the third frequency divider circuit, to generate a fourth frequency divided clock; a comparator circuit that compares phases or frequencies of the second frequency divided clock and the fourth frequency divided clock; and a control circuit that performs control of lowering an oscillation frequency of the PLL when the comparison result by the comparator circuit represents a mismatch.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
referred embodiments of the present invention will be explained with reference to accompanying drawings. The clock generation circuit and the method for controlling the clock generation circuit disclosed herein are not limited by the embodiments below.
The phase frequency director 1 receives a reference clock input to the input terminal 11 from outside. The phase frequency director 1 also receives, from the frequency divider 5, an input of a clock obtained by dividing an output clock output from the VCO 4 to be described later (hereinafter, referred to as a “frequency divided clock” in some cases).
The phase frequency director 1 detects a phase difference and a frequency difference between the reference clock and the frequency divided clock. Next, the phase frequency director 1 generates an error signal from the detected phase difference and frequency difference. Then the phase frequency director 1 outputs the generated error signal to the CP 2.
The CP 2 receives an input of the error signal from the phase frequency director 1. Then the CP 2 converts the input error signal into an analog signal from a digital signal. The CP 2 boosts the voltage of the error signal. The CP 2 outputs the error signal converted into the analog signal to the LPF 3.
The LPF 3 receives an input of the error signal converted into the analog signal, from the CP 2. The LPF 3 blocks a high frequency component of the input error signal and rectifies the signal. Then the LPF 3 outputs the generated direct current voltage to the VCO 4.
The VCO 4 receives, from the LPF 3, an input of the direct current voltage generated from the error signal. For example, if the phase of the frequency divided clock is ahead of that of the reference clock, a positive voltage corresponding to the degree of the difference therebetween is input to the VCO 4. If the phase of the frequency divided clock is behind that of the reference clock, a negative voltage corresponding to the degree of the difference therebetween is input to the VCO 4. The oscillation frequency of the VCO 4 is controlled by the input voltage so that the phases and the frequencies of the reference clock and the frequency divided clock match each other. Then the VCO 4 outputs a clock having the oscillation frequency (hereinafter, also referred to as an “output clock” in some cases) through the output terminal 12. The VCO 4 also outputs the output clock to the frequency divider 5.
For example, at the time of initial training, the VCO 4 receives an input of a control code for adjusting an frequency offset from the control unit 7 to be described later. The following describes the control code for adjusting the frequency offset. The VCO 4 can control the oscillation frequency in a specific frequency range with reference to a frequency designated by the control code. The control code provides a frequency offset for switching the range of the oscillation frequency of the VCO 4. When the frequency offset is changed by the control code, the VCO 4 controls the oscillation frequency in a range based on the changed frequency offset. That is, the control code for adjusting the frequency offset is a command to designate the range in which the frequency is controlled at the VCO 4.
The VCO 4 changes its own oscillation frequency corresponding to the received control code. For example, when receiving the control code using a frequency offset one-step lower than the frequency offset being used, the VCO 4 controls the oscillation frequency in a one-step lower range. For example, when a binary code for controlling the VCO 4 is assigned to each frequency offset, the VCO 4 is instructed to lower the oscillation frequency by receiving an input of the binary code designating the one-step lower frequency offset. At the time of activation of the clock generation circuit, the VCO 4 receives an input of a control code providing a frequency offset having a middle value of the frequency offsets provided by control codes from the control unit 7 as described later, in the first embodiment. Then the VCO 4 operates at the range of the oscillation frequency corresponding to the received control code, oscillates at an initial frequency within the range, and outputs the output clock having the initial frequency.
As described above, the VCO 4 can pull in the PLL again even in a locked state of erroneous synchronization because the frequency offset is changed, so that the locked state may be cancelled. Then the VCO 4 can control the output clock so that the frequency divided clock divided at a predetermined odd multiple ratio is equal to the reference clock. Accordingly, the VCO 4 may cause the reference clock and the frequency divided clock to be correctly synchronized.
Next, the frequency divider 5 and the erroneous frequency division detector 6 will be described.
The following describes the frequency divider 5 and the erroneous frequency division detector 6 more specifically with reference to
The ⅕ frequency divider 501 receives an input of the output clock from the VCO 4. The ⅕ frequency divider 501 divides the received output clock by 5 and generates a frequency divided clock having a frequency five times that of the output clock. Then the ⅕ frequency divider 501 outputs the generated frequency divided clock to the selector 53. The ⅕ frequency divider 501 also outputs the generated frequency divided clock to a ¼ frequency divider 601 of the erroneous frequency division detector 6. The ⅕ frequency divider 501 is an example of a “first frequency divider circuit”.
The ¼ frequency divider 502 receives an input of the output clock from the VCO 4. The ¼ frequency divider 502 divides the received output clock by 4 and generates a frequency divided clock having a frequency four times that of the output clock. Then the ¼ frequency divider 502 outputs the generated frequency divided clock to the selector 53. The ¼ frequency divider 502 also outputs the generated frequency divided clock to a ⅕ frequency divider 602 of the erroneous frequency division detector 6. The ¼ frequency divider 502 is an example of a “third frequency divider circuit”.
An operator determines a frequency division ratio to be used and inputs a frequency division ratio selection control signal that gives an instruction to output a frequency divided clock having the determined frequency division ratio via a line 54 to the selector 53. The selector 53 then receives an input of the frequency division ratio selection control signal via the line 54.
The selector 53 receives the frequency divided clock having a frequency five times that of the output clock from the ⅕ frequency divider 501. The selector 53 also receives the frequency divided clock having a frequency four times that of the output clock from the ¼ frequency divider 502.
The selector 53 selects a frequency divided clock having the frequency division ratio designated by the frequency division ratio selection control signal. Then the selector 53 outputs the selected frequency divided clock to the phase frequency director 1. As described above, the frequency divider 5 according to the first embodiment can select any of the ⅕ frequency divided clock and the ¼ frequency divided clock to be used for comparison with the reference clock. Therefore, the clock generation circuit according to the first embodiment can generate a clock having a frequency four times the reference frequency and a clock having a frequency five times the reference frequency. In a configuration in which only the frequency divided clock from the odd-number frequency divider is used for comparison with the reference clock, an erroneous synchronization of the odd-number frequency divider can be detected.
Next, as illustrated in
The ¼ frequency divider 601 receives an input of the frequency divided clock obtained by dividing the output clock by 5 from the ⅕ frequency divider 501. Then the ¼ frequency divider 601 divides the received frequency divided clock by 4 and generates a frequency divided clock. That is, the ¼ frequency divider 601 generates a clock obtained by dividing the output clock by 5, and subsequently by 4 (hereinafter, also referred to as a “5×4 frequency divided clock” in some cases). Then the ¼ frequency divider 601 outputs the generated frequency divided clock to the frequency detector 63. The ¼ frequency divider 601 is an example of a “second frequency divider circuit”.
The ⅕ frequency divider 602 receives an input of the frequency divided clock obtained by dividing the output clock by 4 from the ¼ frequency divider 502. Then the ⅕ frequency divider 602 divides the received frequency divided clock by 5 and generates a frequency divided clock. That is, the ⅕ frequency divider 602 generates a clock obtained by dividing the output clock by 4, and subsequently by 5 (hereinafter, also referred to as a “4×5 frequency divided clock” in some cases). Then the ⅕ frequency divider 602 outputs the generated frequency divided clock to the frequency detector 63. The ⅕ frequency divider 602 is an example of a “fourth frequency divider circuit”.
The frequency detector 63 receives an input of the 5×4 frequency divided clock from the ¼ frequency divider 601. The frequency detector 63 receives an input of the 4×5 frequency divided clock from the ⅕ frequency divider 602. The frequency detector 63 determines whether malfunction is occurring based on the existence of a difference between a frequency of the 5×4 frequency divided clock and a frequency of the 4×5 frequency divided clock. The frequency detector 63 outputs a determination result to the control unit 7. The frequency detector 63 is an example of a “comparator circuit”.
The 5×4 frequency divided clock is input as a D input 631 of the D-FF 630. The 4×5 frequency divided clock is input as a C input 632 of the D-FF 630. The D-FF 630 takes in the wave form of the 4×5 frequency divided clock at a falling edge of the 5×4 frequency divided clock. When the frequency of the 5×4 frequency divided clock is different from the frequency of the 4×5 frequency divided clock, the logic level of an output is inconstantly “High” or “Low”. Then the D-FF 630 outputs a signal of which logic level is inconstant as a Q output 633. When the logic level of the output is constant, that is, the logic level of the output is always detected as any of “High” or “Low”, the D-FF 630 outputs the logic level detected as any of “High” or “Low” as the Q output 633. In the first embodiment, the wave form of the 4×5 frequency divided clock can be taken in at the falling edge of the 5×4 frequency divided clock, and vice versa. That is, the wave form of the 4×5 frequency divided clock may be taken in at the falling edge of the 5×4 frequency divided clock. In this manner, the D-FF 630 can still detect the difference between the frequencies.
The following describes a state of each clock at the time of normal operation and when malfunction occurs with reference to
In
At the time of normal operation, the ¼ frequency divider 502 correctly outputs a clock obtained by dividing the output clock by 4, such as the clock 202. The ⅕ frequency divider 501 correctly outputs a clock obtained by dividing the output clock by 5, such as the clock 203. Therefore, the same frequency is shared by the 4×5 frequency divided clock obtained by dividing the output clock by 4, subsequently by 5, and the 5×4 frequency divided clock obtained by dividing the output clock by 5, subsequently by 4, even though the order of division is different. Therefore, in the normal operation, the respective frequencies are the same as represented by the clock 204 and the clock 205 in
In
In contrast, malfunction occurs when a clock higher than the upper limit of the operating frequency of the ⅕ frequency divider 501 is input to the ⅕ frequency divider 501. Therefore, when malfunction occurs, the ¼ frequency divider 502 correctly outputs a clock obtained by dividing the output clock by 4 as illustrated by the clock 302. In contrast, it is difficult for the ⅕ frequency divider 501 to correctly output a clock obtained by dividing the output clock by 4 as illustrated by the clock 303. Therefore, the frequency of the 4×5 frequency divided clock obtained by dividing the output clock by 4 and subsequently by 5 is different from the frequency of the 5×4 frequency divided clock obtained by dividing the output clock by 5 and subsequently by 4. Thus, when malfunction occurs, the frequencies are different as illustrated by the clock 304 and the clock 305 in
The frequency detector 63 determines from the output of the D-FF 630 whether malfunction is occurring. That is, the frequency detector 63 determines that malfunction is occurring when the logic level of the output from the D-FF 630 is inconstant. The frequency detector 63 determines that malfunction is not occurring when the logic level of the output from the D-FF 630 is constant. Then the frequency detector 63 outputs the determination result to the control unit 7.
The lock detector 8 receives an input of the frequency divided clock and the reference clock output from the frequency divider 5. The lock detector 8 determines an unlocked state when the phases and the frequencies of the frequency divided clock and the reference clock do not match. Then the lock detector 8 notifies the control unit 7 of the unlocked state. The lock detector 8 determines a locked state when the phases and the frequencies of the frequency divided clock and the reference clock match. Then the lock detector 8 notifies the control unit 7 of the locked state.
The counter 71 receives an input of the reference clock. Then the counter 71 outputs a signal in synchronization with the frequency of the reference clock to the lock determination unit 72.
The lock determination unit 72 receives a lock detection result and an input of the frequency divided clock from the lock detector 8. When the lock detection result is the unlocked state, the lock determination unit 72 receives information about whether the frequency divided clock is higher or lower than the reference clock from the lock detector 8. The lock determination unit 72 receives an input of a signal in synchronization with the frequency of the reference clock from the counter 71. In addition, the lock determination unit 72 receives a detection result of erroneous frequency division, that is, the determination result of whether malfunction is occurring, from the erroneous frequency division detector 6.
When the lock detection result received from the lock detector 8 is the locked state, the lock determination unit 72 determines whether the output clock is stabilized by determining whether the frequency divided clock is synchronized with a synchronizing signal input from the counter 71. When determining that the output clock is stabilized, the lock determination unit 72 determines whether malfunction is occurring in the result of erroneous frequency division received from the erroneous frequency division detector 6. When malfunction is occurring, the lock determination unit 72 determines the unlocked state and notifies the initial training control unit 73 of the unlocked state. In this case, the lock determination unit 72 also notifies the initial training control unit 73 that malfunction occurs. In contrast, when malfunction is not occurring in the result of erroneous frequency division, the lock determination unit 72 notifies the initial training control unit 73 of the locked state.
When the lock detection result received from the lock detector 8 is the unlocked state, the lock determination unit 72 notifies the initial training control unit 73 of the unlocked state. In this case, the lock determination unit 72 also notifies the initial training control unit 73 of information about whether the frequency divided clock is higher or lower than the reference clock.
For example, the initial training control unit 73 stores correspondence between the control code that controls the oscillation frequency of the VCO 4 and the frequency offset. The following describes a case where the control code is a 2-bit binary code. For example, the initial training control unit 73 stores codes “00”, “01”, “10”, and “11” corresponding to the frequency offsets descending in this order. At the time of activation of the clock generation circuit, for example, the initial training control unit 73 instructs the VCO control code generation unit 74 to generate a binary code that controls the VCO 4 so as to use a middle value of the frequency offsets among the stored correspondence between the binary codes and the oscillation frequencies. In a case of 2-bit binary code, for example, the initial training control unit 73 instructs the VCO control code generation unit 74 to generate the code “01” at the time of activation of the clock generation circuit.
After the clock generation circuit is activated, the initial training control unit 73 receives an input of a result indicating the locked state or the unlocked state from the lock determination unit 72. In a case of the unlocked state, the initial training control unit 73 receives an input of information about the detection of malfunction or about whether the frequency divided clock is higher or lower than the reference clock from the lock determination unit 72.
When receiving a notification of the unlocked state and information about detection of malfunction from the lock determination unit 72, the initial training control unit 73 instructs the VCO control code generation unit 74 to generate a binary code that lowers the frequency offset by one step. When receiving the notification of the unlocked state and information about whether the frequency divided clock is higher or lower than the reference clock, the initial training control unit 73 determines whether a change in frequency offset is executed. When a change in frequency offset is executed, the initial training control unit 73 instructs the VCO control code generation unit 74 to generate a binary code that changes the frequency offset according to whether the received frequency is high or low. For example, when the frequency divided clock is lower than the reference clock, the initial training control unit 73 instructs the VCO control code generation unit 74 to generate a binary code that raises the frequency offset by one step.
When receiving a notification of the locked state from the lock determination unit 72, the initial training control unit 73 finishes the initial training.
In the first embodiment, the initial training control unit 73 controls the VCO 4 by a control code providing a frequency offset having a middle value of the frequency offsets, and subsequently, adjusts the frequency offset. Alternatively, other methods may be employed. For example, the initial training control unit 73 may control the VCO 4 to have a reference oscillation frequency so as to provide the lowest frequency offset, and thereafter, may control to gradually raise the frequency offset.
In the first embodiment, the initial training control unit 73 controls the oscillation frequency based on whether the frequency of the frequency divided clock is higher or lower than the reference clock detected by the lock detector 8. Alternatively, other methods may be employed. For example, the initial training control unit 73 may calculate a difference in frequencies by receiving only information about the unlocked state, and further by receiving the input of the reference clock and the frequency divided clock. The initial training control unit 73 may receive information about whether the frequency becomes higher or lower from the LPF 3 to control the frequency offset of the VCO 4 on the basis of the information.
Adjustment of the frequency offset will be described with reference to
In
In
A dotted line 408 in
In contrast, when malfunction occurs, the frequency divided clock of which frequency is lower than an actual frequency is output. In this case, as illustrated by a voltage 409 in
The VCO control code generation unit 74 is instructed by the initial training control unit 73 to generate the control code. The VCO control code generation unit 74 generates the control code instructed by the initial training control unit 73. Then the VCO control code generation unit 74 causes the storage unit 75 to store therein the generated control code.
The control unit 7 outputs the control code stored in the storage unit 75 to the VCO 4.
When the frequency divided clock is correctly synchronized with the reference clock and the PLL is locked, the control unit 7 finishes the process of initial training. When the initial training is completed, the erroneous frequency division detector 6 may stop the process of detecting malfunction.
The following describes the process of initial training in the clock generation circuit according to the first embodiment with reference to
The VCO 4 outputs the output clock having an initial frequency (Step S101). The phase frequency director 1 receives a frequency divided clock obtained by dividing the output clock having a free running frequency at a designated frequency division ratio.
The phase frequency director 1 receives the reference clock (Step S102).
The phase frequency director 1 compares the phases and frequencies of the received frequency divided clock and the reference clock (Step S103).
The VCO 4 controls the oscillation frequency according to the comparison result by the phase frequency director 1 (Step S104).
The VCO 4 outputs the output clock having the controlled oscillation frequency (Step S105).
The frequency divider 5 generates a clock obtained by dividing the output clock by 4 at the ¼ frequency divider 502 and generates a clock obtained by dividing the output clock by 5 at the ⅕ frequency divider 501 (Step S106).
The frequency divider 5 also outputs the frequency divided clock having a frequency division ratio designated by the frequency division ratio selection control signal to the phase frequency director 1 (Step S107).
Next, the erroneous frequency division detector 6 receives an input of the clock obtained by dividing the output clock by 4 and the clock obtained by dividing the output clock by 5 from the frequency divider 5. Then the erroneous frequency division detector 6 divides, at the ⅕ frequency divider 602, the clock obtained by dividing the output clock by 4 and generates the 4×5 frequency divided clock. The erroneous frequency division detector 6 divides the clock obtained by dividing the output clock by 5 by the ¼ frequency divider 601 and generates the 5×4 frequency divided clock (Step S108).
The control unit 7 determines whether the locked state is detected (Step S109). When it is determined that the unlocked state is detected (No at Step S109), the control unit 7 determines whether the change of the frequency offset is executed, by using a difference between the frequency divided clock and the reference clock (Step S110). When the control unit 7 determines that the change of the frequency offset is not executed (No at Step S110), the process returns to Step S102. In contrast, when the change of the frequency offset is executed (Yes at Step S110), the control unit 7 changes the frequency offset according to the difference between the frequency divided clock and the reference clock (Step S111), and the process returns to Step S102.
When the locked state is detected (Yes at Step S109), the frequency detector 63 of the erroneous frequency division detector 6 detects a difference between the frequency of the 4×5 frequency divided clock and the frequency of the 5×4 frequency divided clock. Then the frequency detector 63 determines whether malfunction is occurring from a difference between the frequency of the 4×5 frequency divided clock and the frequency of the 5×4 frequency divided clock input from the frequency detector 63 (Step S112). When malfunction is occurring (Yes at Step S112), the control unit 7 performs control to lower the frequency offset of the VCO 4 by one step (Step S113).
In contrast, when malfunction is not occurring (No at Step S112), the control unit 7 finishes the process of initial training.
As described above, the clock generation circuit according to the first embodiment generates the 4×5 frequency divided clock and the 5×4 frequency divided clock by generating a clock obtained by dividing the output clock by an odd number and a clock obtained by dividing the output clock by an even number, and further dividing the generated clocks at the respective frequency division ratios. Then the clock generation circuit according to the first embodiment compares the frequency of the 4×5 frequency divided clock with the frequency of the 5×4 frequency divided clock to detect malfunction of the odd-number frequency divider, and lowers the oscillation frequency of the VCO. Accordingly, even when a clock exceeding the upper limit of the operating frequency is input to the odd-number frequency divider and the output clock is locked in a high state, the clock generation circuit according to the first embodiment can set the clock input to the odd-number frequency divider to a clock below the operating frequency. That is, even when the output clock is locked in a high state, the output clock can be continuously adjusted to be a correct value. Therefore, the clock generation circuit according to the first embodiment can reduce the occurrence of malfunction when pulling in the PLL.
As illustrated in
The frequency divider 64 receives an input of the frequency divided clock obtained by dividing the output clock by 2n+1 from the odd-number frequency divider 51. Then the frequency divider 64 divides the received frequency divided clock by p to generate the frequency divided clock. That is, the frequency divider 64 generates a clock obtained by dividing the output clock by 2n+1 and further by p. Then the frequency divider 64 outputs the generated frequency divided clock to the frequency detector 63. The frequency divider 64 is an example of the “second frequency divider circuit”.
The frequency divider 65 receives an input of the frequency divided clock obtained by dividing the output clock by 2m from the even-number frequency divider 52. Then the frequency divider 65 divides the received frequency divided clock by q to generate the frequency divided clock. That is, the frequency divider 65 generates a clock obtained by dividing the output clock by 2m and further by q. Then the frequency divider 65 outputs the generated frequency divided clock to the frequency detector 63. the frequency divider 65 is an example of the “fourth frequency divider circuit”.
The frequency detector 63 receives an input of the frequency divided clock generated by the frequency divider 64 and an input of the frequency divided clock generated by the frequency divider 65 from the frequency divider 64 and the frequency divider 65, respectively. Then the frequency detector 63 determines whether the frequency of the frequency divided clock generated by the frequency divider 64 is different from the frequency of the frequency divided clock generated by the frequency divider 65. The frequency detector 63 outputs the determination result to the control unit 7.
As described above, p and q are set so that the frequency divided clocks input to the frequency detector from the frequency divider 64 and the frequency divider 65 have the same frequency. Therefore, the frequencies are match in the normal operation, and the frequency detector 63 outputs a signal indicating that there is no difference between the frequency of the frequency divided clock generated by the frequency divider 64 and the frequency of the frequency divided clock generated by the frequency divider 65 to the control unit 7. In contrast, when malfunction occurs, the frequency of the frequency divided clock generated by the frequency divider 64 and the frequency of the frequency divided clock generated by the frequency divider 65 do not match. In this case, the frequency detector 63 outputs a signal indicating that there is a difference between the frequency of the frequency divided clock generated by the frequency divider 64 and the frequency of the frequency divided clock generated by the frequency divider 65 to the control unit 7. Accordingly, also in the second embodiment, malfunction can be detected as in the first embodiment.
As described above, the clock generation circuit according to the second embodiment has an increased degree of freedom for selecting the frequency divider to be arranged in the erroneous frequency division detector 6. This leads to an increased degree of freedom for designing the erroneous frequency division detector 6.
As illustrated in
As illustrated in
The ⅕ frequency divider 503 receives an input of the output clock that is a normal rotation signal (phase difference 0°) from a line 55. The ⅕ frequency divider 503 generates a clock obtained by dividing the output clock at the frequency division ratio of 5. Then the ⅕ frequency divider 503 outputs the generated clock to the selector 53 and the ¼ frequency divider 603 of the erroneous frequency division detector 6.
The ¼ frequency divider 504 receives an input of the output clock that is an inverted signal (phase difference 180°) from a line 56. The ¼ frequency divider 504 generates a clock obtained by dividing the output clock at the frequency division ratio of 4. Then the ¼ frequency divider 504 outputs the generated clock to the selector 53 and the ⅕ frequency divider 604 of the erroneous frequency division detector 6.
The ¼ frequency divider 603 receives an input of a clock obtained by dividing the output clock that is a normal rotation signal at the frequency division ratio of 5 from the ⅕ frequency divider 503. The ¼ frequency divider 603 divides the received clock at the frequency division ratio of 4 to generate a frequency divided clock (hereinafter, also referred to as a “5×4 frequency divided normal rotation clock” in some cases). Then the ¼ frequency divider 603 outputs the generated 5×4 frequency divided normal rotation clock to the frequency detector 63.
The ⅕ frequency divider 604 receives an input of a clock obtained by dividing the output clock that is an inverted signal at the frequency division ratio of 4 from the ¼ frequency divider 504. The ⅕ frequency divider 604 divides the received clock at the frequency division ratio of 5 to generate a frequency divided clock (hereinafter, also referred to as a “4×5 frequency divided inverted clock” in some cases). Then the ⅕ frequency divider 604 outputs the generated 4×5 frequency divided inverted clock to the frequency detector 63.
The frequency detector 63 receives an input of the 5×4 frequency divided normal rotation clock from the ¼ frequency divider 603. The frequency detector 63 also receives an input of the 4×5 frequency divided inverted clock from the ⅕ frequency divider 604. Then the frequency detector 63 determines whether there is a difference in frequencies from the frequency of the 5×4 frequency divided normal rotation clock at a falling position of the 4×5 frequency divided inverted clock. The frequency detector 63 outputs the determination result to the control unit 7.
As described above, the clock generation circuit according to the third embodiment can detect malfunction using the output clocks having different phases. Accordingly, many more types of signals may be used for detecting malfunction, and the degree of freedom for designing a clock circuit may be increased.
According to an aspect of a clock generation circuit and a method for controlling the clock generation circuit disclosed herein, malfunction can be avoided when pulling in a PLL.
All examples and conditional language recited herein are intended for pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
This application is a continuation of International Application No. PCT/JP2011/056855, filed on Mar. 22, 2011, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2011/056855 | Mar 2011 | US |
Child | 14024462 | US |