I tried Jonseas suggested code and later I am told to remove the pickit2 from the icsp.
Another queston?? how to have all of portB set as inputs?? where is the input to go to the outputs??
Been working on several other non electronic projects and been contemplating this project. Will call it plan multiplexing??
Am considering adding some 10K pullup resistors to portB.4 to B.7 and eliminate the weak pull ups.
As I mentioned, am attempting to have the keypad output to an LC D, no the usart.
Have you tried the excellent C code project and schematic posted?
Alot of effort went into that, obviously i am not saying Jonsea didnt put alot of effort in, but he has issues of sanity which is why he posts. So you actually have 3 verified working projects, more than enough info to drive a keypad and had every question answered 6 times 6 different ways. Now lets skip the bit where you ramble about some utterly unconnected code and get to the bit your stuck on.
Dont use your code, it isnt code its a mix of alpha numeric characters in random order, with the occasional Dim or GOTO stuck in to dress it up as code. First lets see where we are..
Does your keypad work? Can you press each key and get a reading on the multi meter? Forget the micro and its reaction, we want to know if the keypad is wired correctly and when pressed, does each button register on a multi meter?
Lets start there.
Remember the golden rule, code comes last. First we make something electrically sound and verified as working as a circuit, then we look at code. That way we know if its a software issue or not.....Ok we know its a software issue, but we dont know how many hardware issues we are looking at. Take on board what I said, your diode drops 0.6V roughly, so use two in series. yes most pics are specked to go outside the range, but its stupid to run electronic circuits on a knife edge when you dont have to.
Ironically i build in 30% margins minimum and still think i am pushing it. Learning is good, but learn it right and stop trying to take short cuts, every shortcut ever arrives at the same destination FAILURE.