GPIO open drain?

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

GPIO open drain?

488 Views
towenyu
Contributor III

I'm trying to use S32K344 GPIO to simulate I2C R/W (as I want use dozens of channels)

I read from some posts that GPIO function doesn't support "true" open drain. while I also found below definition in Siul2_port_Ip.c:

towenyu_0-1705547858495.png

My question is: how should I make the GPIO pin act like open-drain? 

 

Best Regards,

Yu

2 Replies

443 Views
towenyu
Contributor III

Thanks for your information, this is also what I get from user manual. However, I did tried to configure those GPIO pin as input, it act pretty much like open-drain: it will be pulled to high (relatively slowly) by internal pullup resistor. And the overall I2C simulation code sounds like working well.

463 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, this device does not support open drain.

davidtosenovjan_0-1705666460878.png