Whatever the PIC you're using, you can use almost every I/O on it. The software must be done to work with your own assignment. Not much.
PIC16F877A have internal pull-up which can be enable by software... but they're on PORTB ONLY. No problem if you don't need any feature available on PORTB. Just hook your keypad on PORTB, use
Code:
OPTION_REG.7=0 ' Enable internal pull-up on PORTB
and away you go.
Explanation of pull-up.
http://www.seattlerobotics.org/encod...97/basics.html
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks