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

PSoC™ 4 Forum Discussions

cach_3698841
Level 1
Level 1
5 sign-ins First question asked Welcome!

PWM输出停止后,能否通过设置IO口输出模式进行GPIO高低电平输出。我通过demo板验证,发现pwm_stop后无法操作IO。

cach_3698841_0-1652175034051.png

 

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins
0 Likes
2 Replies
BiBi_1928986
Level 7
Level 7
500 replies posted 250 replies posted 250 sign-ins

Hello.

When TCPWM is assigned to GPIO, a MUX is used to select this TCPWM function.  To select GPIO function, the MUX needs to be changed to point to GPIO.

See this thread where GPIO and SPI were used.  This will be similar solution to TCPWM and GPIO for your project.
Solved: Re: PSOC 4 SPI SBC mode cannot toggle output pins - Infineon Developer Community

You will need to find the Technical Reference Manual for your PSoC.  The link above is for 4200 family with UDB blocks.  If your device has Smart/IO, then there may be something similar for solution.

0 Likes
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins
0 Likes