Open drain output pin on KL25Z?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Open drain output pin on KL25Z?

跳至解决方案
1,452 次查看
markosiponen
Contributor III

How should I do to set a GPIO output pin as open drain?

There seems to be no option for that?

Or should I set the GPIO as input when I want to set the pin high and set the GPIO as low output when I want to set the pin low?

0 项奖励
回复
1 解答
1,059 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Markosiponen

First, KL series has not open drain control register.

Then I think your solution is OK.  One reminder is attention to pull-up resistor value selection.

Best Regards

Paul


在原帖中查看解决方案

0 项奖励
回复
1 回复
1,060 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Markosiponen

First, KL series has not open drain control register.

Then I think your solution is OK.  One reminder is attention to pull-up resistor value selection.

Best Regards

Paul


0 项奖励
回复