NJ Roadmap
New Member
I was just wondering how everybody interfaces push-buttons to PICs? I'm just trying to choose between a normal digital I/O interface, an interrupt (INTn) pin, or an interrupt-on-change pin (KBIn). I'm using a PIC18F4520.
I was thinking of using the KBI pins purely because they're useful for scroll-type buttons which may be pressed for long periods of time since the RBIF bit continues to stay set as long as a key is pressed. Also theres the issue of debouncing which I am yet to address. But I'm open to suggestions so this is why I'm here!
I was thinking of using the KBI pins purely because they're useful for scroll-type buttons which may be pressed for long periods of time since the RBIF bit continues to stay set as long as a key is pressed. Also theres the issue of debouncing which I am yet to address. But I'm open to suggestions so this is why I'm here!