Ok, just wanted to know, oh and I do see where you set TrisB in your orig modified code. Maybe as Dave mentioned there is a hardware problem, bad breadboard or the pic it'self. Those breadboards get corrosion inside them and then the fun begins.
Ok, just wanted to know, oh and I do see where you set TrisB in your orig modified code. Maybe as Dave mentioned there is a hardware problem, bad breadboard or the pic it'self. Those breadboards get corrosion inside them and then the fun begins.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Internal pull-up may sucks, check OPTION reg in the datasheet and see what happen when you set a pin to output... probably the internal pull-up get disabled 'till you set them again... use external one and post your results.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I finally traced the problem down.
Im ashamed to post this, but it was just the ICSP cable still connected to my U2 programmer. Usually I leave it connected when programming with pics. On the 16F877, the PGD and PGC pins on the 16F877 are located on PORTB (B7 & B6). As soon as the cable is removed, "boom goes the dynamite." Ive never had a problem like that before, but I also never tried using a keypad with the 16F877.
Thanks again everyone for all the help, it was greatly appreciated. Sorry I wasted everyones time.
Lesson learned, RTFM.
Also is there anything I can do to allow the ICSP adapter to be connected and still be able to have the keypad on PORTB. Or is it just good practice to remove the cable after programming the PIC?
"Reality is merely an illusion, albeit a very persistent one." , Albert Einstein
Problems are nearly always simple, figuring out what they are . . . hard.
Jumpers, DIP switch maybe resistors and diodes . . .
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
plz tell me if i want to connect the keypad to portc
with diagrame of pull up resistor and values of resisters
the "diagram" is shown in post #1, pull-up of 10K or so are good enough
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks