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?