Problems with scheme for 4x3 keypad

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello, I'm trying to connect keypad, but I have problems even with creating of circuit. 

   

I have errors like this - " Two or more connected terminals have mismatching types. All connected terminals must have the same type (i.e., all analog or all digital). Remove the incorrect terminal(s) and replace them with the correct type"

   

I'm newbie in this and rly hope for  your help.

   

Here is scrshot of my project.

0 Likes
16 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You did not check for your pins the option "external Terminal".

   

As a consequence you used to connect your (external) switches to the (chip-)internal side of the pins. External wires are always in blue.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

So how I should improve that situation?

   

Replace input pins with output and connect to external terminal, or what ? 

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received
        The port/pins component 4 types digital input, digital output, digital bidirectional and analog you have to right click on the pin and it opens the configuration screen make sure they are all digital or analog per your design.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

As a starting point, look at this (way to make a) component.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

You mean  guide for creating components ?

   

But how to improve my project ?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Sorry, Link did not work, my fault.

   

See here: http://www.cypress.com/forum/psoc-community-components/component-creation-part-1

   

 

   

Bob

0 Likes
Anonymous
Not applicable

That's cool, but as I see, it's full component which I can use. There is a problem, I have fullworking project with little bit another realization of  keypad. But now I want to create my own, because using someone project never make me better in that area 🙂  and it;s very hard to find out how it works through borrowed one.

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Apparently the only way

   

0 Likes
Anonymous
Not applicable

what do you mean ?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

you can not connect the green and blue wires

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Here is a program shell with 4x3 keyboard.

0 Likes
Anonymous
Not applicable

Thx. Maybe I'm wrong but I thought that pins should have high level at the beginning, or you  just did scheme like an example ? 

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received
        I didn't do any programming of the pins . I just setup the keyboard for you. Also you need a keypress circuit using a exclusive or gate and an interupt.   
0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Here is a 4x4 keyboard library component and a program on how to use it.

0 Likes
Anonymous
Not applicable

I've seen that one, used few times, but it's bad because of absence of any kind of debouncer. 

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

You can check the data after the valid pin is active or feed the valid pin to an ISR to insure the data is valid and stable. You could also modify the component library to add debounce components to each line.

0 Likes