Programmable frequency divider and application thereof in charge pump phase-locked loop
By using a dual-mode frequency divider and an automatic detection module in the charge pump phase-locked loop, automatic switching of the frequency division ratio and expansion of the frequency division range are realized, which solves the shortcomings of traditional frequency dividers in frequency flexibility and adaptability. The maximum operating frequency and frequency division range width are increased, and the occupied area is reduced.
Patent Information
- Application Number
- CN202410928144.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-27
AI Technical Summary
The fixed frequency division ratio of the frequency divider in the traditional charge pump phase-locked loop limits its flexibility and adaptability in different application scenarios. Especially in modern wireless communication systems, the signal frequency range is wide and changes rapidly, and a device that can A frequency divider that flexibly adapts to different frequency requirements.
Adopting the basic architecture of a dual-mode frequency divider, and through the automatic judgment circuit and counter multiplexing of the frequency division ratio, a high-speed and wide frequency division ratio dual-mode programmable frequency divider is realized, including a 6-bit cycle end detection module, a 2-bit The cycle end detection module, data selector and dual-mode prescaler realize automatic switching of the frequency division ratio and expansion of the frequency division range through the automatic detection module and working mode control logic.
The frequency division range of the dual-mode swallowing pulse programmable frequency divider is expanded, the maximum operating frequency and the width of the frequency division range are increased, while the occupied area of the frequency divider is reduced, and efficient frequency adaptability is achieved.
Smart Images

Figure CN118713660A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of frequency dividers, and in particular relates to a programmable frequency divider and an application in a charge pump phase-locked loop. Background Art
[0002] In electronic communications, signal processing and wireless communication technologies, charge pump phase-locked loop (CPPLL) is an important frequency synthesis and synchronization technology with wide applications. Its core function is to achieve frequency and phase locking of the signal to ensure the stability and accuracy of the output signal. However, the frequency divider in the traditional charge pump phase-locked loop usually adopts a fixed frequency division ratio, which to some extent limits its flexibility and adaptability in different application scenarios.
[0003] With the continuous development of electronic information technology, the performance requirements for charge pump phase-locked loops are getting higher and higher. Especially in modern wireless communication systems, the frequency range of signals is wide and changes rapidly, and a frequency divider that can flexibly adapt to different frequency requirements is required. Therefore, the development of a programmable frequency divider for charge pump phase-locked loops has become a hot topic and urgent need in current research.
[0004] Existing programmable dividers usually have three structures: general programmable dividers based on counters, programmable dividers based on cascaded 2 / 3 dividers, and dual-mode swallow pulse programmable dividers. In the case of the same number of bits, the programmable divider based on counters has a simple structure, but the maximum operating frequency is low; the programmable divider based on cascaded 2 / 3 dividers has a large frequency coverage range and a regular structure, but the circuit unit structure of the 2 / 3 divider is complex and occupies a large circuit area; the dual-mode swallow pulse programmable divider can achieve a higher operating frequency and lower power consumption due to the presence of a dual-mode pre-divider, but the minimum division ratio of the dual-mode divider is limited by its circuit architecture, and its division range is narrower than the other two programmable dividers. Summary of the invention
[0005] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a programmable divider and its application in a charge pump phase-locked loop, adopt the basic architecture of a dual-mode divider, expand the frequency division range of the dual-mode divider, and realize a high-speed and wide-division ratio dual-mode programmable divider through the multiplexing of the automatic division ratio judgment circuit and the counter.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] A programmable frequency divider includes a 6-bit cycle end detection module, a 2-bit cycle end detection module, a data selector (MUX) and a dual-mode pre-divider;
[0008] The input clock signal is input to the dual-mode prescaler and the input terminal A of the data selector at the same time. The dual-mode prescaler prescales the input clock to obtain a prescaled clock, which is input to the input terminal B of the data selector.
[0009] The data selector selects according to the output signal SEL of the division ratio automatic detection module (Division Ratio Automatic Detection, DRAD), inputs the clock signal into the 6-bit adder counter, counts the clock edges in the 6-bit adder counter to obtain the counting result, and inputs the 6-bit cycle end detection module, the 2-bit cycle end detection module and the DRAD module at the same time; the 6-bit cycle end detection module outputs the LOAD signal to the 6-bit adder counter and the dual-mode prescaler working mode control module (Prescalar Mode Control Logic, PMCL), and outputs the divided clock signal;
[0010] The LOAD signal controls the reset of the 6-bit adder counter and PMCL module.
[0011] The 2-bit end-of-cycle detection module outputs the EOC2bOUT signal to the PMCL module, and the DRAD module outputs the SEL signal to the control end of the data selector and the end-of-cycle detection control logic (EOCCL), and outputs the RESET signal to the reset end of the 6-bit adder counter.
[0012] The output signal MODE of the PMCL module is controlled by the EOC2bOUT signal to control the division ratio of the dual-mode prescaler.
[0013] The SEL signal controls the channel selection of the data selector and controls the output signals EOC2b<1:0> and EOC6b<5:0> of the EOCCL module;
[0014] When the DRAD module detects that the division ratio is greater than 6, the reset signal RESET resets the 6-bit adder counter.
[0015] Further, the 6-bit cycle end detection module (6-bit EOC) is used to detect the count value of the 6-bit adder counter, and when the count value of the 6-bit adder counter reaches the binary value of EOC6b<5:0>, it outputs a LOAD signal to the 6-bit adder counter and the PMCL module, resets the 6-bit adder counter and the prescaler, and a counting cycle ends;
[0016] The 2-bit end-of-cycle detection module (2-bit EOC) is used to detect the count value of the 6-bit adder counter and output a cycle end signal when the count value of the 6-bit adder counter reaches the binary value of EOC2b<1:0>, and control the PMCL module to change the output signal MODE and the prescaler division ratio;
[0017] The EOCCL module is a cycle end detection control logic, which is used to configure the configuration signal of the cycle end detection module;
[0018] The EOCCL module is responsible for determining the cycle end flag signals EOC2b<1:0> and EOC6b<5:0> of 6-bit EOC and 2-bit EOC according to the input division ratio and working mode. The value of the cycle end flag is different in different working modes.
[0019] (1) Universal programmable division mode (UM): In this working mode, the divider performs 2 to 5 frequency division. The divider works in this mode when it starts working. At this time, the lower 3 bits of the input division ratio are valid. The cycle end detection logic control module directly uses the lower 3 bits of the input division ratio N<2:0> as the lower 3 bits EOC6b<2:0> of the 6-bit EOC. The clock signal is directly input to the adder counter. At this time, only the lower 3 bits of the counter are valid. The working state is similar to that of a 3-bit adder counter. The counting result is input to the mode switching detection module. The adder counter and the 6-bit EOC module together constitute a traditional counter-based 3-bit programmable divider, completing 2 to 6 frequency division.
[0020] (2) Dual-modulus programmable division mode (DM): In this working mode, the divider performs a division ratio of 6 to 255. As the counter output value increases, when the counter output increases to 6, the DRAD module detects that the division ratio is greater than 6, and the output signal SEL flips, controlling the data selector to input the output of the 3 / 4 dual-modulus pre-divider into the 6-bit adder counter. At the same time, the reset signal RESET resets the counter, and the EOCCL module reconfigures the cycle end flag of the cycle end detection module. Its working mode is similar to that of a traditional dual-modulus programmable divider.
[0021] There are three different configuration methods depending on the value of the input division ratio N<7:0> input to the programmable divider:
[0022] 1) The binary value of the division ratio is less than 6: EOC6b<5:0>=N<5:0>-1
[0023] 2) The binary value of the division ratio is greater than 6 and is a multiple of 4: EOC6b<5:0>=N<7:2>-1; EOC2b<1:0>=4-N<1:0>
[0024] 3) The binary value of the division ratio is greater than 6 and is not a multiple of 4: EOC6b<5:0>=N<7:2>; EOC2b<1:0>=4-N<1:0>
[0025] The PMCL module is a dual-mode pre-divider working mode control module, which is used to control the frequency division ratio of the dual-mode pre-divider; in each working cycle, the dual-mode pre-divider first works in the 3-frequency division mode, and in the next clock cycle after the output signal EOC2bOUT of 2-bitEOC flips, the dual-mode pre-divider switches to the 4-frequency division working mode, until a complete working cycle ends, the LOAD signal flips, and the MODE signal is reset, so that the dual-mode pre-divider in each working cycle first works in the 3-frequency division mode. If the output QFD of the quadruple frequency detection module is high, the dual-mode pre-divider is controlled to always work in the 4-frequency division mode.
[0026] The DRAD module is a frequency division ratio automatic detection module, which is used to control the working mode of the frequency divider according to the current frequency division ratio. When the frequency division ratio is less than 6, it works in the general programmable frequency division mode, and when the frequency division ratio is greater than or equal to the set frequency division ratio, the frequency divider works in the dual-mode programmable frequency division mode.
[0027] This module consists of a mode switching detection module, a D flip-flop, and a logic gate. Before each frequency divider starts working, the counter is reset, and the signal SEL becomes low. SEL controls the data selector to select the input clock output to the counter, and controls the cycle end detection control logic to configure the 6-bit-EOC input signal EOC6b<5:0>. The count value of the adder counter is input into the mode switching detection module. When the adder counter output exceeds 6, the SEL signal flips to a low level, resets the counter, and the cycle end detection control logic reconfigures EOC6b<5:0>, and the frequency divider switches to the dual-mode programmable frequency division mode.
[0028] The dual-mode prescaler has two input signals, namely the input clock signal f in and pre-scaling ratio configuration signal MODE; MODE signal controls the actual division ratio of the dual-mode pre-scaling device. When the MODE signal is low, the dual-mode pre-scaling device operates in the 3-division mode, and when the MODE signal is high, the dual-mode pre-scaling device operates in the 4-division mode.
[0029] The cycle end detection control module includes a 6-bit cycle end detection module and a 2-bit cycle end detection module;
[0030] The 2-bit cycle end detection module is used to generate the cycle end flag EOC2b<1:0> of the 2-bit cycle end detection module, and the 6-bit cycle end detection module is used to generate the cycle end flag EOC6b<1:0> of the 6-bit cycle end detection module.
[0031] The input division ratio N<7:0> is input to the EOCCL module. The EOCCL module outputs the configuration signals EOC2b<1:0> and EOC6b<5:0> of the 2-bit cycle end detection module and the 6-bit cycle end detection module, and outputs the QFD signal to the PMCL module.
[0032] The PMCL module outputs a control signal MODE of the dual-mode prescaler to the dual-mode prescaler.
[0033] The 2-bit cycle end detection module includes a subtracter and a quadruple frequency detection module;
[0034] The subtractor is used to perform logic subtraction of 1 on the input frequency division ratio N<1:0> to obtain EOC2b<1:0>;
[0035] The quadruple frequency detection module is used to determine whether the input frequency division ratio is a multiple of 4 according to the value of N<1:0>. If N<1:0>=2'b00, it is considered that the input frequency division ratio is a multiple of 4, and the detection result QFD is output;
[0036] The lower two bits N<1:0> of the input frequency division ratio N<7:0> are simultaneously input into the subtractor and the quadruple frequency detection module.
[0037] The six-bit cycle end detection configuration module includes a subtractor, a two-to-one data selector and a buffer;
[0038] The subtractor is used to logically subtract 1 from the input frequency division ratio N<7:2>;
[0039] The two-to-one data selector is used to output EOC6b<1:0> according to the values of the QFD signal and the SEL signal;
[0040] Buffers are used to increase the drive capability of individual signals.
[0041] Among them, the input end of buffer I1 is connected to the lower six bits N<5:0> of the division ratio configuration signal, and buffer I1 is connected to the input end of data selector I2; the input end of buffer I3 is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the input end of the subtractor is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the data selector I2 is connected to the control signal SEL, and the output end is connected to EOC6b<5:0>; the data selector I4 is connected to the control signal QFD, and the output end is connected to the input end of data selector I2.
[0042] The dual-mode prescaler operating mode control module includes a D flip-flop, a NAND gate and a NOR gate;
[0043] The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic;
[0044] The NAND gate is used to perform logical AND operations on signals;
[0045] The NOR gate is used to perform logical OR operations on signals;
[0046] NAND Gate I 11 Input terminal A is connected to the output terminal Q of the D flip-flop, input terminal B is connected to the input signal LOAD, and NAND gate I 22 Input terminal A is connected to signal LOAD, input terminal B is connected to EOC2bOUT, and NAND gate I 33 Input terminal A is connected to NAND gate I 11 Output terminal, input terminal B is connected to NAND gate I 22 Output terminal, D flip-flop input terminal D connected to NAND gate I 33 The output terminal, Clk, is connected to the dual-mode pre-divider output clock, Reset is connected to the divider reset signal RST, and the output terminal Q is connected to the NAND gate I 11 Input terminal A, connected to NOR gate I 44 Input terminal A, NOR gate I 44 Input terminal B is connected to signal QFD, and output terminal signal is connected to MODE.
[0047] The frequency division ratio automatic detection module includes a mode switching detection module, a D flip-flop, a NAND gate, an AND gate and a NOT gate;
[0048] The mode switching detection module is used to detect the output of the 6-bit adder counter and control the working mode of the entire programmable divider;
[0049] The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic;
[0050] The NAND gate is used to perform logical AND operations on signals;
[0051] AND gates are used to perform logical AND operations on signals;
[0052] NOT gate is used to perform logical NOT operation on a signal.
[0053] Counter output value input mode switching detection module, D flip-flop I 111 The input terminal D is connected to a fixed high level, the Clk terminal is connected to the output terminal of the mode switching detection module, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the D trigger I 222 Input terminal D, connected to NAND gate I 444 Input A, D flip-flop I 222 The Clk terminal is connected to the dual-mode prescaler output clock, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the inverter I 333 Input, inverter I 333 The output terminal is connected to the NAND gate I 444 Input terminal B, NAND gate I 444 The output terminal is connected to the AND gate I 555 Input A, AND gate I 555 Input terminal B is connected to the divider reset signal RST.
[0054] The programmable frequency divider is used in a charge pump phase locked loop.
[0055] Beneficial effects of the present invention:
[0056] The present invention starts from a dual-mode swallowing pulse programmable divider, reuses the counter therein as a general programmable divider, and then automatically switches between the general programmable divider mode and the dual-mode programmable divider mode by detecting the divider ratio, thereby expanding the divider range of the dual-mode swallowing pulse programmable divider. At the same time, the swallowing counter and the pulse counter are combined together to reduce the area occupied by the divider. In order to increase the maximum operating speed of the divider, an adder controlled by a synchronous clock is used, and many control logics are changed to synchronous logic. Therefore, this type of programmable divider has a wide divider range, a high maximum operating frequency, and a small occupied area. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 This is a block diagram of a traditional dual-mode swallowing pulse programmable divider.
[0058] Figure 2 This is a structural diagram of a novel programmable frequency divider provided by an embodiment of the present invention.
[0059] Figure 3 It is a structural diagram of a two-bit cycle end detection configuration module of a novel programmable frequency divider provided by an embodiment of the present invention.
[0060] Figure 4It is a structural diagram of a six-bit cycle end detection configuration module of a novel programmable frequency divider provided by an embodiment of the present invention.
[0061] Figure 5 It is a structural diagram of a dual-mode pre-divider control module of a novel programmable frequency divider provided by an embodiment of the present invention.
[0062] Figure 6 The present invention provides a novel automatic detection module structure diagram of a frequency division ratio of a programmable frequency divider. DETAILED DESCRIPTION
[0063] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0064] The conventional dual-mode swallowing pulse programmable divider has a minimum frequency division ratio, which limits its frequency division range, such as Figure 1 shown.
[0065] The embodiment of the present invention provides a novel dual-mode programmable frequency divider, the structure of which is as follows: Figure 2 As shown, specifically including:
[0066] 3 / 4 dual-mode prescaler: used to prescale the input clock.
[0067] 6-bit adder counter: used to count the clock, using a synchronous clock counter structure.
[0068] 6-bit End of Cycle Detection Module (6-bit EOC): used to detect the counter count value and output a cycle end signal when the count value reaches a preset value.
[0069] 2-bit end-of-cycle detection module (2-bit EOC): used to detect the counter count value and output a cycle end signal when the count value reaches the preset value.
[0070] End of cycle control logic (EOCCL): configuration signal used to configure the end of cycle detection module.
[0071] Dual-mode prescaler working mode control module (Prescalar Mode Control Logic, PMCL): used to control the division ratio of the dual-mode prescaler.
[0072] Division Ratio Automatic Detection (DRAD) module: used to control the working mode of the divider according to the current division ratio.
[0073] The frequency divider proposed in the present invention can work in two working modes, namely universal programmable division mode (UM) and dual-modulus programmable division mode (DM), and the switching of the working modes is controlled by the DARD module. The working principles of the frequency divider in the two modes are briefly introduced below.
[0074] The EOCCL module is responsible for determining the cycle end flag signals EOC2b<1:0> and EOC6b<5:0> of 6-bit EOC and 2-bit EOC according to the input division ratio and working mode. The value of the cycle end flag is different in different working modes.
[0075] (1) Universal programmable division mode (UM): In this working mode, the divider performs 2 to 5 frequency division. The divider works in this mode when it starts working. At this time, the lower 3 bits of the input division ratio are valid. The cycle end detection logic control module directly uses the lower 3 bits of the input division ratio N<2:0> as the lower 3 bits EOC6b<2:0> of the 6-bit EOC. The clock signal is directly input to the adder counter. At this time, only the lower 3 bits of the counter are valid. The working state is similar to that of a 3-bit adder counter. The counting result is input to the mode switching detection module. The adder counter and the 6-bit EOC module together constitute a traditional counter-based 3-bit programmable divider, completing 2 to 6 frequency division.
[0076] (2) Dual-modulus programmable division mode (DM): In this working mode, the divider performs a division ratio of 6 to 255. As the counter output value increases, when the counter output increases to 6, the DRAD module detects that the division ratio is greater than 6, and the output signal SEL flips, controlling the data selector to input the output of the 3 / 4 dual-modulus pre-divider into the 6-bit adder counter. At the same time, the reset signal RESET resets the counter, and the EOCCL module reconfigures the cycle end flag of the cycle end detection module. Its working mode is similar to that of a traditional dual-modulus programmable divider.
[0077] In one embodiment of the present invention, the cycle end detection control module is responsible for configuring the EOC6b<5:0> and EOC2b<1:0> circuits according to different working modes. Figure 3As shown, the 2-bitEOC configuration module consists of a quadruple frequency detection module and a subtractor. The quadruple frequency detection module (QFD) is responsible for determining whether the frequency division ratio is a multiple of 4, outputting the determination result QFD, and performing logic subtraction on the lower two bits of the frequency division ratio. The 6-bitEOC configuration module is responsible for configuring EOC6b<5:0> according to SEL and QFD.
[0078] There are three different configuration methods according to the input value of the division ratio:
[0079] 1) The division ratio is less than 6: EOC6b<5:0>=N<5:0>-1
[0080] In this case, the divider is equivalent to a 3-bit general purpose programmable divider.
[0081] 2) The division ratio is greater than 6 and is a multiple of 4: EOC6b<5:0>=N<7:2>-1; EOC2b<1:0>=4-N<1:0>
[0082] In this case, the dual-modulus prescaler always works in the 4-division mode, the divider is equivalent to a 6-bit universal programmable divider, and the cycle end detection signal is the upper 6 bits of the input division ratio.
[0083] 3) The division ratio is greater than 6 and not a multiple of 4: EOC6b<5:0>=N<7:2>; EOC2b<1:0>=4-N<1:0>
[0084] In this case, the division ratio of the dual-modulus prescaler is not 4 in each counting cycle of the counter, but 3 in N<1:0> cycles and 4 in 4-N<1:0> cycles, so EOC6b<5:0> does not need to perform logical subtraction of N<7:2>.
[0085] like Figure 4 As shown: the six-bit cycle end detection configuration module includes a subtractor, a two-to-one data selector and a buffer;
[0086] The subtractor is used to logically subtract 1 from the input frequency division ratio N<7:2>;
[0087] The two-to-one data selector is used to output EOC6b<1:0> according to the values of the QFD signal and the SEL signal;
[0088] Buffers are used to increase the drive capability of individual signals.
[0089] Among them, the input end of buffer I1 is connected to the lower six bits N<5:0> of the division ratio configuration signal, and buffer I1 is connected to the input end of data selector I2; the input end of buffer I3 is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the input end of the subtractor is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the data selector I2 is connected to the control signal SEL, and the output end is connected to EOC6b<5:0>; the data selector I4 is connected to the control signal QFD, and the output end is connected to the input end of data selector I2.
[0090] In one embodiment of the present invention, the dual-mode prescaler operating mode control module is responsible for controlling the frequency division ratio of the dual-mode prescaler, such as Figure 5 As shown. In each working cycle, the dual-mode pre-divider first works in the 3-frequency division mode. In the next clock cycle after the output signal EOC2bOUT of the 2-bitEOC flips, the dual-mode pre-divider switches to the 4-frequency division working mode. Until a complete working cycle ends, the LOAD signal flips and resets the MODE signal, so that the dual-mode pre-divider in each working cycle first works in the 3-frequency division mode. If the quadruple frequency detection output QFD is a high level, the dual-mode pre-divider is controlled to always work in the 4-frequency division mode. The dual-mode pre-divider working mode control module includes a D flip-flop, a NAND gate and a NOR gate;
[0091] The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic;
[0092] The NAND gate is used to perform logical AND operations on signals;
[0093] The NOR gate is used to perform logical OR operations on signals;
[0094] NAND Gate I 11 Input terminal A is connected to the output terminal Q of the D flip-flop, input terminal B is connected to the input signal LOAD, and NAND gate I 22 Input terminal A is connected to signal LOAD, input terminal B is connected to EOC2bOUT, and NAND gate I 33 Input terminal A is connected to NAND gate I 11 Output terminal, input terminal B is connected to NAND gate I 22 Output terminal, D flip-flop input terminal D connected to NAND gate I 33 The output terminal, Clk, is connected to the dual-mode pre-divider output clock, Reset is connected to the divider reset signal RST, and the output terminal Q is connected to the NAND gate I 11 Input terminal A, connected to NOR gate I 44 Input terminal A, NOR gate I 44 Input terminal B is connected to signal QFD, and output terminal signal is connected to MODE.
[0095] In one embodiment of the present invention, Figure 6 As shown, the frequency division ratio automatic detection module includes a mode switching detection module, a D flip-flop, a NAND gate, an AND gate and a NOT gate;
[0096] The mode switching detection module is used to detect the output of the 6-bit adder counter and control the working mode of the entire programmable divider;
[0097] The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic;
[0098] The NAND gate is used to perform logical AND operations on signals;
[0099] AND gates are used to perform logical AND operations on signals;
[0100] NOT gate is used to perform logical NOT operation on a signal.
[0101] Counter output value input mode switching detection module, D flip-flop I 111 The input terminal D is connected to a fixed high level, the Clk terminal is connected to the output terminal of the mode switching detection module, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the D trigger I 222 Input terminal D, connected to NAND gate I 444 Input A, D flip-flop I 222 The Clk terminal is connected to the dual-mode prescaler output clock, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the inverter I 333 Input, inverter I 333 The output terminal is connected to the NAND gate I 444 Input terminal B, NAND gate I 444 The output terminal is connected to the AND gate I 555 Input A, AND gate I 555 Input terminal B is connected to the divider reset signal RST.
[0102] The frequency division ratio automatic detection module is used to control the working mode of the frequency divider. When the frequency division ratio is less than the set frequency division ratio, it works in the general programmable frequency division mode. When the frequency division ratio is greater than or equal to the set frequency division ratio, the frequency divider works in the dual-mode programmable frequency division mode. The module consists of a mode switching detection module, a D flip-flop and a logic gate. Before the frequency divider starts working each time, the counter is reset, and the signal SEL becomes a low level. SEL controls the data selector to select the input clock output to the counter, and controls the cycle end detection control logic to configure the 6bit-EOC input signal EOC6b<5:0>. The count value of the adder counter is input into the mode switching detection module. When the adder counter output exceeds 6, the SEL signal flips to a low level, resets the counter, and the cycle end detection control logic reconfigures EOC6b<5:0>, and the frequency divider switches to the dual-mode programmable frequency division mode.
[0103] In the present invention, although the present invention is described in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other changes of the disclosed embodiments by viewing the specification and its drawings. In the specification, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. Certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0104] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A programmable frequency divider, characterized in that: It includes a 6-bit cycle end detection module, a 2-bit cycle end detection module, a data selector (MUX), and a dual-mode prescaler; The input clock signal is input to the dual-mode prescaler and the input terminal A of the data selector at the same time. The dual-mode prescaler prescales the input clock to obtain a prescaled clock, which is input to the input terminal B of the data selector. The data selector selects according to the output signal SEL of the frequency division ratio automatic detection module, inputs the clock signal into the 6-bit adder counter, counts the clock edges in the 6-bit adder counter to obtain the counting result, and inputs the 6-bit cycle end detection module, the 2-bit cycle end detection module and the DRAD module at the same time; the 6-bit cycle end detection module outputs the LOAD signal to the 6-bit adder counter and the dual-mode prescaler working mode control module, and outputs the divided clock signal; the reset of the 6-bit adder counter and the PMCL module is controlled by the LOAD signal; The 2-bit cycle end detection module outputs the EOC2bOUT signal to the PMCL module, and the DRAD module outputs the SEL signal to the control end of the data selector and the EOCCL module, and outputs the RESET signal to the reset end of the 6-bit adder counter; The output signal MODE of the PMCL module is controlled by the EOC2bOUT signal to control the division ratio of the dual-mode prescaler; The SEL signal controls the channel selection of the data selector and controls the output signals EOC2b<1:0> and EOC6b<5:0> of the EOCCL module; When the DRAD module detects that the division ratio is greater than 6, the reset signal RESET resets the 6-bit adder counter.
2. A programmable frequency divider according to claim 1, characterized in that: The 6-bit cycle end detection module (6-bit EOC) is used to detect the count value of the 6-bit adder counter, and when the count value of the 6-bit adder counter reaches the binary value of EOC6b<5:0>, it outputs a LOAD signal to the 6-bit adder counter and the PMCL module, resets the 6-bit adder counter and the prescaler, and a counting cycle ends; The 2-bit end-of-cycle detection module (2-bit EOC) is used to detect the count value of the 6-bit adder counter and output a cycle end signal when the count value of the 6-bit adder counter reaches the binary value of EOC2b<1:0>, and control the PMCL module to change the output signal MODE and the prescaler division ratio; The EOCCL module is a cycle end detection control logic, which is used to configure the configuration signal of the cycle end detection module; The PMCL module is a dual-mode pre-divider working mode control module, which is used to control the frequency division ratio of the dual-mode pre-divider; The DRAD module is a frequency division ratio automatic detection module, which is used to control the working mode of the frequency divider according to the current frequency division ratio.
3. A programmable frequency divider according to claim 1, characterized in that: The dual-mode prescaler has two input signals, namely the input clock signal f in And the pre-division ratio configuration signal MODE; the MODE signal controls the actual division ratio of the dual-mode pre-division device; when the MODE signal is low, the dual-mode pre-division device operates in a 3-division mode, and when the MODE signal is high, the dual-mode pre-division device operates in a 4-division mode.
4. A programmable frequency divider according to claim 3, characterized in that: The cycle end detection control module includes a 6-bit cycle end detection module and a 2-bit cycle end detection module; The 2-bit cycle end detection module is used to generate the cycle end flag EOC2b<1:0> of the 2-bit cycle end detection module, and the 6-bit cycle end detection module is used to generate the cycle end flag EOC6b<1:0> of the 6-bit cycle end detection module; The input division ratio N<7:0> is input to the EOCCL module. The EOCCL module outputs the configuration signals EOC2b<1:0> and EOC6b<5:0> of the 2-bit cycle end detection module and the 6-bit cycle end detection module, and outputs the QFD signal to the PMCL module.
5. A programmable frequency divider according to claim 1, characterized in that: The PMCL module outputs a control signal MODE of the dual-mode prescaler to the dual-mode prescaler.
6. The programmable frequency divider according to claim 1, characterized in that: The 2-bit cycle end detection module includes a subtracter and a quadruple frequency detection module; The subtractor is used to perform logic subtraction of 1 on the input frequency division ratio N<1:0> to obtain EOC2b<1:0>; The quadruple frequency detection module is used to determine whether the input frequency division ratio is a multiple of 4 according to the value of N<1:0>. If N<1:0>=2'b00, it is considered that the input frequency division ratio is a multiple of 4, and the detection result QFD is output; The lower two bits N<1:0> of the input frequency division ratio N<7:0> are simultaneously input into the subtractor and the quadruple frequency detection module.
7. The programmable frequency divider according to claim 1, characterized in that: The six-bit cycle end detection configuration module includes a subtractor, a two-to-one data selector and a buffer; The subtractor is used to logically subtract 1 from the input frequency division ratio N<7:2>; The two-to-one data selector is used to output EOC6b<1:0> according to the values of the QFD signal and the SEL signal; Among them, the input end of buffer I1 is connected to the lower six bits N<5:0> of the division ratio configuration signal, and buffer I1 is connected to the input end of data selector I2; the input end of buffer I3 is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the input end of the subtractor is connected to the upper six bits N<7:2> of the division ratio configuration signal, and the output end is connected to the input end of data selector I4; the data selector I2 is connected to the control signal SEL, and the output end is connected to EOC6b<5:0>; the data selector I4 is connected to the control signal QFD, and the output end is connected to the input end of data selector I2.
8. The programmable frequency divider according to claim 1, characterized in that: The dual-mode prescaler operating mode control module includes a D flip-flop, a NAND gate and a NOR gate; The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic; The NAND gate is used to perform logical AND operations on signals; The NOR gate is used to perform logical NOR operations on signals; NAND Gate I 11 Input terminal A is connected to the output terminal Q of the D flip-flop, input terminal B is connected to the input signal LOAD, and NAND gate I 22 Input terminal A is connected to signal LOAD, input terminal B is connected to EOC2bOUT, and NAND gate I 33 Input terminal A is connected to NAND gate I 11 Output terminal, input terminal B is connected to NAND gate I 22 Output terminal, D flip-flop input terminal D connected to NAND gate I 33 The output terminal, Clk, is connected to the dual-mode pre-divider output clock, Reset is connected to the divider reset signal RST, and the output terminal Q is connected to the NAND gate I 11 Input terminal A, connected to NOR gate I 44 Input terminal A, NOR gate I 44 The input terminal B is connected to the signal QFD, and the output terminal signal is connected to MODE.
9. The programmable frequency divider according to claim 1, characterized in that: The frequency division ratio automatic detection module includes a mode switching detection module, a D flip-flop, a NAND gate, an AND gate and a NOT gate; The mode switching detection module is used to detect the output of the 6-bit adder counter and control the working mode of the entire programmable divider; The D flip-flop is used to transfer the signal at the input end to the output end at each rising edge of the clock to implement synchronous logic; The NAND gate is used to perform logical AND operations on signals; AND gates are used to perform logical AND operations on signals; The NOT gate is used to perform a logical NOT operation on a signal; Counter output value input mode switching detection module, D flip-flop I 111 The input terminal D is connected to a fixed high level, the Clk terminal is connected to the output terminal of the mode switching detection module, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the D trigger I 222 Input terminal D, connected to NAND gate I 444 Input A, D flip-flop I 222 The Clk terminal is connected to the dual-mode prescaler output clock, the Reset terminal is connected to the divider reset signal RST, and the output terminal Q is connected to the inverter I 333 Input, inverter I 333 The output terminal is connected to the NAND gate I 444 Input terminal B, NAND gate I 444 The output terminal is connected to the AND gate I 555 Input A, AND gate I 555 Input terminal B is connected to the divider reset signal RST.
10. Application of a programmable frequency divider according to any one of claims 1 to 9, characterized in that: The programmable frequency divider is used in a charge pump phase locked loop.
Citation Information
Cited By
Frequency divider frequency division ratio change automatic detection circuit
CN119315981A
Programmable frequency divider and phase-locked loop
CN121461967A
Programmable frequency divider and phase-locked loop
CN121461967B
