After Reset, all outputs are tri-stated, and digital input buffers enabled even if there is no clock running.
The following steps are all optional when initializing PORT operation:
1
’ to bit n in the PORTx.DIRSET or
PORTx.DIRCLR register1
’ to bit n in the
PORTx.OUTSET or PORTx.OUTCLR registerSpecific pins, such as those used to connect a debugger, may be configured differently, as required by their special function.