OK…I have a strange situation here. I have the Parallax PIR from Radio Shack and hooked it up thru a bread board to IO9 on my Cobra…works great (used the code out on Fezzer). So, I decide to actually solder it to a board and use one of the 3 pin connectors. Here is where it gets strange. If I try to plug it into any of the on board 3 pin connectors already mounted on the Cobra (like IO7), it doesnt work. The pin goes high and just keeps calling my interrupt. But, if I take that same 3 pin connector and put it back on IO9, it works just great. Another slightly strange thing…if I just plug the cable (without the PIR attached) into one of those on board connectors, it immediately starts going high again. In fact, it went high a few times with me just getting my hand NEAR the thing (static electricity maybe? Who knows). So, what is the difference there between a pin like IO9 and IO7 on the Cobra that would cause this?
The code is on Fezzer but here is the basic code setting up the interrupt:
interruptPort = new InterruptPort(pin,false,Port.ResistorMode.Disabled,Port.InterruptMode.InterruptEdgeHigh);
Thanks ahead of time…Steve