>I have a hairy problem. I wrote a program that waits in a loop for an >interrupt to be generated from PORTB pins. When debugging the software >everything is fine. However, when testing the hardware some unpredictable >errors occur. That is specifically when you come close with your hands to >the circuit inputs (PORTB <7:6>), an interrupt is generated making the >circuit go haywire. Sounds like maybe you don't have all your pins tied down. Make sure you have ALL the pins on the pic (all the ones you aren't using for something else) tied either to high or ground through big resistors (10K works fine). CMOS chips don't like having floating pins. Dan