27.4.1 Initialization

After reset, all standard function device I/O pads are connected to the PORT with outputs tri-stated and input buffers disabled, even if no clock is running.

However, specific pins, such as those used for connection to a debugger, may be configured differently as required by their special function.

To configure pin n in PORT group x as an output and control the output drive level:
  1. Set the direction (DIR[n]).
  2. Configure the drive level (OUT[n]).
To configure pin n in PORT group x as an input and read the input pin level:
  1. Enable the input buffer (PINCFG[n].INEN).
  2. Read the input level (IN[n]).