Did you modify your code and include those lines at the top?
Code:
ADCON1=$0F ' Disable AD converters
CMCON =7 ' Disable analog comparator
Comparator voltage reference is suppose to be set to off by default if you refer to the CVRCON POR. AND when you set ADCON1 to 0F, you set VREF- to Vss, VREF+ to VDD... so i can't understand why it doesn't work.
one more question also while your peeking at this thread. is there a way to make the auto repeat work only on 2 buttons? Two buttons on my kepad are +- adjustments and all the others are command buttons. It would be great to make the +- buttons autorepeat
The first thing spring to mind is to set the AUTOREPEAT to ON then read the MyVar value and if it's not one of your two keys... redo the keypad scan until it change.
PS: you're right, i did a mistake, low value resistor must be on ROWs, not colums... DOH!
Last edited by mister_e; - 15th April 2006 at 10:21.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks