S32K144: set "all" pins to high impedance

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

S32K144: set "all" pins to high impedance

1,127 Views
Joao_Roscoe
Contributor III

I'm working in project that, under certain conditions, must set as many MCU pins as possible into a high impedance state, and must be able to get back to normal operation later, when those conditions are not present anymore.

What would be that best way to achieve that?

My first idea is to configure "Alternative 0" (Disabled) in each pin's PORT PCR MUX mode field. Would that do? Do I need to do anything about programming the pin as input/output? Any other alternatives?

Best regards,

Joao

1 Reply

925 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

yes, your idea is right. In my opinion fastest way how to perform hi-z switch and restore back for all pins is store bits 8-10 for each PCR and PORT (memcpy to RAM?)  and set all bits to 0. When trigger condition are away, you can memcpy previously stored data back. 

Other possibility is perform Reset. 

Jiri