The invention belongs to the field of power electronics, and discloses a parameter-adjustable PWM controller based on a programmable device and a PWM pulse generation method, the parameter-adjustablePWM controller comprises a human-computer interface, a DSP and the programmable device, and the human-computer interface is used for inputting PWM pulse preset parameters; the DSP is used for receiving PWM pulse preset parameters input by the human-computer interface and outputting the PWM pulse parameters; the programmable device is used for receiving the PWM pulse parameters output by the DSP and generating PWM pulses according to the PWM pulse parameters. Input adjustment of various parameters is carried out through a human-computer interface, the flexibility is high, smooth switching is achieved when the parameters change, no narrow pulse occurs, and safe and stable operation of equipment is guaranteed; according to the invention, the limitation of a DSP chip is overcome, the programmable device has the characteristic of field programmability, various functions can be realized through a hardware description language, and meanwhile, the programmable device can simultaneously processa plurality of tasks in parallel, so that the real-time performance and the parallelism of a control system are improved.