Nah... you can use whatever spare I/O you have, and poll them with a Timer Interrupt, let's say 10 times/seconds. Your main loop just check if you have a new keypress.
1 Timer interrupt will do everything,
1. scan the Key
2. say if there's a new key available,
3. and... why not using it also for the debouncing as well?
Think about it... 10 times a second is usually just fine.
<hr>
Yes ADCON1=15 will do.
Last edited by mister_e; - 29th May 2008 at 22:19.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks