Does anyone know how to avoid bounces?
I have a switch I check if it is open or close by RB0, it activates an interrupt, but I think between the transition I have more than one event, so I would like to know a way to avoid bounces.
I have a resistor of 10k one leg is to 5v, and the other to RB0, the switch is connected to RB0 and the other leg of the switch to gnd. so when closed RB0 sees gnd, (interrupt high to low)
:?:
is there a way to stop the overflow of the T0IE when TMR0 is configured to internal clock, while a delay is occurring and then to make it run again conserving the actual value of TMR0. I don't want a interrupt event from T0IF while a delay is occurring.