You are here

CY8CKIT-014 General Purpose Push Button Switch | Cypress

CY8CKIT-014 General Purpose Push Button Switch

Summary: 12 Replies, Latest post by hli on 24 Sep 2013 04:12 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
simsto's picture
User
2 posts

Hello there,

I bought myself the above mentioned development kit. I tried the first example  Blink an LED from MY FIRST FIVE PSOC ®  3 DESIGNS. The push button is assigned to P15[3].

But nothing changes if I push the button. I took the whole code from the example.

Thanks in advance.

Kind regards,

Simon

kiku's picture
Cypress Employee
64 posts

Hi,

 

There are some differences between CY8CKIT-001 and CY8CKIT-014. In the later one (First Touch Kit), the switch has to be pulled down internally instead of pulled up for CY8CKIT-001.

 

So you may need to change the pin drive mode to Pull Down. Please let me know if this works.

Regards,

Kishore.

simsto's picture
User
2 posts

Hello Kishore,

 

thank you very much. I've changed the Drive Mode to Resistive Pull Down and the Initial State to Low.

After changing the IF-conditions in main.c it works fine.

Kind regards,

Simon

Doacn's picture
User
10 posts

Hello,

  I have the similar kit as you do. Do you mind walk through this with me? I tried to follow the "My First Five PSoC 3 Designs"

with CY8CKIT-014 and I had no luck due to different pins number. I am not sure which pins are suppose to be connect. Please help me thorugh this. Thanks!

Fix
Fix's picture
User
21 posts

Hello together!

maybe somebody can help me too...
i'm working with the CY8CKIT-001 and PSoC 5LP.
according to the tut. i also Chose resistive pullup and Initial low.
for P1.2 this works fine. for other ports like 2.7 and many 0.X this doesn't work!
now i changed to resistive pulldown and Initial high. this works for both of them.
is there something to consider using different ports?

thank you!

user_14586677's picture
User
7035 posts

Not all ports are =. see attached.

user_14586677's picture
User
7035 posts

Not all ports are =. see attached.

Fix
Fix's picture
User
21 posts

I don't understand.
In the PDF it says: When not used for special functions, all GPIO pins behave the same.

user_14586677's picture
User
7035 posts

Basically says that if special function is not routed to pin, use it as GPIO.

 

Also check -001 lit schematic, some pins dedicated externally so you

cannot use as GPIO.

 

Regards, Dana.

Fix
Fix's picture
User
21 posts

yes i know. i don't use special functions (I didn't do anything, just pin mapping).
so how do i know if special function is active or gets it active as soon as i place the component in my drawing?
the only difference between the used pins is that they have different functions when not GPIO.

Fix
Fix's picture
User
21 posts

they work as GPIO but different. P1.2 (SW1) works with resistive pullup and other tested (SW2) only with resistive pulldown, don't know why, since the Switch shortens to ground when pressed.

Attachments: 
user_1377889's picture
User
5828 posts

Will you please post your complete project (File->Create Workspace Bundle) so that we all can have a look at?



Bob

hli
user_78878863's picture
User
2052 posts

When you define the pins in thw design wide resources, you get shown what special functions are on a pin. Also, the CyFitter process (which does all the internal routing) tells you when you use a pins reseved for special function. And if there is a conflict it tells you so...

Log in to post new comments.