27.6.4 Data Direction Toggle

This register allows the user to toggle the direction of one or more I/O pins 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 Set (DIRSET), and Data Direction Clear (DIRCLR) registers.
Name: DIRTGL
Offset: 0x0C
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 DIR31TGLDIR30TGLDIR29TGLDIR28TGLDIR27TGLDIR26TGLDIR25TGLDIR24TGL 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 DIR23TGLDIR22TGLDIR21TGLDIR20TGLDIR19TGLDIR18TGLDIR17TGLDIR16TGL 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 DIR15TGLDIR14TGLDIR13TGLDIR12TGLDIR11TGLDIR10TGLDIR9TGLDIR8TGL 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 DIR7TGLDIR6TGLDIR5TGLDIR4TGLDIR3TGLDIR2TGLDIR1TGLDIR0TGL 
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 – DIRnTGL Port Data Direction n Toggle

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

Writing a ‘1’ to a bit will toggle the corresponding bit in the DIR register, which reverses the direction of the I/O pin.

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