Hi everyone, I've got a rather weird problem here. I configured my microcontroller to count incoming pulses using a function called event couter mode. This is commonly used to track the position of a motor movement. The pulse generating circuit and my microcontroller shares the same DC power supply(wall wart). The pulses are sent to the microcontroller input pin via a schmidt trigger. The strange thing is that once I turn on a standard DC power supply unit(using the same AC outlet), the counter goes haywire. The DC power supply unit is not connected to anything except the incoming mains. I move the power supply unit to another mains(which is isolated from the microcontroller) and the problem is solved. Is there anything I can do to prevent this? Thanks Mark _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body