I'm wanting to interface a mechanical detent A/B output rotary encoder with a built in switch to an S08 but am not sure of the best way to do it in terms of software. Having read previous forum postings I have learnt a lot but not enough to actually implement the software. I would prefer to use an interrupt method as opposed to polling but where I'm struggling is how and where to implement the necessary debounce delays? I'd welcome code examples or anything to get me started :-)
On a related note does anyone have examples of push switch code using the KBI module to achieve simple push detection, press and hold/repeat, key press and release detection or if not any websites that show the theory of operation for such features?
Interestingly I've not really found any relevant reference material, app notes, design notes on the Freescale website to show such solutions :-(
Thank you in advance.