27.6.3 Data Direction Set

This register allows the user to set one or more I/O pins as outputs, 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 Clear (DIRCLR) registers.
Name: DIRSET
Offset: 0x08
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 DIR31SETDIR30SETDIR29SETDIR28SETDIR27SETDIR26SETDIR25SETDIR24SET 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 DIR23SETDIR22SETDIR21SETDIR20SETDIR19SETDIR18SETDIR17SETDIR16SET 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 DIR15SETDIR14SETDIR13SETDIR12SETDIR11SETDIR10SETDIR9SETDIR8SET 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 DIR7SETDIR6SETDIR5SETDIR4SETDIR3SETDIR2SETDIR1SETDIR0SET 
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 – DIRnSET Port Data Direction n Set

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

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

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