Simplest design approach for PWM control with power MOSFET
Here's a circuit I did a few years ago that demonstrates a driver chip local to the MOSFET and an over-current protection in case the load shorted out. The MOSFET used is not as suitable as the BUK954 you mentioned on another question. I'd use that type for your job.


The load is assumed to be purely resistive. In fact the original circuit had two MOSFETs driving a transformer with a centre-tap to the positive supply rail and it didn't need fly-back diodes (it used snubbers) but your's might need a protection diode across the load.

Circled in red is a local +5V power rail used for the over-current monitor - this can easily be derived locally with a small linear regulator such as 78L05.

Also note the big array of capacitors to the left of the circuit that absorbs most of the transient energy locally produced by switching the load. The original design was switching at 600kHz so if you wanted to run faster than 20kHz this shouldn't be a problem but i wouldn't go above 100kHz for the sake of efficiency.