27.6.1 Data Direction

This register allows the user to configure one or more I/O pins as an input or output.

This register can be manipulated without performing a Read-Modify-Write (RMW) operation by using the Data Direction Toggle (DIRTGL), Data Direction Clear (DIRCLR), and Data Direction Set (DIRSET) registers.

Name: DIR
Offset: 0x00
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 DIR31DIR30DIR29DIR28DIR27DIR26DIR25DIR24 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 DIR23DIR22DIR21DIR20DIR19DIR18DIR17DIR16 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 DIR15DIR14DIR13DIR12DIR11DIR10DIR9DIR8 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 DIR7DIR6DIR5DIR4DIR3DIR2DIR1DIR0 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 – DIRn Port Data Direction n

These bits control the data direction for the individual I/O pins in the PORT group.
ValueDescription
0The I/O pin in the PORT group corresponding to this bit is configured as an input
1The I/O pin in the PORT group corresponding to this bit is configured as an output