Alice Campbell wrote: > > to underline what Tony said here, try this experiment with a > piezo buzzer: Yeah, I got stung badly with BSF's once. Be extra careful when a IO pin is set for analog but is used as a digital output. The digital IO pin will always be set to 0 when BSF etc is used on that PORT. That is because an analog pin set as digital out will always read as 0. There is a AND gate in the read path of the analog IO pins and the output of this is Logic 0 when analog is selected. -- Best regards Tony mICro's http://www.picnpoke.com mailto:sales@picnpoke.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body