Data Direction

Name:
DIR
Offset:
0x00
Reset:
0x00
Access:
-
Bit76543210
DIR[7:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

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

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.