17.5.1 Data Direction

Name: DIR
Offset: 0x00
Reset: 0x00
Property: -

Bit 76543210 
 DIR[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 7:0 – DIR[7:0] Data Direction

This bit field selects the data direction for the individual pins n of the port.

Writing a '1' to PORT.DIR[n] configures and enables pin n as an output pin.

Writing a '0' to PORT.DIR[n] configures pin n as an input pin. It can be configured by writing to the ISC bit in PORT.PINnCTRL.