Two Port 10/100 Managed Ethernet Switch with
Datasheet
14.2.3.2General Purpose I/O Data & Direction Register (GPIO_DATA_DIR)Offset: | 1E4h | Size: | 32 bits |
This read/write register configures the direction of the 12 GPIO pins and contains the GPIO input and output data bits.
BITS | DESCRIPTION | TYPE | DEFAULT |
|
|
|
|
31:28 | RESERVED | RO | - |
|
|
|
|
27:16 | GPIO Direction | R/W | 0h |
| These bits set the input/output direction of the 12 GPIO pins. |
|
|
| 0: GPIO pin is configured as an input |
|
|
| 1: GPIO pin is configured as an output |
|
|
|
|
|
|
15:12 | RESERVED | RO | - |
|
|
|
|
11:0 | GPIO Data | R/W | 0h |
| When a GPIO pin is enabled as an output, the value written to this field is |
|
|
| output on the corresponding GPIO pin. Upon a read, the value returned |
|
|
| depends on the current direction of the pin. If the pin is an input, the data |
|
|
| reflects the current state of the corresponding GPIO pin. If the pin is an |
|
|
| output, the data is the value that was last written into this register. For |
|
|
| GPIOs |
|
|
| this register. For GPIOs 9 and 8, the pin direction is determined by the |
|
|
| GPDIR bits and the 1588_GPIO_OE bits in the General Purpose I/O |
|
|
|
|
| |
|
|
|
|
SMSC LAN9311/LAN9311i | 195 | Revision 1.4 |
| DATASHEET |
|