The uC is a PIC10F220, which if I read the datasheet correctly can supply 25mA absolute maximum on its pins. The MOSFET that drives the load is actually 4 pcs NCE0140KA in parallell, but drawn as one for simplicity. The combined capacitance of the MOSFET's is 13.6 nF. I have selected the values of R1 and R2 so that the transistor gate will charge and discharge as quickly as possible, in order to minimize the transition time when the the transistors will be half-open. I am doing this because this circuit will be potted, so I'm trying to minimize heat dissipation.
By my calculations the current drawn from the uC output should peak at around 20mA the moment the output is activated and stabilize at 10mA. The peak will be close to the absolute maximum of the pin, but I figure it will be OK since the peak will be very short: Time constant of the R1-M1 RC circuit is 250 * 13.6e-9 = 3.4 us.
The circuit will be used as a pwm control and the switching frequency will be around 2 kHz.
Have I got this right? What would you do differently?