On Fri, Feb 27, 2004 at 06:18:11PM +0100, Jan-Erik Soderholm wrote: > > Ahah! > > > > The MOSFET gate has to get within 200mV or so of the 5V rail > > to make sure it is turned off. > > That's what the internal pup in the MIC should take care of. > Note that the PortB pin is *tristated* in the "off" state > using the TRIS reg, not driven activily high (to 3.3V). Won't the PIC's protection diode clamp the voltage at the pin close to 3.3V? That would mean the MOSFET wouldn't turn off, and the PIC would be operating out of spec; both sound bad. Chris -- 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