1. Field of the Invention
The present invention relates to a triangular generator, a SSCG (Spread Spectrum Clock Generator) utilizing the triangular generator, and a related method thereof, and more particularly relates a triangular generator that can adjust a modulation frequency and an amplitude of a triangular wave, a SSCG utilizing the triangular generator, and a related method thereof.
2. Description of the Prior Art
In an electronic system, an SSCG is provided to generate a spread spectrum clock signal.
Besides the PLL circuit 101, the SSCG 100 may further includes a modulation circuit 102. The modulation circuit 102 is utilized to modulate the oscillating signal OS of the PLL circuit 101 to extend the band width of the PLL circuit 101, such that EMI interference can be reduced and the signal quality is increased. A prior art modulation circuit 102 always includes a triangular wave generator 111, a triangular integration modulator 115 and an adder 117. The triangular wave generator 111 is utilized to generate a triangular signal TW. The triangular integration modulator 115 generates a compensation parameter CP according to a difference between the triangular signal TW and the feedback signal FB. Then the adder 117 adjusts the frequency dividing parameter of the frequency divider 109 according to compensation parameter CP, the original frequency dividing parameter N of the frequency divider 109 and the feedback signal FB, to perform frequency adjusting.
However, such a circuit structure includes the disadvantage thereof. Please refer to
Therefore, one objective of the present invention is to provide a triangular wave generator that can unlimitedly adjust the frequency and the amplitude thereof without mutual interference.
One embodiment of the present application provides a triangular wave generator, which comprises: a first frequency divider, for utilizing a first positive integer to frequency-divide a first frequency of a first periodical signal to generate a first frequency divided signal; a second frequency divider, for utilizing a second positive integer to frequency-divide a second frequency of a second periodical signal to generate a second frequency divided signal, wherein the second frequency substantially equals to the first frequency multiplying a third positive integer; and an up/down converter, for generating a triangular wave according to a first frequency-divided frequency of the first frequency divided signal and a second frequency-divided frequency of the second frequency divided signal; wherein a frequency of the triangular wave equals to the first frequency-divided frequency, and an amplitude of the triangular wave is determined by a ratio between the first frequency-divided frequency and the second frequency-divided frequency.
Another embodiment of the present invention discloses a spread spectrum clock generator, which comprises: a PLL circuit, for generating a first periodical signal and a second periodical signal; a modulation signal generator, for generating a modulation signal according to a triangular wave, comprising: a triangular wave generator, for generating a frequency of the triangular wave according to a first frequency of the first periodical signal, and for generating an amplitude of the triangular wave according to a second frequency of the second periodical signal and the first frequency.
Another embodiment of the present invention discloses a triangular wave generating method, comprising: utilizing a first positive integer to frequency-divide a first frequency of a first periodical signal to generate a first frequency divided signal; utilizing a second positive integer to frequency-divide a second frequency of a second periodical signal to generate a second frequency divided signal, wherein the second frequency substantially equals to the first frequency multiplying a third positive integer; and generating a triangular wave, via a triangular wave generator, according to a first frequency-divided frequency of the first frequency divided signal and a second frequency-divided frequency of the second frequency divided signal; wherein a frequency of the triangular wave equals to the first frequency-divided frequency, and an amplitude of the triangular wave is determined by a ratio between the first frequency-divided frequency and the second frequency-divided frequency.
Persons skilled in the art can easily acquire related method according to above mentioned embodiment, thus it is omitted for brevity.
According to above mentioned embodiment, the frequency and the amplitude of the triangular wave can be unlimitedly adjusted without interference for each other, thereby enables the modulation circuit utilizing the triangular wave generator to adjust the modulation frequency and modulation amplitude unlimitedly and independently.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The triangular wave generating operation of the up/down counter 309 is explained via
In more detail, the counting frequency of the up/down counter 309 can be determined by Equation (1).
(OSF/N)/L=MF Equation (1)
Wherein OSF is a frequency of the output signal OS, N is a third frequency dividing parameter of the third frequency divider 321 in for the PLL circuit 311, L is a first frequency dividing parameter of the first frequency divider 305, and MF is a counting frequency of the up/down counter 309.
Also, two extreme values of the up/down counter 309 (upper bound HB and lower bound LB) can be determined by Equation (2.
((OSF/M)/((OSF/N)/L))/2=MA=HB−LB Equation (2)
In one embodiment, the upper bound is determined via giving a parameter to the up/down counter 309, thus an initial value can be given to determine the upper bound. If frequency OSF of the oscillating signal OS, and the third frequency-dividing parameter N of the third frequency divider 327 are fixed, the triangular wave amplitude (HB−LB) can be determined via varying the first frequency dividing parameter L and the second frequency dividing parameter M (i.e. varying a ratio between the first frequency dividing parameter and the second frequency dividing parameter). For example, if the oscillating signal OS is supposed to have a 1 GHz frequency, the feedback signal FB is supposed to have a 10 MHz frequency, the first frequency dividing parameter L is supposed to be 332, the third frequency-dividing parameter N is supposed to be 100, and the upper bound HB is supposed to be 470, then the modulation frequency is 10 MHz/332=30.12 KHz, the lower bound LB=HB−(16600/M). If M is set to 100, then the lower bound LB=304 and the modulation amplitude equals to 470−304=166. If M is set to 50, then the lower bound LB=138 and the modulation amplitude equals to 470−138=332. Accordingly, without varying the second modulation parameter M, the modulation amplitude can be changed via changing the second frequency dividing parameter M. On the contrary, if the second frequency dividing parameter M is fixed and vary the first frequency dividing parameter L, the modulation frequency can be varied without varying the modulation amplitude. As described above, the up/down counter 309 will transmit the triangular wave TW to a triangular integration modulator 315 after generating the triangular wave TW, and then the triangular integration modulator 315 will send a compensation parameter CP to the adder 317. The following operation is described in related description of
It should be noted that the above-mentioned circuit structure is only for example and does not mean to limit the scope of the present application. The triangular wave generator according to the embodiment of the present application is not limited to be utilized in a modulation circuit. Also, the modulation circuit utilizing the triangular wave generator according to the embodiment of the present application is not limited to a PLL.
According to the embodiment shown in
Step 501
Utilize a first positive integer to frequency-divide a first frequency of a first periodical signal (for example, the feedback signal FB of
Step 503
Utilize a second positive integer to frequency-divide a second frequency of a second periodical signal (for example, the oscillating signal OS of
Step 505
Generate a triangular wave, via a triangular wave generator, according to a first frequency-divided frequency of the first frequency divided signal and a second frequency-divided frequency of the second frequency divided signal.
According to above mentioned embodiment, the frequency and the amplitude of the triangular wave can be unlimitedly and independently adjusted without interference for each other, thereby enables the modulation circuit utilizing the triangular wave generator to adjust the modulation frequency and modulation amplitude unlimitedly with higher flexibility.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.