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
936 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
1 Solution
543 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
1 Reply
544 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