I've got a behavior at a Digital I/O pin which I don't understand. It's within the context of an RC circuit which is filtering a switch connected to the pin. A resistor is in between the pin and the switch, and the other side of the switch is grounded. The capacitor is across the switch. I'm experimenting with different RC values.
I've configured a port channel to produce a high signal at P1OUT that is looped back to P1IN, so that when a switch at the pin is closed, it pulls the voltage down to set an IFG. It works, but only when the circuit uses resisters less than 47 Ohms, such as 22 and 10 Ohms. Even when I remove the capacitors, the channel does not sense a change with a 47 ohm resistor between it and the switch.
With the switch open, 3.2 volts are measured at the pin. When no resistor is installed, a closed switch pulls the voltage down to a few millivolts and sets a flag. When a 10 ohm resistor is installed, a closed switch pulls the voltage down to .25 volts and sets a flag. When a 22 ohm resistor is installed, a closed switch pulls the voltage down to .545 volts and sets a flag. When a 47 ohm resistor is installed, a closed switch pulls the voltage down to 1.21 volts but does not set a flag. The channel does not sense a change with 47 ohm, but I think it should.
Since the threshold where the falling voltage is guaranteed to be recognized by the Schmitt trigger is 1.65 volts, the 47 ohm resistor that pulls the voltage down to 1.21 volts does fall through the threshold and should set a flag, but it doesn't.
Can somebody tell me why?