摘要 |
<p>A method and an apparatus for adjusting frequencies are provided, which relate to the field of digital products to resolve the technical problem in the prior art that the clock source frequencies can not be dynamically adjusted. The method includes: a frequency synthesis module outputs a first clock of the last sampling cycle, a control module receives a reference clock of the last sampling cycle and the first clock of the last sampling cycle and outputs the time length of a adjustment cycle generated according to the reference clock and the first clock; a phase-locked loop module receives a source clock of the current sampling cycle, and outputs a second clock of the current sampling cycle according to a predetermined frequency-doubling coefficient, the second clock contains a predetermined total number of shunts and there are predetermined phase differences among all the shunts; the frequency synthesis module receives the second clock, and selects each shunt of the second clock in turn, carries out frequency synthesis according to the time length of the adjustment cycle and a predetermined frequency synthesis coefficient, outputs the first clock of the current adjustment cycle. The method and the apparatus can dynamically adjust the frequencies of the clock source.</p> |