SMSC LAN91C111 32/16/8-Bit Three-In-One Fast Ethernet Controller

Remote End Ping to LAN91C111 Routine

P ing th e LA N91 C11 1

Fro m Remo te En d

1

LA N91 C111 Receive d the

First Fram e

2

LA N91 C11 1 Ge ne rates a n In terru pt

Requ est to Ho st

3

Drive r En te rs Interru pt Se rvice Ro utine

Ho st P roce ssed Data & Se nt Tran smit

Req ue st to Dri ve r

10

Driver A llo cated o ne P ag e of the

LA N91C1 11 B uffer for Tr ansm it

11

Star te d to Tran smit Data fro m Host Memo ry to th e L AN9 1C1 11 Inte rna l Bu ffer

 

12

 

 

 

 

 

 

 

 

 

 

Com ple tely Tran smitted O ne Da ta

Ye s

 

Fram e to LA N91C1 11 B uffer a nd

 

 

 

 

 

E nqu eu ed it

 

 

 

 

 

4

Dr iver En ters Inter rup t Ha ndl er Rou ti ne

5

Ho st Re ad s Da ta in the

LA N91 C111 buffer to its

Mem ory B uffe r

6

Host Com ple te ly Re ad O ne Data

Fra me in th e LA N91 C11 1 Bu ffe r to its

Mem ory B uffe r

7

Re lea se d the Re ceive d Fram e

8

13

Th e LA N91 C11 1 Ge ner ated a

Tr ansm it In te rru pt

14

Rele ased th e Tran smitted Fr ame

Rem ote E nd Re ceived th e

En tire P acket

Host Dete rmin es Wh ethe r to Tra nsmit Mor e Fram es

No

Exit

Read REMP TY bit to Deter min e if More Fr ame s Ha s Be en Rece ived

Y es

9

No

 

 

Re mote E nd System Ca lcula te d Tota l

Tim e of the Ro utine and Di spla ye d it

Flow Chart

Figure 3.11 - Remote End Ping to LAN91C111 Routine

Revision 1.0 (08-14-08)

22

SMSC AN 9.6

APPLICATION NOTE