OK you enable the internal Pull-ups, so your interrupt should happen on a Falling Edge right?Code:OPTION_REG = $7f 'enable PORTB pullups
what about
maybe also safe to add a PAUSE 20-50 after the WHILE:WEND to debounce the PB contact.Code:OPTION_REG=%00111111
Bookmarks