cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 4

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
Expert II

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
Honored Contributor II
        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
Expert II

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
Expert II

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
EvPa_264126
Valued Contributor II

Apparently the only way

   

0 Likes
Anonymous
Not applicable

what do you mean ?

0 Likes
EvPa_264126
Valued Contributor II

you can not connect the green and blue wires

0 Likes
rola_264706
Honored Contributor II

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
Honored Contributor II
        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
rola_264706
Honored Contributor II

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
Honored Contributor II

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