"Jan-Erik Soderholm XA (TN/PAC)" writes: > Rodrigo Real wrote: > > I am working in a project which a pic communicates to a PC throught > > serial. I made a cable which connects to the parallel port and the > > serial port at the same time, but with different pins, the only common > > one is the ground. > > > > Sometimes, when I insert or removee the cable from the pic board, the > > pic resets itself. > > > > Well, live connecting/disconnecting of cables in general, > isn't particular easy. > > If you have pins touching or something like that, I'd > guess anything could happen. > > So the best advice might be, don't do that :-) > > Why must you connect/disconnect under power at all ? The system works in a wheelchair, unless I put a switch to disconnect the batteries, the user can't turn the energy off without any external help. And the user can connect the serial cable to change some parameters. But this is an option I am considering, since I can not find a way to solve the problem. Rodrigo -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads