3 ethernet phy interrupts, 4 gpio interrupts, 5 host mac interrupts – SMSC LAN9312 User Manual

Page 52: Ethernet phy interrupts, Gpio interrupts, Host mac interrupts, Section 5.2.3, "ethernet phy interrupts, Datasheet 5.2.3 ethernet phy interrupts

Advertising
background image

High Performance Two Port 10/100 Managed Ethernet Switch with 32-Bit Non-PCI CPU Interface

Datasheet

Revision 1.4 (08-19-08)

52

SMSC LAN9312

DATASHEET

5.2.3

Ethernet PHY Interrupts

The Port 1 and Port 2 PHYs each provide a set of identical interrupt sources. The top-level PHY_INT1
(bit 26) and PHY_INT2 (bit 27) of the

Interrupt Status Register (INT_STS)

provides indication that a

P H Y i n t e r r u p t e v e n t o c c u r r e d i n t h e

P o r t x P H Y I n t e r r u p t S o u r c e F l a g s R e g i s t e r

(PHY_INTERRUPT_SOURCE_x)

.

Port 1 and Port 2 PHY interrupts are enabled/disabled via their respective

Port x PHY Interrupt Mask

Register (PHY_INTERRUPT_MASK_x)

. The source of a PHY interrupt can be determined and cleared

via the

Port x PHY Interrupt Source Flags Register (PHY_INTERRUPT_SOURCE_x)

. The Port 1 and

Port 2 PHYs are each capable of generating unique interrupts based on the following events:

„

ENERGYON Activated

„

Auto-Negotiation Complete

„

Remote Fault Detected

„

Link Down (Link Status Negated)

„

Auto-Negotiation LP Acknowledge

„

Parallel Detection Fault

„

Auto-Negotiation Page Received

In order for a Port 1 or Port 2 interrupt event to trigger the external IRQ interrupt pin, the desired PHY
interrupt event must be enabled in the corresponding

Port x PHY Interrupt Mask Register

(PHY_INTERRUPT_MASK_x)

, the PHY_INT1(Port 1 PHY) and/or PHY_INT2(Port 2 PHY) bits of the

Interrupt Enable Register (INT_EN)

must be set, and IRQ output must be enabled via bit 8 (IRQ_EN)

of the

Interrupt Configuration Register (IRQ_CFG)

.

For additional details on the Ethernet PHY interrupts, refer to

Section 7.2.8.1, "PHY Interrupts," on

page 94

.

5.2.4

GPIO Interrupts

Each GPIO[11:0] of the LAN9312 is provided with its own interrupt. The top-level GPIO (bit 12) of the

Interrupt Status Register (INT_STS)

provides indication that a GPIO interrupt event occurred in the

General Purpose I/O Interrupt Status and Enable Register (GPIO_INT_STS_EN)

. The

General

Purpose I/O Interrupt Status and Enable Register (GPIO_INT_STS_EN)

provides enabling/disabling

and status of each GPIO[11:0] interrupt.

In order for a GPIO interrupt event to trigger the external IRQ interrupt pin, the desired GPIO interrupt
m u s t b e e n a b l e d i n t h e

G e n e r a l P u r p o s e I / O I n t e r r u p t Stat u s a n d E n a b le Re g i s t e r

(GPIO_INT_STS_EN)

, bit 12 (GPIO_EN) of the

Interrupt Enable Register (INT_EN)

must be set, and

IRQ output must be enabled via bit 8 (IRQ_EN) of the

Interrupt Configuration Register (IRQ_CFG)

.

For additional details on the GPIO interrupts, refer to

Section 13.2.2, "GPIO Interrupts," on page 163

.

5.2.5

Host MAC Interrupts

The top-level

Interrupt Status Register (INT_STS)

, and

Interrupt Enable Register (INT_EN)

provide the

status and enabling/disabling of multiple Host MAC related interrupts. All Host MAC interrupts are
monitored and configured directly within these two registers. The following Host MAC related interrupt
events are supported:

„

TX Stopped

„

RX Stopped

„

RX Dropped Frame Counter Halfway

„

TX IOC

„

RX DMA

Advertising