CY8C4013SXI-400 Pin Setup Questions

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

cross mob
JaFr_4804831
Level 1
Level 1

I am relatively new to the world of electrical engineering (coming from mechanical and optical engineering) and want to use the PSoC 4000 series, specifically the CY8C4013SXI-400 as the microcontroller to control an LED's brightness with 2 push button inputs. I am having a bit of trouble figuring out how the pins exactly work. It is an unregulated power supply so according to the manual, the VDD pin would be the input and VCCD and VSS would go out into ground (yes I know capacitors are needed at certain points). That leaves P0.4, P1.1, P1.6, P3.0, and P3.1. Do the names of these pins mean anything, it seems like they are named in a way they do? For example, what I am thinking of doing is having P0.4 and P1.1 connect with a push button and P3.0 and P3.1 also connect with a push button. Then P1.6 would lead into the LED driver I selected into the PWM pin. I would also set up the coding in the microcontroller to know what is happening, like to send the PWM down P1.6 and how the duty cycle changes with each push button. Does this sound correct with how you would set this up, or do the pins do specific things and this setup wouldn't work? Or if this setup won't work, what is a better way of doing this with the CY8C4013SXI-400?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

1: Please refer to the below linkers:

AN86439 - PSoC® 4 - Using GPIO Pins (cypress.com)

AN88619 - PSoC® 4 Hardware Design Considerations (cypress.com)

2: About the Pin assignment, please refer to the datasheet:

download (cypress.com)

pastedImage_0.png

3: After review your requirement,P1.6 can't be assign to PWM, because the P1.1 is the only pin which could connect to PWM in this device.

The remaining pin can be used as GPIO.

4: I attached a simple code example here.

View solution in original post

0 Likes
3 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Hi ,

The device "CY8C4013SXI-400" you choose don't support the CSD function.

You can choose another chip:

pastedImage_0.png

0 Likes
lock attach
Attachments are accessible only for community members.

1: Please refer to the below linkers:

AN86439 - PSoC® 4 - Using GPIO Pins (cypress.com)

AN88619 - PSoC® 4 Hardware Design Considerations (cypress.com)

2: About the Pin assignment, please refer to the datasheet:

download (cypress.com)

pastedImage_0.png

3: After review your requirement,P1.6 can't be assign to PWM, because the P1.1 is the only pin which could connect to PWM in this device.

The remaining pin can be used as GPIO.

4: I attached a simple code example here.

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hello,

Please check the following in the data sheet for the pin names.

pastedImage_0.png

For example,

P3[0] and P3[1] are SWD_IO and SWD_CLD. or I2C SDA and I2C SCL.

In all packages, P3 [0] and P3 [1] are assigned to have the same functionality.

These P3[0] and P3[1] can be used as GPIO.

pastedImage_3.png

This P1[1] is a dedicated PWM output terminal.

P1[6] is dedicated COMP output terminal.

These P1[1] and P1[6] can be used as GPIO too.

Actually confirmed with PSoC Creator,

PWM output can be assigned only to P1[1], and mechanical switch input (digital input)  or LED (digital output) can be assigned to any terminal.

Regard,