I/O configuration

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

cross mob
BiXu_2571851
Level 1
Level 1
5 questions asked First question asked First reply posted

希望在程序里修改IO的输入或者输出模式。请问除了在topdesign设置之外,怎么在代码中改变IO的输入或者输出模式。

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

PSoC4:

如果你把GPIO的驱动模式配置成strong,那么就只能作为输出(write)。

但是你把驱动模式配置成resistor pull up/down,那么就可以作为输出输出(read/write)。

通俗的理解,这里GPIO的输入输出属性跟你配置的驱动模式有关系。

我想问一下,你现在具体是想做什么应用?

View solution in original post

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

PSoC4:

如果你把GPIO的驱动模式配置成strong,那么就只能作为输出(write)。

但是你把驱动模式配置成resistor pull up/down,那么就可以作为输出输出(read/write)。

通俗的理解,这里GPIO的输入输出属性跟你配置的驱动模式有关系。

我想问一下,你现在具体是想做什么应用?

0 Likes