5 data direction – ARM IM-AD1 User Manual

Page 68

Advertising
background image

Reference Design Example

4-22

Copyright © 2001-2003. All rights reserved.

ARM DUI 0163B

4.8.5

Data direction

The GPIO_DIRN location is used to set the direction of each GPIO pin as follows:

1 = pin is an output

0 = pin is an input (default).

Figure 4-6 shows the data direction control for one GPIO bit.

Figure 4-6 GPIO direction control (1 bit)

Data direction register

Data register

Read data output

Read data input

Pin/pad

Advertising