Burned Mosfet and popped flyback diode.. help! Big DC motor PWM

It's 480 Hz or 960 Hz , depending on which pins you use but this brings us to the question of what iis proper way to ramp up the pwm ? If you send analogWrite(pin, 1); , what is the duty cycle ? (1/255)*100 or 0.392 %.
But why use analogWrite when you can use the PWM Library ? (@16 kHz)

I = V/R
= 12V/0.22 ohms (0.12 + 0.1)

How do you get 1091A/ S ?