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

PSoC™ 4 Forum Discussions

songzaiwu
Level 2
10 questions asked 25 sign-ins 10 replies posted
Level 2

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
3 Replies
LinglingG_46
Moderator
Moderator 750 replies posted First comment on KBA 500 replies posted
Moderator

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
DennisS_46
Employee
50 sign-ins 100 replies posted 25 solutions authored
Employee

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 750 replies posted First comment on KBA 500 replies posted
Moderator

Hi,

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

Thanks

0 Likes