欢迎访问ic37.com |
会员登录 免费注册
发布采购

LAN9313I 参数 Datasheet PDF下载

LAN9313I图片预览
型号: LAN9313I
PDF下载: 下载PDF文件 查看货源
内容描述: 三端口10/100管理型以太网交换机MII [Three Port 10/100 Managed Ethernet Switch with MII]
分类和应用: 以太网局域网(LAN)标准
文件页数/大小: 398 页 / 4083 K
品牌: SMSC [ SMSC CORPORATION ]
 浏览型号LAN9313I的Datasheet PDF文件第138页浏览型号LAN9313I的Datasheet PDF文件第139页浏览型号LAN9313I的Datasheet PDF文件第140页浏览型号LAN9313I的Datasheet PDF文件第141页浏览型号LAN9313I的Datasheet PDF文件第143页浏览型号LAN9313I的Datasheet PDF文件第144页浏览型号LAN9313I的Datasheet PDF文件第145页浏览型号LAN9313I的Datasheet PDF文件第146页  
Three Port 10/100 Managed Ethernet Switch with MII  
Datasheet  
Chapter 12 GPIO/LED Controller  
12.1  
Functional Overview  
The GPIO/LED Controller provides 12 configurable general purpose input/output pins, GPIO[11:0].  
These pins can be individually configured to function as inputs, push-pull outputs, or open drain outputs  
and each is capable of interrupt generation with configurable polarity. Two of the GPIO pins (GPIO[9:8])  
can be used for IEEE 1588 timestamp functions, allowing GPIO driven 1588 time clock capture when  
configured as an input, or GPIO output generation based on an IEEE 1588 clock target compare event.  
In addition, 8 of the GPIO pins can be alternatively configured as LED outputs. These pins, GPIO[7:0]  
(nP1LED[3:0] and nP2LED[3:0]), may be enabled to drive Ethernet status LEDs for external indication  
of various attributes of the switch ports.  
GPIO and LED functionality is configured via the GPIO/LED System Control and Status Registers  
2
(CSRs), accessible through the I C/SPI serial interfaces or the MII/SMI interfaces. These registers are  
defined in Section 13.1.2, "GPIO/LED," on page 155.  
12.2  
GPIO Operation  
The GPIO controller is comprised of 12 programmable input/output pins. These pins are individually  
configurable via the GPIO CSRs. On application of a chip-level reset:  
„
„
„
All GPIOs are set as inputs (GPDIR[11:0] cleared in General Purpose I/O Data & Direction Register  
(GPIO_DATA_DIR))  
All GPIO interrupts are disabled (GPIO[11:0]_INT_EN cleared in General Purpose I/O Interrupt  
Status and Enable Register (GPIO_INT_STS_EN)  
All GPIO interrupts are configured to low logic level triggering (GPIO_INT_POL[11:0] cleared in  
General Purpose I/O Configuration Register (GPIO_CFG))  
Note: GPIO[7:0] may be configured as LED outputs by default, dependant on the LED_en_stap[7:0]  
configuration straps. Refer to Section 12.3, "LED Operation" for additional information.  
The direction and buffer type of all 12 GPIOs are configured via the General Purpose I/O Configuration  
Register (GPIO_CFG) and General Purpose I/O Data & Direction Register (GPIO_DATA_DIR). The  
direction of each GPIO, input or output, should be configured first via its respective GPIO direction bit  
(GPDIR[11:0]) in the General Purpose I/O Data & Direction Register (GPIO_DATA_DIR). When  
configured as an output, the output buffer type for each GPIO is selected by the GPIOBUF[11:0] bits  
in the General Purpose I/O Configuration Register (GPIO_CFG). Push/pull and open-drain output  
buffers are supported for each GPIO. When functioning as an open-drain driver, the GPIO output pin  
is driven low when the corresponding data register bit (GPIOD in the General Purpose I/O Data &  
Direction Register (GPIO_DATA_DIR)) is cleared to 0, and is not driven when set to 1.  
When a GPIO is enabled as an output, the value output to the GPIO pin is set via the corresponding  
GPIOD[11:0] bit in the General Purpose I/O Data & Direction Register (GPIO_DATA_DIR). For GPIOs  
configured as inputs, the corresponding GPIOD[11:0] bit reflects the current state of the GPIO input.  
Note: For GPIO[9:8], the pin direction is a function of both the GPDIR[9:8] bits of the General  
Purpose I/O Data & Direction Register (GPIO_DATA_DIR) and the 1588_GPIO_OE[9:8] bits in  
the General Purpose I/O Configuration Register (GPIO_CFG).  
Revision 1.2 (04-08-08)  
142  
SMSC LAN9313/LAN9313i  
DATASHEET  
 复制成功!