>Now that gets me to thinking: Here is a neat trick to get a = 'push-pull' >output from two PORT A pins: >1: define them as analog (ADCON1) >2: TRIS them as outputs. >Now, when you BSF either of them the other will automatically be = cleared. >This would have been useful in a system I built that drove a piezo >transducer directly off two PIC pins. This also sounds like a real crazy scheme to confuse anyone trying to = reverse engineer your code. It would have them going round in circles = trying to work out why you are connecting a piezo sounder across analog = inputs, and be looking for the interrupt routine that is listening into = them.... but then why is the code doing things to the digital = outputs????? -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST