Hi I am doing my first microcontroller project. I am trying to hook up a keypad that trigers an output when I certain code sequence is entered.
I have been struggling with this for a little while so I'm fairly frustrated. Anyway here's what I have:
PIC-PG2 programmer from sparkfun.
16F628 microcontroller.
4x3 keypad.
WinPIC software [I also have icprog].
I hooked up the icsp and am finally succesfully using it. Anway the problem I'm having is that I'm trying to scan inputs on port A to see which button has been pressed. For some reason I can see inputs on RA6 and RA7 but zilch on RA1 and RA0!!
Attached is my C code which I developed in mikroC. Where am I going wrong here?
BTW when I press the buttons I am seeing the input pins go high w/ my multimeter...
I have been struggling with this for a little while so I'm fairly frustrated. Anyway here's what I have:
PIC-PG2 programmer from sparkfun.
16F628 microcontroller.
4x3 keypad.
WinPIC software [I also have icprog].
I hooked up the icsp and am finally succesfully using it. Anway the problem I'm having is that I'm trying to scan inputs on port A to see which button has been pressed. For some reason I can see inputs on RA6 and RA7 but zilch on RA1 and RA0!!
Attached is my C code which I developed in mikroC. Where am I going wrong here?
BTW when I press the buttons I am seeing the input pins go high w/ my multimeter...