Adding OPTION_REG.7 = 0 ' Enable PORTB pull-ups
Shows a compile error in Microstudio
Does not compile
I am using an 18F4520
Dennis not all pic has the internal pullup, could be that your mcu has not pullup.
(Check the datasheet).
Since you will need the pullups (otherwise the keypad will not work), so add four external 10K resistors.
Al.
Edit:
Gusse has read the datasheet for you: Replace OPTION_REG.7 = 0 with INTCON2.7 = 0
Last edited by aratti; - 20th November 2009 at 19:16.
All progress began with an idea
Bookmarks