Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

Sophie_Wang
Level 4
Level 4
First like received First like given Welcome!

Hi CY Friend,

如题,请问有PSOC的输入输出切换的API吗?

br

sophie

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
500 solutions authored 250 sign-ins 1000 replies posted

在psoc4里,使用GPIO_SetDriveMode()改变引脚的驱动模式,就可以切换其输入输出。

例如,将引脚状态改为High impedance digital, 就可以将引脚从输出切换为输入;驱动状态改为strong drive就可以切换为输出。

View solution in original post

0 Likes
1 Reply
Owen_Zhang123
Moderator
Moderator
Moderator
500 solutions authored 250 sign-ins 1000 replies posted

在psoc4里,使用GPIO_SetDriveMode()改变引脚的驱动模式,就可以切换其输入输出。

例如,将引脚状态改为High impedance digital, 就可以将引脚从输出切换为输入;驱动状态改为strong drive就可以切换为输出。

0 Likes