> I am switching at 80khz. So it sounds that without the resistor there > is a risk of over loading the pic but with the resistor there is a > chance of overheating the mosfet. :) That means you only have 6.25uS per transition. No wonder the FET was getting hot. It was spending most of its time in the region between full on and full off where it will dissipate power. At this frequency, you need a much faster (higher current) gate drive than what a PIC pin can provide. The FET should be in transition only a small portion of the time, let's say under 1uS. For sake of example, let's say the total gate charge is 50nC. 50nC / 500nS = 100mA. That's a lot more than you can expect from a PIC pin, let alone one with a resistor in series with it. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics