You copied the Doc URL to your clipboard.

3.3.2. Data direction register, GPIODIR

The GPIODIR register is the data direction register. Bits set to HIGH in the GPIODIR configure corresponding pin to be an output. Clearing a bit configures the pin to be input. All bits are cleared by a reset. Therefore, the GPIO pins are input by default.

Table 3.3 shows the bit assignment of the GPIODIR register.

GPIODIR register

Bits

Name

Type

Function

7:0

Data direction register

Read/

write

Bits set, pins output

Bits cleared, pins output

Was this page helpful? Yes No