How to switch output pins in a program

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

cross mob
songzaiwu
Level 3
Level 3
50 sign-ins 10 questions asked 25 sign-ins

11111.png

 

How to connect pwm to pinA at one moment in the program, and need to connect pwm to pinB at another moment, which register to operate?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Please refer to the solution which in the below linker :

https://community.infineon.com/t5/PSoC-4/How-to-change-PWM-s-output-to-different-pins-dinamically/m-...

I test the function in CY8CKIT-042, and add the test project here.

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Please refer to the solution which in the below linker :

https://community.infineon.com/t5/PSoC-4/How-to-change-PWM-s-output-to-different-pins-dinamically/m-...

I test the function in CY8CKIT-042, and add the test project here.

0 Likes

LinglingG
Another way to solve the problem is with a de-multiplexer.

DennisS_46_0-1661271614959.png

This functionally equivalent to PMW01 project. Both projects rely on chip CY8C42xx which has Universal Digital Blocks (UDBs). If you need to work in CY8C41xx or other chips which do not have UDBs, this is a different problem, we will have to use the Smart I/O for the lolgic. What is your target chip?
---- Dennis Seguine, PSoC Applications Engineer

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

Hi,

Which chip do you use? Now, has this problem been solved?

Thanks

0 Likes