The invention relates to a programmable
frequency divider and a phase-locked loop, the programmable
frequency divider comprises a plurality of cascaded subtracters, a period end detection module and a band
delay reset circuit, the plurality of cascaded subtracters are accessed to corresponding initial value signals, and under the trigger of a
clock signal to be subjected to frequency division, the period end detection module detects the initial value signals to be subjected to frequency division; signals output by the multiple cascaded subtracters correspond to decreasing output results, and under the condition that the signals output by the multiple cascaded subtracters reach a period ending condition, the period ending detection module outputs a period ending
signal to the band
delay reset circuit based on the signals output by the multiple cascaded subtracters and the period ending condition. And under the condition that the
delay reset circuit receives the period end
signal, a reset trigger signal is output to each
subtractor, so that each
subtractor is reset. And the reset circuit with time delay outputs a working trigger signal to each
subtractor after a preset
delay duration after the trigger signal is reset, so that each subtractor works, and the next round of decreasing cycle operation is entered.