The application relates to a programmable
frequency divider and a phase-locked loop, the programmable
frequency divider comprising a plurality of cascaded subtractors, a period end detection module and a
delay reset circuit, wherein the plurality of cascaded subtractors are connected to corresponding initial value signals, under the triggering of a
clock signal to be divided, the signals output by the plurality of cascaded subtractors correspond to the output results of decrement, and under the condition that the signals output by the plurality of cascaded subtractors reach a period end condition, the period end detection module outputs a period end
signal to the
delay reset circuit based on the signals output by the plurality of cascaded subtractors and the period end condition. Under the condition that the
delay reset circuit receives the period end
signal, a reset trigger signal is output to each
subtractor so as to reset each
subtractor. After a preset
delay time length of the delay reset circuit after the reset trigger signal, a work trigger signal is output to each
subtractor so as to make each subtractor work and enter the next round of decrement cycle operation.