I had tried the connection. The speed of motor become inverse proportional to the PWM.
PWM 100%, motor stop; PWM 0%, motor full speed.
Then I tried this connection, but the Gate signal is not very good.
In case I don't want to change my programming, is there any other methods to drive MOSFET?