Figure 10.1 interrupt service routine, Datasheet – SMSC LAN91C111 User Manual
Page 88
10/100 Non-PCI Ethernet Single Chip MAC + PHY
Datasheet
Revision 1.91 (08-18-08)
88
SMSC LAN91C111 REV C
DATASHEET
Figure 10.1 Interrupt Service Routine
ISR
Save Bank Select & Address
Ptr Registers
Mask SMC91C111
Interrupts
Read Interrupt Register
Call TX INTR or TXEMPTY
INTR
TX INTR?
Get Next TX
RX INTR?
Yes
No
No
Yes
Call RXINTR
ALLOC INTR?
No
Yes
Write Allocated Pkt # into
Packet Number Reg.
Write Ad Ptr Reg. & Copy Data
& Source Address
Enqueue Packet
Packet
Available for
Transmission?
Yes
No
Call ALLOCATE
EPH INTR?
No
Yes
Call EPH INTR
Set "Ready for Packet" Flag
Return Buffers to Upper Layer
Disable Allocation Interrupt
Mask
Restore Address Pointer &
Bank Select Registers
Unmask SMC91C111
Interrupts
Exit ISR
MDINT?
Yes
Call MDINT