S32K3 GPIO HIGH-Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,407件の閲覧回数
Chenxu1
Contributor II

Hi,NXP experts
In S32DS3.5, how do I configure pin to state HIGH-Z?   S32K312+RTD4.0.0
In picture 1 it says can be configured as HIGH-Z,but I can't find the configuration item.

Chenxu1_0-1733391241328.png

Chenxu1_1-1733391247913.png

It is configurable in EB(picture 3).

Chenxu1_2-1733391410995.png

 



 

0 件の賞賛
返信
1 解決策
1,374件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chenxu1 

Unlike EB Tresos, S32 ConfigTools does not have the option to set the PortPin Direction to PORT_PIN_HIGH_Z, as this is the default value. If you want to change it, you can use the functions Siul2_Port_Ip_SetPinDirection() or Port_SetPinDirection().

 

BR, VaneB

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
927件の閲覧回数
ASN7
Contributor III

For anyone looking on using Siul2_Port_Ip_SetPinDirection to set to Hi-Z, here is how to call the function:

Siul2_Port_Ip_SetPinDirection(PORT, PIN, SIUL2_PORT_HI_Z);


For input variable 1 of the function, which is `Siul2_Port_Ip_PortType * const base`, you need to use the defines mentioned in `Siul2_Port_Ip_Defines.h` and not the ones `Siul2_Port_Ip_Cfg.h`. You can find out what define the Pin you are using belongs to by checking in  `Siul2_Port_Ip_Cfg.h` as shown below:

ASN71_0-1744013239920.png

Now that PTD_H_HALF is known, which is Port D High Half Base, find it in `Siul2_Port_Ip_Defines.h` and use it as the first input argument. 



For input variable 2, you can use the defines mentioned in  `Siul2_Port_Ip_Cfg.h` which is nothing but the Pin Number. 

Once the pin is set to SIUL2_PORT_HI_Z, you do not have to use Siul2_Dio_Ip_WritePin function as it is only used to set the Pin to High or Low and not for SIUL2_PORT_HI_Z.  

 I hope this gives a bit more clarity. 

0 件の賞賛
返信
1,375件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chenxu1 

Unlike EB Tresos, S32 ConfigTools does not have the option to set the PortPin Direction to PORT_PIN_HIGH_Z, as this is the default value. If you want to change it, you can use the functions Siul2_Port_Ip_SetPinDirection() or Port_SetPinDirection().

 

BR, VaneB

0 件の賞賛
返信