miomir1981
- Joined Nov 30, 2010
- 2
I apologize if someone has mentioned this earlier in the thread.
Power MOSFET transistors have large gate and thus gate represents a large capacitance. Driving a power MOSFET as a switch will require only a small resistor in order to make circuit work. I always use 3K3 resistors for this. This will limit the current output of an I/O pin of the MCU. If you want, you can use larger resistor connected to the ground, let's say 47K or so.
Situation changes dramatically when one tries to drive a power MOSFET with higher speed. PWM is such a case. To make this story shorter, try using dedicated gate driver as this circuit will provide high gate currents needed to drive the MOSFETs properly in high frequency switching applications. The thing that resets your MCU is probably some overcurrent protection inside the MCU or something even worse than that. You probably burned several I/O pins in attempts of driving MOSFET with PWM signal in this way. Maybe there are MCUs that can drive MOSFET with PWM signals directly but Atmega328p is not one of them.
Power MOSFET transistors have large gate and thus gate represents a large capacitance. Driving a power MOSFET as a switch will require only a small resistor in order to make circuit work. I always use 3K3 resistors for this. This will limit the current output of an I/O pin of the MCU. If you want, you can use larger resistor connected to the ground, let's say 47K or so.
Situation changes dramatically when one tries to drive a power MOSFET with higher speed. PWM is such a case. To make this story shorter, try using dedicated gate driver as this circuit will provide high gate currents needed to drive the MOSFETs properly in high frequency switching applications. The thing that resets your MCU is probably some overcurrent protection inside the MCU or something even worse than that. You probably burned several I/O pins in attempts of driving MOSFET with PWM signal in this way. Maybe there are MCUs that can drive MOSFET with PWM signals directly but Atmega328p is not one of them.