PIC false digi I triggers

Thread Starter

gdallas

Joined Apr 25, 2012
74
I’m experiencing false triggers of digi switch inputs (on occasion) and not sure what’s causing this. I’m using a pic 18f, with interrupt driven switches on PortB. I have external 100k weak pull-ups (needed due to power constraints) and note that the voltage is held high at around 3.02V which is a fair ceiling above the high input min value of 1.7V.
Observations:
When touching negative terminal (only) of DVM to board ground, it triggers a false activation. This is quite repeatable. On occasion, when momentarily pulling another switch low , I see it affect the logic on another pin, but only on occasion. I’ve put in 0.1uF caps on the DI pins, but this hasn’t really helped. Any ideas what’s causing this? Anything to do with interrupts and or switch bounce?


VDD
3.6
V
Input Low Voltage (Max)
0.54
V
Input High Voltage (Min)
1.7
V
 

R!f@@

Joined Apr 2, 2009
9,918
U need to debounce the switches. You can use delay in the software routine to debounce all the switches

Plus decouple the PIC power pins with 0.1uF caps and a 10uF cap. Place them close to the PIC power pins
 
Top