GPIO DIR0 addressOffset = 0x2000

Each GPIO port has one direction register for configuring the port pins as inputs or outputs.

Table 1. GPIO registerName = DIR0 addressOffset = 0x2000
Bit Symbol Description Reset value Access
17:0 DIRP0 Selects pin direction for pin PIO0_n (bit 0 = PIO0_0, bit 1 = PIO0_1, ..., bit 17 = PIO0_17). 0 = input. 1 = output. 0 R/W
31:18 - Reserved. 0 -

-->