I am having this microcontroller - S32K142 64 pin 5V core voltage
I have a few pins which I don't want to use. While checking the datasheet of the Microcontroller, I couldn't find any information regarding 'on what to do with the unused pins'
So, I checked the reference manual of the Microcontroller. Reference Manual
In the reference manual, Section 12.7.1 page 203-204, they have given the below :
My questions :
I couldn't understand what they are saying on 'what to do, If I have an used pin in the Microcontroller'? Can someone tell me what the Reference manual is recommending me to do incase I have some unused pins? Or is there any other place in the reference manual where they mention on what to with the unused pins of the Microcontroller?
I have read a few answers in this site which advice on what to do with the unused Microcontroller pins. For instance, the accepted answer for this question gives a last solution to leave the 'output pins unconnected, but make the pin output'.
My doubt is, like, which configuring a uC pin, we need to specify the all below information, right?
- Whether the pin is Input / Output or Both?
- Whether it should be High / Low?
- Whether Internal Pull-up Enabled or Disabled?
- Whether Internal Pull-down Enabled or Disabled?
So, when the last solution of the accepted answer mentioned 'leave unconnected but make the pin output, what are the pin configurations mentioned above 1-4 do we need to follow for the pin? And why? Please explain in simple terms on why does the solution mentions 'A high level is preferred in case you forgot to switch off the internal pull-up resistors' - Does it mention we need to enable the internal pull-up or disable them?
- How do you make a pin to be in the high-impedance state? Like should it be Output -High Internal Pull-up enabled? or Output-High Internal Pull-up disabled?
Please help to clarify these doubts