On Wed, 13 Jun 2001, Dan Michaels wrote: > Tim Thompson wrote: > >Thanks everyone for your help, it apears adding a base-emitter resistor did > >the trick. Thanks again everyone for your help. > > > > Still makes no sense to me, as I would think this should only > matter if the I/O pin is floating. Did you check that RP0 bit? > It has sense, Dan . The high level supplied by pic pin's hasn't enough current to keep off the transistor( or is floating...) Same thing is happening to many 8051 clones like atmel 89c2051. Problem can be solved also by connecting one or two diode in series from Vcc to emiter ( to be in conduction ), so when the pic pin is in high state the Vbe have a negative potential and sure keep off the transistor. regards, Vasile -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.