Sean Breheny wrote: > Thanks,but the main thing that I don't understand is why this might result > in MOSFETs being damaged,as in the post which I replied to. The MOSFET will be damaged because it will remain ON always. Example, if PORTA:0 drives a FET and PORTA:1 is an input, if your code has: movlw 1 movwf PORTA ;turn on FET . . . bcf PORTA,0 ;turn it OFF again for after some time nop ;this can help if w/ a series resistor btfss PORTA,1 ;test input !!!READ-MODIFY-WRITE goto do_something goto do other At this point, the pin will remain HIGH because of the btfss reading the pin again while the gate is still charged. > I ESPECIALLY don't understand why the positioning of the resistor along the > line between the gate and the PIC would matter when it came to protecting > the FET. I don't understand this also. Maybe the inductance of the wire will cancel the capacitive effect??!! regards, Reggie -- e-mail: rberdin@bigfoot.com ICQ#: 31651436 URL: http://www.bigfoot.com/~rberdin