Open drain output pin on KL25Z?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open drain output pin on KL25Z?

Jump to solution
1,451 Views
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 Kudos
Reply
1 Solution
1,058 Views
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


View solution in original post

0 Kudos
Reply
1 Reply
1,059 Views
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 Kudos
Reply