27.6.2 Data Direction Clear

This register allows the user to set one or more I/O pins as inputs, without performing a Read-Modify-Write (RMW) operation on the Data Direction register (DIR). Changes in this register will be reflected in the DIR, Data Direction Toggle (DIRTGL), and Data Direction Set (DIRSET) registers.
Name: DIRCLR
Offset: 0x04
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 DIR31CLRDIR30CLRDIR29CLRDIR28CLRDIR27CLRDIR26CLRDIR25CLRDIR24CLR 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 DIR23CLRDIR22CLRDIR21CLRDIR20CLRDIR19CLRDIR18CLRDIR17CLRDIR16CLR 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 DIR15CLRDIR14CLRDIR13CLRDIR12CLRDIR11CLRDIR10CLRDIR9CLRDIR8CLR 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 DIR7CLRDIR6CLRDIR5CLRDIR4CLRDIR3CLRDIR2CLRDIR1CLRDIR0CLR 
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 – DIRnCLR Port Data Direction n Clear

Writing a ‘0’ to a bit has no effect.

Writing a ‘1’ to a bit will clear the corresponding bit in the DIR register, which configures the I/O pin as an input.

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