reading a 4x4 switch matrix

Status
Not open for further replies.
Mike.
P.S. Don't know if Swordfish supports it.

Jon how did you get add a chip to swordfish and turn it into a keypad.

I was talking if the the chip is not included it can be added..

Nothing about keypad hell I remember when the keypad .bas had bugs Thank you.
 
Last edited:
The following devices are currently supported.

18F1230, 18F1320, 18F1330, 18F13K22, 18F13K50, 18F14K50, 18F2220, 18F2221, 18F2320, 18F2331, 18F23K20, 18F23K22, 18F2410, 18F242, 18F2423, 18F2431, 18F2439, 18F2450, 18F2455, 18F248, 18F2480, 18F24J10, 18F24J11, 18F24J50, 18F24K22, 18F2510, 18F2515, 18F252, 18F2520, 18F2525, 18F2539, 18F2550, 18F2553, 18F258, 18F2585, 18F25J10, 18F25J11, 18F25J50, 18F25K20, 18F25K80, 18F2610, 18F2620, 18F2680, 18F2682, 18F26J11, 18F26J13, 18F26J50, 18F26J53, 18F26K20,18F26K80, 18F27J13, 18F27J53, 18F4220, 18F4221, 18F4321, 18F4331, 18F43K20, 18F43K22, 18F4410, 18F4420, 18F4423, 18F4431, 18F4439, 18F4450, 18F4458, 18F448, 18F4480, 18F44J10, 18F44J11, 18F44K20, 18F44K22, 18F4510, 18F4515, 18F452,18F4523, 18F4525, 18F4539, 18F4550, 18F4553, 18F4580, 18F4585, 18F45J10, 18F45J11, 18F45J50, 18F45K22, 18F45K80, 18F4610, 18F4620, 18F4680,18F4685, 18F46J11, 18F46J13, 18F46J50, 18F46J53, 18F46K22, 18F46K80, 18F47J13, 18F47J53, 18F6310, 18F6393, 18F63J11, 18F63J90, 18F6410, 18F6490, 18F64J11, 18F64J90, 18F6520, 18F6525, 18F6527, 18F65J10, 18F65J11, 18F65J15, 18F65J50, 18F65J90, 18F65K80, 18F65K90, 18F6620, 18F6621, 18F6622, 18F6628, 18F6680, 18F66J10, 18F66J11, 18F66J15, 18F66J50, 18F66J55, 18F66J60, 18F66J65, 18F66J90, 18F66K22, 18F66K80, 18F66K90, 18F6720, 18F6722, 18F67J10, 18F67J11, 18F67J50, 18F67J60, 18F67J90, 18F67K22, 18F67K90, 18F8310, 18F8390, 18F8393, 18F83J90, 18F8410, 18F8490, 18F8493, 18F84J11, 18F8520, 18F8525, 18F8527, 18F8585, 18F85J10, 18F85J15, 18F85J50, 18F85J90, 18F85K22, 18F85K90, 18F8621, 18F8622, 18F8627, 18F8628, 18F8680, 18F86J11, 18F86J15, 18F86J16, 18F86J50, 18F86J55, 18F86J65, 18F86J72, 18F86J90, 18F86J93, 18F86K22,18F8720, 18F8722, 18F8723, 18F87J10, 18F87J11, 18F87J60, 18F87J72, 18F87J90, 18F87J93, 18F87K22,18F96J60, 18F96J65 and 18F97J60
 
The following devices are currently supported...
That list is a little old. The only 18F devices not supported by Swordfish are the K42 and K83 families.

You may need to download a few files and install mplabx to be able to generate up to date include files, but the tools are available and pretty simple to use. The K40 does have a few quirks that require a patch or two.

Also, some of the stock libraries need revising as Microchip keep changing how the peripherals work. At least with Swordfish all of the libraries are in source code form and are easy to change.
 
Last edited:
Has this turned into design by committee , whatevr it is , makes interesting reading ...
 
Haha, not really. I've tried helping out MrDeb on previous threads and been ignored, or seen this same situation play out several times. Its always a painful process unfortunately.
 
Haha, not really. I've tried helping out MrDeb on previous threads and been ignored, or seen this same situation play out several times. Its always a painful process unfortunately.
Mr Deb threads are legendary, so taking part is alot like being allowed to scribble your name on the back of a Van Goh while he paints it!!
 
Haha, not really. I've tried helping out MrDeb on previous threads and been ignored, or seen this same situation play out several times. Its always a painful process unfortunately.
I don't think they are ignored... The trouble with MrDebs threads is information overload, I should imagine it take a bit to try and absorb all the data..

Think of it this way... Others are viewing as well..If the view counter is whizzing round, the advertisers using this site are ££££'s in... Better for all!!
 
Mr Deb threads are legendary, so taking part is alot like being allowed to scribble your name on the back of a Van Goh while he paints it!!
Van Gogh...thats a mighty push for a comparison. Maybe a bad Matisse, of which I think there are many.

Hey well, glass half full is always a good outlook. Its frustrating to be deeply involved and observe though, and I empathise with Jonsea. I'm not involved, apart from my completely off topic posts, so no worries from me. Just adding my off topic 2c.
 
I do owe MrDEB an apology. He is trying to pursue his hobby and I have made it stressful for him. I am sorry.

His style of getting things done is unique, but he eventually gets things working to some extent. To still be working on stuff after so many posts is amazing. I would have given up long ago.

Helping MrDEB is a challenging experience. It will be frustrating. Advice will be ignored and what you post will be misinterpreted. Feedback will be sparse and often without the detail to understand a thing. Know this when offering advice and laugh it off or cry but it makes no difference. MrDEB will carry on in his own way and nobody is going to change that.

Good luck MrDEB. Time for me to work on my own projects and battlevmy own gremlins.
 
Ignored probable not just looks that way.

But for Jon I never could figure why you spend all the time posting good code and it gets reposted all messed up.

That never added up.

You post working code and it's like that didn't work well I Know it did and if it's not working for Mr deb the problem is like the program pins 11 years you need to know that some times you have to unplug the programmer.

VDD error you have short not a code problem me I have a eye class problem when I have a vdd problem I forgot to put them on LOL. and wired something wrong LOL.
 
Last edited:
Don't!! He loves it... You've seen how many times he walks away.... Only seconds later back at the helm!!

Maybe I will learn this time. And I have posted a number of good articles at Digital-DIY.com in the hopes that someone would benefit and not be led astray, so my efforts are not completely in vain.

And like I said. Some ten score posts ago, I learned how simple a matrix keypad is to use
 
To still be working on stuff after so many posts is amazing. I would have given up long ago.
I have to agree... MrDEB is one of the most persistent people I've ever run across.

And he's a good sport, too, for putting up with all of our ribbing. My hat's off to him in that regard.
He certainly creates some entertainment.
 
Maybe a bad Matisse.
.
Shows I lack culture, I didnt realize the guy did any good ones!
I like my art like my women, i like to look at them and not spend 20 mins working out what they are meant to be .

Yes Mr Deb does create a laugh and ultimately fun is what this is all about. That being said I have managed to get 9 stitches in my hand from the new drone project! How many times you got to tell someone to cut away from them when using a razor sharp knife!! 3rd time i done something so stupid, reaching the point I am wondering if its ever going to sink in . I didnt think it was a bad cut until i slipped in a pool of blood . Down to the docs with my dripping hand, oh its the left one again he said! Doh obviously its the left i am right handed
 
received new keypad from Elecrow and re configured the keypad port to portc
need to change the pullup.bas as it is configured for portb
installed pullup resistors on first 4 bits of portc
will get back at it hopefully tonight. I need to build two new wheels for my electric trike, finish stove vent in kitchen and work on the garden whirligigs..
 
What chip you using again?
Why are you changing the pull up code? Have you checked that port C on the chip has internal pull ups?? if not then why change. The big question is...

Why use internal and external pull ups , say you use 10K internal and 10K external, your outside (yet again) the specs for the port current. Why are you running this so close to the edge without any reason i can see?

If your using 18F24k20
I am pretty sure its only port B that has pull ups......infact I am positive, if your using this port for the keypad you got things to watch for, like PORT C has the CCP module on which is part of the PWM module etc etc, so your going to have to make sure that the port is set correctly.

On most pics PORT B is designed for inputs like switches, hence its pull ups. So what have i missed? Why,where and when did you suddenly change the wiring?

ALSO NOTE THIS IS EXACTLY WHY YOU CODE LAST
 
Last edited:
Use a set square to make sure they are dead square!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…