2063460_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2063460_en-US

2063460_en-US

How do I set a pin of S32K344 to open drain output mode

How do I set a pin of S32K344 to open drain output mode.We have designed the hardware to be in an open drain output triggered mode, with a 5V pull-up,Our hardware schematic is shown in the following figure

7.png

Re: How do I set a pin of S32K344 to open drain output mode

Hello @SCoder41 ,

here's example for PTG29:

#include "Siul2_Port_Ip.h"

Siul2_Port_Ip_SetPinDirection(PORTG_H_HALF, 29-16, SIUL2_PORT_HI_Z);

16 shall be subtracted for the upper half port numbers.

Best regards,

Pavel

Re: How do I set a pin of S32K344 to open drain output modeWhich address should the first parameter of the function 'Siu l2 Port Ip_SetPinDirection' point to?Re: How do I set a pin of S32K344 to open drain output mode

Hello @SCoder41 ,

important is RTD version. If you look to the link in the first reply, there is function 

void Siul2_Port_Ip_SetPinDirection(Siul2_Port_Ip_PortType * const base, uint16 pin, Siul2_Port_Ip_PortDirectionType direction);

which can help you.

Best regards,

Pavel

Re: How do I set a pin of S32K344 to open drain output modeS32DS3.5Re: How do I set a pin of S32K344 to open drain output modeHow to set GPIO to "HighZ" modeRe: How do I set a pin of S32K344 to open drain output mode

Hello @SCoder41 ,

there's no "true" open drain support on S32K344 (GPIO open drain? - NXP Community). But your application doesn't look like time critical (many MHz), so you can manage open drain mode easily by switching GPIO between "HighZ" mode and "ouput low" mode.

Best regards,

Pavel

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 09:52 PM
更新者: