Part Number Hot Search : 
GVXO753 1N6273A 70012 DN8799 SI8250 ZLNB2013 5M0365 G7151
Product Description
Full Text Search
 

To Download LAN91C111I-NS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  smsc lan91c111 rev c datasheet revision 1.92 (06-27-11) datasheet product features lan91c111 10/100 non-pci ethernet single chip mac + phy ? single chip ethernet controller ? dual speed - 10/100 mbps ? fully supports full duplex switched ethernet ? supports burst data transfer ? 8 kbytes internal memory for receive and transmit fifo buffers ? enhanced power management features ? optional configuration vi a serial eeprom interface ? supports 8, 16 and 32 bit cpu accesses ? internal 32 bit wide data path (into packet buffer memory) ? built-in transparent arbitr ation for slave sequential access architecture ? flat mmu architecture with symmetric transmit and receive structures and queues ? 3.3v operation with 5v tolerant io buffers (see pin list description for additional details) ? single 25 mhz reference clock for both phy and mac ? external 25mhz-output pin for an external phy supporting phys physical media. ? low power cmos design ? supports multiple embedded processor host interfaces arm sh power pc coldfire 680x0, 683xx mips r3000 ? 3.3v mii (media independent interface) mac-phy interface running at nibble rate ? mii management serial interface ? 128-pin qfp lead-free rohs compliant package ? 128-pin tqfp 1.0 mm height lead-free rohs compliant package ? commercial temperature range from 0 c to 70 c (lan91c111) ? industrial temperature range from -40 c to 85 c (lan91c111i) network interface ? fully integrated ieee 802.3/802.3u-100base-tx/ 10base-t physical layer ? auto negotiation: 10/100, full / half duplex ? on chip wave shaping - no external filters required ? adaptive equalizer ? baseline wander correction ? led outputs (user selectable C up to 2 led functions at one time) link activity full duplex 10/100 transmit receive downloaded from: http:///
order numbers: lan91c111-ns, LAN91C111I-NS (industrial temperature) for 128-pin qfp lead-free rohs compliant packages lan91c111-nu (1.0mm height); lan91c 111i-nu (industr ial temperature) for 128-pin tqfp lead-free rohs compliant packages this product meets the halogen maximum concentration values per iec61249-2-21 for rohs compliance and environmen tal information, please visit www.smsc.com/rohs 10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 2 smsc lan91c111 rev c datasheet 80 arkay drive, hauppauge, ny 11788 (631) 435-6000 or 1 (800) 443-semi copyright ? 2011 smsc or its subsidiaries. all rights reserved. circuit diagrams and other information relating to smsc produc ts are included as a means of illustrating typical applications. consequently, complete information sufficient for construction purposes is not necessarily given. although the information has been checked and is believed to b e accurate, no re sponsibility is assumed for inaccuracies. smsc reserves the right to make changes to specifications and produc t descriptions at any time without notice. contact your local sm sc sales office to obtain the latest specifications before placing your product order. the provision of this inform ation does not convey to the purchaser of the described semicond uctor devices any licenses under any patent rights or other intellectual property rights of smsc or others. all sales are expr essly conditional on your agreement to the te rms and conditions of the most recently dated version of smsc's standard terms of sale agreement dated before the date of your order (the "terms of sale agreement"). the pro duct may contain design defects or errors known as anomalies which may cause the product's functions to deviate from published specifications . anomaly sheets are availab le upon request. smsc products are not designed, intended, authorized or warranted for use in any life support or other applicati on where product failure could cause or contribute to personal injury or severe property damage. any and all such uses without prior written approval of an officer of smsc and furthe r testing and/or modification will be fully at the risk of the customer. copies of this document or other smsc literature, as well as the terms of sale agreement, may be obtai ned by visiting smscs website at h ttp://www.smsc.com. smsc is a registered trademark of standard microsystems corporat ion (smsc). product names and company na mes are the trademarks of their respective holders. smsc disclaims and excludes any and all warrant ies, including without limi tation any and all implied warranties of merchantabil ity, fitness for a particular purpose, title, a nd against infringement and the like, and any and all warranties arising from any cou rse of dealing or usage of trade. in no event shall smsc be liable for any direct, incidental, indi rect, special, punitive, or cons equential damages; or for lost data, profits, savings or revenues of any kind; regardless of the form of action, whether based on contrac t; tort; negligence of smsc or others; strict liability; breach of wa rranty; or otherwise; whether or not any remedy of buyer is h eld to have failed of its essential purpose, and whether or not smsc has been advised of the possibility of such damages. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 3 revision 1.92 (06-27-11) datasheet table of contents chapter 1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 chapter 2 pin configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 chapter 3 block diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 chapter 4 signal descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 chapter 5 description of pin functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 chapter 6 signal description parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.1 buffer types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 chapter 7 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.1 clock generator block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2 csma/cd block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2.1 dma block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2.2 arbiter block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.3 mmu block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.4 biu block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.5 mac-phy interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.5.1 management data software implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.5.2 management data timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.5.3 mi serial port frame structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.5.4 mii packet data communication with external phy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.6 serial eeprom interf ace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.7 internal physical layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.7.1 mii disable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.7.2 encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.7.3 decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.7.4 clock and data recove ry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.7.5 scrambler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.7.6 descrambler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.7.7 twisted pair transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.7.8 twisted pair receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.7.9 collision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.7.10 start of packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.7.11 end of packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.7.12 link integrity & autonegotiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.7.13 jabber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.7.14 receive polarity correction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.7.15 full duplex mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.7.16 loopback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.7.17 phy powerdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.7.18 phy interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 7.8 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 chapter 8 mac data structures and regi sters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 8.1 frame format in buffer memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 4 smsc lan91c111 rev c datasheet 8.2 receive frame status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 8.3 i/o space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 8.4 bank select register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 8.5 bank 0 - transmit control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 8.6 bank 0 - eph status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 8.7 bank 0 - receive control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 8.8 bank 0 - counter register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 8.9 bank 0 - memory information register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 8.10 bank 0 - receive/phy control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 8.11 bank 1 - configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 8.12 bank 1 - base address register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 8.13 bank 1 - individual address registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 8.14 bank 1 - general purpose register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 8.15 bank 1 - control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 8.16 bank 2 - mmu command register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 8.17 bank 2 - packet number register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 8.18 bank 2 - fifo ports register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 8.19 bank 2 - pointer register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 8.20 bank 2 - data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 8.21 bank 2 - interrupt status registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 8.22 bank 3 - multicast table registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 8.23 bank 3 - management interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 8.24 bank 3 - revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 8.25 bank 3 - rcv register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 8.26 bank 7 - external registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 chapter 9 phy mii registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 9.1 register 0. control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 9.2 register 1. status register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 9.3 register 2&3. phy identifier register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 9.4 register 4. auto-negotiation advertisement register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 9.5 register 5. auto-negotiation remote end capability register . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 9.6 register 16. configuration 1- structure and bit definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 9.7 register 17. configuration 2 - structure and bit definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.8 register 18. status output - structure and bit definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.9 register 19. mask - structure and bit definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 9.10 register 20. reserved - structure and bit definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 chapter 10 software driver and hardware sequence flow . . . . . . . . . . . . . . . . . . . . . . . . . 88 10.1 software driver and hardware sequence flow for po wer management . . . . . . . . . . . . . . . . . . . . 88 10.2 typical flow of events for transmit (auto release = 0). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 10.3 typical flow of events for transmit (auto release = 1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 10.4 typical flow of event for receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 chapter 11 board setup information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 chapter 12 application considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 chapter 13 operational description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 13.1 maximum guaranteed ratings* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 13.2 dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 13.3 twisted pair characteristics, transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 13.4 twisted pair characteristics, receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 5 revision 1.92 (06-27-11) datasheet chapter 14 timing diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 chapter 15 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 chapter 16 datasheet revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 6 smsc lan91c111 rev c datasheet list of figures figure 2.1 pin configuration - lan91c111-feast 128 pin tqfp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2.2 pin configuration - lan91c111-feast 128 pin qfp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 3.1 basic functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 3.2 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 3.3 lan91c111 physical layer to internal mac block di agram. . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 7.1 mi serial port frame timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 7.2 mii frame format & mii nibble order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 7.3 tx/10bt frame format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 7.4 tp output voltage template - 10 mbps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 7.5 tp input voltage template -10mbps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 7.6 soi output voltage temp late - 10mbps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 7.7 link pulse output voltage template - nlp, flp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 7.8 nlp vs. flp link pulse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 figure 8.1 data frame format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 figure 8.2 interrupt structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 figure 10.1 interrupt service routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 10.2 rx intr. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 10.3 tx intr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 10.4 txempty intr (assumes auto release option selected) . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 10.5 drive send and allocate routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 10.6 interrupt generation for transmit, receive, mmu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 11.1 64 x 16 serial eeprom map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 12.1 lan91c111 on vl bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 figure 12.2 lan91c111 on isa bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 figure 12.3 lan91c111 on eisa bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 figure 14.1 asynchronous cycle - nads=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 figure 14.2 asynchronous cycle - using nads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 14.3 asynchronous cycle - nads=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 figure 14.4 asynchronous ready . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 figure 14.5 burst write cycles - nvlbus=1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 14.6 burst read cycles - nvlbus=1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 figure 14.7 address latching for all modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 figure 14.8 synchronous write cycle - nvlbus=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 0 figure 14.9 synchronous read cycle - nvlbus=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 figure 14.10mii timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 figure 14.11transmit timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 figure 14.12receive timing, end of packet - 10 mbps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 figure 14.13collision timing, receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 figure 14.14collision timing, transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 figure 14.15jam timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 figure 14.16link pulse timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 figure 14.17flp link pulse timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 figure 15.1 128 pin tqfp package outline, 14x14x1.0 body . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 figure 15.2 128 pin qfp package outline, 3.9 mm footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 7 revision 1.92 (06-27-11) datasheet list of tables table 4.1 lan91c111 pin requirements (128 pin qfp an d 1.0mm tqfp package) . . . . . . . . . . . . . . 14 table 7.1 4b/5b symbol mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 7.2 transmit level adjust . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 8.1 internal i/o space mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 9.1 mii serial frame structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 9.2 mii serial port register map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 10.1 typical flow of events for placing device in lo w power mode . . . . . . . . . . . . . . . . . . . . . . 88 table 10.2 flow of events for restoring de vice in normal power mode . . . . . . . . . . . . . . . . . . . . . . . . 89 table 12.1 vl local bus signal connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 12.2 high-end isa or non-burst eisa machines signal co nnectors . . . . . . . . . . . . . . . . . . . . . . 105 table 12.3 eisa 32 bit slave signal connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 table 14.1 transmit timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 table 14.2 receive timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 table 14.3 collision and jam timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 table 14.4 link pulse timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 table 15.1 128 pin tqfp package parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 31 table 15.2 128 pin qfp package parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 table 16.1 customer revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 8 smsc lan91c111 rev c datasheet chapter 1 general description the smsc lan91c111 is designed to facilitate the implementation of a third generation of fast ethernet connectivity solutions for embedded applic ations. for this third generation of products, flexibility and integration dominate the design requirements. the lan91c111 is a mixed signal analog/digital device that implements the mac and phy portion of the csma/cd protocol at 10 and 100 mbps. the design will also minimize data throughput constraints utilizing a 32-bit, 16-bit or 8-bit bus host interface in embedded applications. the total internal memory fifo buffer size is 8 kbytes, which is the total chip storage for transmit and receive operations. the smsc lan91c111 is software compatible with the lan9000 family of products. memory management is handled using a pate nted optimized mmu (memory management unit) architecture and a 32-bit wide internal data path. this i/o mapped architecture can sustain back-to- back frame transmission and reception for superior data throughput and optimal performance. it also dynamically allocates buffer memory in an efficien t buffer utilization scheme, reducing software tasks and relieving the host cpu from perf orming these housekeeping functions. the smsc lan91c111 provides a flexible slave in terface for easy connectivity with industry-standard buses. the bus interface unit (biu) can handle sync hronous as well as asyn chronous transfers, with different signals being used for each one. asynchr onous bus support for isa is supported even though isa cannot sustain 100 mbps traffic. fast ethernet data rates are attainable for isa-based nodes on the basis of the aggregate traffic benefits. two different interfaces are supported on the networ k side. the first interface is a standard magnetics transmit/receive pair interfacing to 10/100base-t utilizing the internal physical layer block. the second interface follows the mii (media inde pendent interface) specif ication standard, consisting of 4 bit wide data transfers at the nibble rate. this interface is applicable to 10 mbps standard ethernet or 100 mbps ethernet networks. three of the la n91c111s pins are used to interface to the two-line mii serial management protocol. the smsc lan91c111 integrates ieee 802.3 physical layer for twisted pair ethernet applications. the phy can be configured for either 100 mbps ( 100base-tx) or 10 mbps (10base-t) ethernet operation. the analog phy block consists of a 4b5b/manchester encoder/decoder, scrambler/de- scrambler, transmitter with wave shaping and output driver, twisted pair receiver with on chip equalizer and baseline wander correction, clock and data recove ry, auto-negotiation, co ntroller interface (mii), and serial port (mi). internal output wave shaping circuitry and on-chip filters eliminate the need for external filters normally required in 100base-tx and 10base-t applications. the lan91c111 can automatically conf igure itself for 100 or 10 mbps and full or half duplex operation with the on-chip auto-negotiation algorithm. the lan91c111 is ideal for media interfaces for embedded application desiring ethernet connectivity as well as 100base-tx/10base-t adapter cards, motherboards, repeaters, switchin g hubs. the lan91c111 operates from a single 3.3v supply. the inputs and outputs of the host interface are 5v tole rant and will directly inte rface to other 5v devices. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 9 revision 1.92 (06-27-11) datasheet chapter 2 pin configurations figure 2.1 pin configuration - lan91c111-feast 128 pin tqfp 3334 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 128127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 9998 97 9695 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 12 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 pin configuration nbe2nbe1 nbe0 gnd a15 a14 a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 vdd d8 d9 d10 d11 gnd d12 d13 d14 d15 gnd d16 d17 vdd ncsout ios0ios1 ios2 eneep eedo eedi eesk eecs avdd rbias agnd tpo+ tpo- avdd tpi+ tpi- agnd nlnk lbk nledanledb gnd mdi mdo mclk ncntrl intr0 reset nrd nwr xtal2xtal1 rx_er rx_dv rxd0 rxd1 rxd2 rxd3 vdd crs100 rx25 gnd txd0 txd1 txd2 txd3 col100 txen100 vdd tx25 gnd d0 d1 d2 d3 gnd d4 d5 d6 d7 vdd nbe3 vdd ndatacs ncycle w/nr nads ardy gnd nvlbus aen lclk nsrdy vdd nldev nrdyrtn x25out d31 d30 d29 d28 gnd d27 d26 d25 d24 gnd d23 d22 d21 d20 vdd d19 d18 lan91c111- feast tm 128 pin tqfp downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 10 smsc lan91c111 rev c datasheet figure 2.2 pin configuration - lan91c111-feast 128 pin qfp 12 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 128127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102101 100 9998 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 3940 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 pin configuration lan91c111- feast tm 128 pin qfp xtal1xtal2 vdd ncsout ios0ios1 ios2 eneep eedo eedi eeskeecs avdd rbias agnd tpo+ tpo- avdd tpi+ tpi- agnd nlnk lbk nledanledb gnd mdi mdo mclk ncntrl intr0 reset nrd nwr vdd ndatacs ncycle w/nr rx_errx_dv rxd0 rxd1 rxd2 rxd3 vdd crs100 rx25 gnd txd0 txd1 txd2 txd3 col100 txen100 vdd tx25 gnd d0 d1 d2 d3 gnd d4 d5 d6d7 vdd nbe3 nbe2 nbe1 nbe0 gnd a15 a14 a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 vdd d8 d9 d10 d11 gnd d12 d13 d14 d15 gnd d16 d17 d18 d19 nads ardy gnd nvlbus aen lclk nsrdy vdd nldev nrdyrtn x25out d31d30 d29 d28 gnd d27d26 d25 d24 gnd d23d22 d21 d20 vdd downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 11 revision 1.92 (06-27-11) datasheet chapter 3 block diagrams the diagram shown in figure 3.1, "basic functional block diagram", describes the device basic functional blocks. the smsc lan91c111 is a single chip solution for embedded designs with minimal host and external supporting devices required to implement 10/100 ethernet connectivity solutions. the optional serial eeprom is used to store information relating to default io offset parameters as well as which of the interrupt line are used by the host. figure 3.1 basic functi onal block diagram phy core ethernet mac lan91c111 internal ieee 802.3 mii (media independent interface) serial eeprom (optional) isa,embedded processor transformer rj45 minimal lan91c111 configuration host system tx/rx buffer (8k) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 12 smsc lan91c111 rev c datasheet the diagram shown in figure 3.2 describes the supported host interfaces, which include isa or generic embedded. the host interface is an 8, 16 or 32 bit wide address / data bus with extensions for 32, 16 and 8 bit embedded risc and arm processors. the figure shown next page describes the smsc lan91c111 functional blocks required to integrate a 10/100 ethernet physical layer framer to the internal mac. figure 3.2 block diagram 8-32 bit bus interface unit arbiter dma mmu ethernet protocol handler (eph) 10/100 phy 8k byte dynamically allocated sram wr fifo rd fifo control rx data tx data control control mii address data control control rxd[0-3] txd[0-3] control tx/rx fifo pointer tpi tpo control eeprom interface 32-bit data 32-bit data downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 13 revision 1.92 (06-27-11) datasheet figure 3.3 lan91c111 physical layer to internal m ac block diagram c o l l i s i o n 4 b 5 b d e c o d e r d e s c r a m b l e r c l o c k & d a t a r e c o v e r y a u t o n e g o t i a t i o n & l i n k s q u e l c h c l o c k & d a t a r e c o v e r y ( m a n c h e s t e r d e c o d e r ) l p f i l t e r r o m d a c + - 1 0 b a s e - t t r a n s m i t t e r c l o c k g e n ( p l l ) m a n c h e s t e r 4 b 5 b e n c o d e r s c r a m b l e r t p o + s w i t c h e d c u r r e n t s o u r c e + - 1 0 0 b a s e - t x t r a n s m i t t e r c l o c k g e n ( p l l ) t p o - l p f i l t e r t p i + t p i - l p f i l t e r + - + / - v t h + 1 0 b a s e - t r e c e i v e r m l t 3 e n c o d e r a d a p t i v e e q u a l i z e r + + / - v t h + 1 0 0 b a s e - t x r e c e i v e r m l t e n c o d e r s q u e l c h r b i a s csma/cd s 1 s 8 d c 1 en b c 3 c 2 multiplexer s 1 s 8 d c 1 en b c 3 c 2 ls[2-0]b leda ledb npled[0-5] ls[2-0]a led control power on reset phy controls txd[3:0] tx_er txen100 tx25 crs100 col100 rxd[3:0] rx_er rx_dv rx25 mclk mdo eecseesk eedo to mii external signals mii autoneg logic eeprom control mdi mii serial manage -ment mii external signals eedi multiplexer - downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 14 smsc lan91c111 rev c datasheet chapter 4 signal descriptions table 4.1 lan91c111 pin requirements (128 pin qfp and 1.0mm tqfp package) function pin symbols number of pins system address bus a1-a15, aen, nbe0-nbe3 20 system data bus d0-d31 32 system control bus reset, nads, lclk, ardy, nrdyrtn, nsrdy, intr0, nldev, nrd, nwr, ndatacs, ncycle, w/nr, nvlbus 14 serial eeprom eedi, eedo, eecs, eesk, eneep, ios0-ios2 8 leds nleda, nledb 2 phy tpo+, tpo-, tpi+, tpi-, nlnk, lbk, ncntrl, rbias 8 crystal oscillator xtal1, xtal2 2 power vdd, avdd 10 ground gnd, agnd 12 physical interface (mii) txen100, crs100, col100, rx_dv, rx_er, txd0-txd3, rxd0-rxd3, mdi, mdo, mclk, rx25, tx25 18 misc ncsout, x25out 2 total 128 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 15 revision 1.92 (06-27-11) datasheet chapter 5 description of pin functions pin no. name symbol buffer type description tqfp qfp 81-92 83-94 address a4-a15 i** input. decoded by lan91c111 to determine access to its registers. 78-80 80-82 address a1-a3 i** input. used by lan91c111 for internal register selection. 41 43 address enable aen i** input. used as an address qualifier. address decoding is only enabled when aen is low. 94-97 96-99 nbyte enable nbe0- nbe3 i** input. used during lan91c111 register accesses to determine the width of the access and the register(s) being accessed. nbe0-nbe3 are ignored when ndatacs is low (burst accesses) because 32 bit transfers are assumed. 107-104, 102-99, 76- 73, 71-68, 66-63, 61- 58, 56-53, 51-48 109-106, 104-101, 78-75, 73- 70, 68-65, 63-60, 58- 55, 53-50 data bus d0-d31 i/o24** bidirectional. 32 bit data bus used to access the lan91c111s internal registers. data bus has weak internal pullups. supports direct connection to the system bus without external buffering. for 16 bit systems, only d0-d15 are used. 30 32 reset reset is** input. when th is pin is asse rted high, the controller performs an internal system (mac & phy) reset. it programs all the registers to their default value, the controller will read the eeprom device through the eeprom interface ( note 5.1 ). this input is not considered active unless it is active for at least 100ns to filter narrow glitches. 37 39 naddress strobe nads is** input. for systems that require address latching, the rising edge of nads indicates the latching moment for a1-a15 and aen. all lan91c111 internal functions of a1-a15, aen are latched except for nldev decoding. 35 37 ncycle ncycle i** input. this active low signal is used to control lan91c111 eisa burst mode synchronous bus cycles. 36 38 write/ nread w/nr is** input. defines the direction of synchronous cycles. write cycles when high, read cycles when low. 40 42 nvl bus access nvlbus i with pullup** input. when low, the lan91c111 synchronous bus interface is configured for vl bus accesses. otherwise, the lan91c111 is configured for eisa dma burst accesses. does not affect the asynchronous bus interface. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 16 smsc lan91c111 rev c datasheet 42 44 local bus clock lclk i** input. used to interface synchronous buses. maximum frequency is 50 mhz. limited to 8.33 mhz for eisa dma burst mode. this pin should be tied high if it is in asynchronous mode. 38 40 asynchronous ready ardy od16 open drain output. ardy may be used when interfacing asynchronous buses to extend accesses. its rising (access completion) edge is controlled by the xtal1 clock and, therefore, asynchronous to the host cpu or bus clock. ardy is negated during asynchronous cycle when one of the following conditions occurs: no_wait bit in the configuration register is cleared. read fifo contains less than 4 bytes when read. write fifo is full when write. 43 45 nsynchronous ready nsrdy o16 output. this output is used when interfacing synchronous buses and nvlbus=0 to extend accesses. this signal remains normally inactive, and its falling edge indicates completion. this signal is synchronous to the bus clock lclk. 46 48 nready return nrdyrtn i** input. this input is used to complete synchronous read cycl es. in eisa burst mode it is sampled on falling lclk edges, and synchronous cycles are delayed until it is sampled high. 29 31 interrupt intr0 o24 interrupt output C active high, its used to interrupt the host on a status event. note: the selection bits used to determined by the value of int sel 1-0 bits in the configuration register are no longer required and have been set to reserved in this revision of the feast family of devices. 45 47 nlocal device nldev o16 output. th is active low output is asserted when aen is low and a4-a15 decode to the lan91c111 address programmed into the high byte of the base address register. nldev is a combinatorial decode of unlatched address and aen signals. 31 33 nread strobe nrd is** input. used in asynchronous bus interfaces. 32 34 nwrite strobe nwr is** input. used in asynchronous bus interfaces. 34 36 ndata path chip select ndatacs i with pullup** input. when ndatacs is low, the data path can be accessed regardless of the values of aen, a1-a15 and the content of the bank select register. ndatacs provides an interface for bursting to and from the lan91c111 32 bits at a time. pin no. name symbol buffer type description tqfp qfp downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 17 revision 1.92 (06-27-11) datasheet 9 11 eeprom clock eesk o4 output. 4 sec clock used to shift data in and out of the serial eeprom. 10 12 eeprom select eecs o4 output. serial eeprom chip select. used for selection and command framing of the serial eeprom. 7 9 eeprom data out eedo o4 output. connected to the di input of the serial eeprom. 8 10 eeprom data in eedi i with pulldown ** input. connected to the do output of the serial eeprom. 3-5 5-7 i/o base ios0-ios2 i with pullup** input. external switches can be connected to these lines to select between predefined eeprom configurations. 68e n a b l e eeprom eneep i with pullup** input. enables (when high or open) lan91c111 accesses to the serial eeprom. must be grounded if no eeprom is conne cted to the lan91c111. 127, 128 1, 2 crystal 1 crystal 2 xtal1 xtal2 iclk** an external 25 mhz crystal is connected across these pins. if a ttl clock is supplied instead, it should be connected to xtal1 and xtal2 should be left open. xtal1 is the 5v tolerant input of the internal amplifier and xtal2 is the output of the internal amplifier. 1, 33, 44, 62, 77, 98, 110, 120 3, 35, 46, 64, 79, 100, 112, 122 power vdd +3.3v power supply pins. 11, 16 13, 18 analog power avdd +3.3v analog power supply pins. 24, 39, 52, 57, 67, 72, 93, 103, 108, 117 26, 41, 54, 59, 69, 74, 95, 105, 110, 119 ground gnd ground pins. 13, 19 15, 21 analog ground agnd analog ground pins 21 23 loopback lbk o4 output. active when loop bit is set (tcr bit 1). 20 22 nlink status nlnk i with pullup input. general-purpose input port used to convey link status (ephsr bit 14). 28 30 ncntrl ncntrl o12 general purpose control pin 47 49 x25out x25out o12 25mhz output to external phy 111 113 transmit enable 100 mbps txen100 o12 output to mii phy. envelope to 100 mbps transmission. 119 121 carrier sense 100 mbps crs100 i with pulldown input from mii phy. envelope of packet reception used for deferral and backoff purposes. pin no. name symbol buffer type description tqfp qfp downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 18 smsc lan91c111 rev c datasheet note 5.1 if the eeprom is enabled. 125 127 receive data valid rx_dv i with pulldown input from mii phy. envelope of data valid reception. used for receive data framing. 112 114 collision detect 100 mbps col100 i with pulldown input from mii phy. collision detection input. 113-116 115-118 transmit data txd3- txd0 o12 outputs. transmit data nibble to mii phy. 109 111 transmit clock tx25 i with pullup input. transmit clock input from mii. nibble rate clock (25mhz for 100mbps & 2.5mhz for 10mbps). 118 120 receive clock rx25 i with pullup input. receive clock input from mii phy. nibble rate clock. (25mhz for 100mbps & 2.5mhz for 10mbps). 121-124 123-126 receive data rxd3- rxd0 i with pullup inputs. received data nibble from mii phy. 25 27 management data input mdi i with pulldown mii management data input. 26 28 management data output mdo o4 mii management data output. 27 29 management clock mclk o4 mii management clock. 126 128 receive error rx_er i with pulldown input. indicates a code error detected by phy. used by the lan91c111 to discard the packet being received. the error indication reported for this event is the same as a bad crc (receive status word bit 13). 2 4 nchip select output ncsout o4 output. chip select provided for mapping of phy functions into lan91c111 decoded space. active on accesses to lan91c111s eight lower addresses when the bank selected is 7. 12 14 external resistor rbias na transmit current set. an external resistor connected between this pin and gnd will set the output current for the tp transmit outputs 14 16 tpo+ o/i twisted pair transmit output, positive. 15 17 tpo- o/i twisted pair transmit output, negative 17 19 tpi+ i/o twisted pair receive input, positive 18 20 tpi- i/o twisted pair re ceive input, negative. 22 24 nleda od24 phy led output 23 25 nledb od24 phy led output pin no. name symbol buffer type description tqfp qfp downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 19 revision 1.92 (06-27-11) datasheet chapter 6 signal description parameters this section provides a detailed description of each smsc lan91c111 signal. the signals are arranged in functional groups according to their associated function. the n symbol at the beginning of a signal name indi cates that it is an active low signal. when n is not present before the signal name, it indicates an active high signal. the term assert or assertion indicates that a sign al is active; independent of whether that level is represented by a high or low voltage. the term negate s or negation indicates that a signal is inactive. the term high-z means tri-stated. the term undefined means the signal could be high, low, tri-stated, or in some in-between level. 6.1 buffer types dc levels and conditions defined in the dc electrical characteristics section. o4 output buffer with 2ma source and 4ma sink o12 output buffer with 6ma source and 12ma sink o16 output buffer with 8ma source and 16ma sink o24 output buffer with 12ma source and 24ma sink od16 open drain buffer with 16ma sink od24 open drain buffer with 24ma sink i/o4 bidirectional buffer with 2ma source and 4ma sink i/o24 bidirectional buffer with 12ma source and 24ma sink i/od bidirectional open drain buffer with 4ma sink i input buffer is input buffer with schmitt trigger hysteresis iclk clock input buffer i/o differential input o/i differential output ** 5v tolerant. input pins are able to accept 5v signals downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 20 smsc lan91c111 rev c datasheet chapter 7 functional description 7.1 clock generator block 1. the xtal1 and xtal2 pins are to be connected to a 25 mhz crystal. 2. tx25 is an input clock. it will be the nibble rate of the particular phy connected to the mii (2.5 mhz for a 10 mbps phy, and 25 mhz for a 100 mbps phy). 3. rx25 - this is the mii nibble rate receive clock used for sampling received data nibbles and running the receive state machine. (2.5 mhz for a 10 mbps phy, and 25 mhz for a 100 mbps phy). 4. lclk - bus clock - used by the biu for synchronous accesses. maximum frequency is 50 mhz for vl bus mode, and 8.33 mhz for eisa slave dma. 7.2 csma/cd block this is a 16 bit oriented block, with fully- inde pendent transmit and receive logic. the data path in and out of the block consists of two 16-bit wide un i-directional fifos interfacing the dma block. the dma port of the fifo stores 32 bits to exploit the 32 bit data path into memory, but the fifos themselves are 16 bit wide. the control path consis ts of a set of registers interfaced to the cpu via the biu. 7.2.1 dma block this block accesses packet memory on the cs ma/cds behalf, fetching transmit data and storing received data. it interfaces the csma/cd transm it and receive fifos on one side and the arbiter block on the other. to increase the bandwidth into memory, a 50 mhz clock is used by the dma block, and the data path is 32 bits wide. for example, during active reception at 100 mbps, the csma/cd block will write a word into the receive fifo every 160ns. the dma will read the fifo and accumulate two words on the output port to request a memory cycle from the arbiter every 320ns. the dma machine is able to support full duplex ope ration. independent receive and transmit counters are used. transmit and receive cycles are al ternated when simultaneous receive and transmit accesses are needed. 7.2.2 arbiter block the arbiter block sequences accesses to packet ra m requested by the biu and by the dma blocks. biu requests represent pipelined cpu accesses to the data register, while dma requests represent csma/cd data movement. internal sram read accesses are always 32 bit wide, and the arbiter steers the appropriate byte(s) to the appropriate lanes as a function of the address. the cpu data path consists of two uni-directional fifos mapped at the data register location. these fifos can be accessed in any comb ination of bytes, word, or doublewords. the arbiter will indicate 'not ready' whenever a cycle is initiated that cannot be satisfi ed by the present state of the fifo. 7.3 mmu block the hardware memory management unit allocates memory and transmit and receive packet queues. it also determines the value of the transmit and re ceive interrupts as a function of the queues. the page size is 2048 bytes, with a maximum memory si ze of 8kbytes. mir values are interpreted in 2048 byte units. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 21 revision 1.92 (06-27-11) datasheet 7.4 biu block the bus interface unit can handle synchronous as well as asynchronous buses; different signals are used for each one. transparent latches are added on the address path using rising nads for latching. when working with an asynchronous bu s like isa, the read and write operations are controlled by the edges of nrd and nwr. a rdy is used for notifying the system t hat it should extend the access cycle. the leading edge of ardy is generated by the leading edge of nrd or nwr while the trailing edge of ardy is controlled by the internal lan91c111 clock and, therefore, asynchronous to the bus. in the synchronous vl bus type mode, ncycle and lclk are used to for read and write operations. completion of the cycle may be determined by using nsrdy. nsrdy is controlled by lclk and synchronous to the bus. direct 32 bit access to the data path is suppor ted by using the ndatacs input. by asserting ndatacs, external dma type of devices will by pass the biu address decoders and can sequentially access memory with no cpu intervention. ndatacs accesses can be used in the eisa dma burst mode (nvlbus=1) or in asynchronous cycles. thes e cycles must be 32 bit cycles. please refer to the corresponding timing diagrams for details on these cycles. the biu is implemented usin g the following principles: a. address decoding is based on the values of a15-a4 and aen. b. address latching is performed by using transparent latches that are transparent when nads=0 and nrd=1, nwr=1 and latch on nads rising edge. c. byte, word and doubleword accesses to all registers and data path are supported except a doubleword write to offset ch will only writ e the bank select register (offset 0x0fh). d. no bus byte swapping is implemented (no eight bit mode). e. word swapping as a function of a1 is implemented for 16 bit bus support. f. the asynchronous interface uses nrd and nwr strobes. if necessary, ardy is negated on the leading edge of the strobe. the ardy trailing edge is controlled by clk. g. the vlbus synchronous inte rface uses lclk, nads, and w/nr as defined in the vesa specification as well as ncyc le to control read and writ e operations and generate nsrdy. h. eisa burst dma cycles to and from the data register are supported as defined in the eisa slave mode "c" specification when ndatacs is driven by ndak. i. synchronous and asynchronous cycles can be mixed as long as they are not active simultaneously. j. address and bank selection can be bypassed to generate 32 bit data path accesses by activating the ndatacs pin. 7.5 mac-phy interface the lan91c111 integrates the ieee 802.3 physi cal layer (phy) and media access control (mac) into the same silicon. the data path connection between the mac and the internal phy is provided by the internal mii. the lan91c111 also supports the ext_phy mode for the use of an external phy, such as hpna. this mode isolates the internal phy to allow interface with an external phy through the mii pins. to enter this mode, set ext phy bit to 1 in the configuration register. 7.5.1 management data software implementation the mii interface contains of a pair of signals t hat physically transport the management information across the mii, a frame format and a protocol spec ification for exchanging management frames, and a register set that can be read and written using these frames. mii management refers to the ability of a management entity to commun icate with phy via the mii serial management interface (mi) for the purpose of displaying, selecting and/or controlling different phy options. the host manipulates the mac to drive the mii management serial interfac e. by manipulating the mac's registers, mii management frames are generated on the management interface for reading or writing information downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 22 smsc lan91c111 rev c datasheet from the phy registers. timing and framing for each management command is to be generated by the cpu (host). the mac and external phy communicate via mdio a nd mdc of the mii management serial interface. mdio:management data input/output. bi-directi onal between mac and phy that carries management data. all control and status information sent over this pin is driven and sampled synchronously to the rising edge of mdc signal. mdc:management data clock. sour ced by the mac as a timing reference for transfer of information on the mdio signal. mdc is a periodic signal with no maximum high or low times. the minimum high and low times should be 160ns each and the minimum period of the signal should be 400ns. these values are regardless of the nominal period of the tx and rx clocks. 7.5.2 management data timing a timing diagram for a ml serial port frame is shown in figure 7.1 . the ml serial port is idle when at least 32 continuous 1's are detect ed on mdio and remains idle as lo ng as continuous 1's are detected. during idle, mdio is in the high impedance state. when the ml serial port is in the idle state, a 01 pattern on the mdio initiate s a serial shift cycle. data on mdio is then shifted in on the next 14 rising edges of mdc (mdio is high impedance). if the re gister access mode is not enabled, on the next 16 rising edges of mdc, data is either shifted in or out on mdio, depending on whether a write or read cycle was selected with the bits read and write. after the 32 mdc cycl es have been completed, one complete register has been read/w ritten, the serial shift process is halted, data is latched into the device, and mdio goes into high im pedance state. another serial shif t cycle cannot be initiated until the idle condition (at least 32 continuous 1's) is detected. 7.5.3 mi serial port frame structure the structure of the phy serial port frame is shown in ta b l e 9 . 1 and timing diagram of a frame is shown in figure 7.1 . each serial port access cycle consists of 32 bits (or 192 bits if multiple register access is enabled and regad[4:0]= 11111), exclusive of idle. the first 16 bits of the serial por t cycle are always write bits and are used for addressing. the last 16/176 bits are from one/all of the 11 data registers. the first 2 bit in ta b l e 9 . 1 and figure 7.1 are start bits and need to be written as a 01 for the serial port cycle to continue. the next 2 bits are a read and wr ite bit which dete rmine if the accessed data register bits will be read or write. the next 5 bits are devi ce addresses. the next 5 bits are register address select bits, which select one of the five data registers for access. the next 1 bit is a turnaround bit which is not an actual register bit but extra time to switch mdio from writ e to read if necessary, as shown in figure 7.1 . the final 16 bits of the phy ml serial port cycle (or 176 bits if multiple register access is enabled and regad[4:0]=11111) come from the specific data register designated by the register address bits regad[4:0]. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 23 revision 1.92 (06-27-11) datasheet figure 7.1 mi serial port frame timing diagram m d i o m d c 0 2 1 3 4 7 6 5 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 0 0 1 1 p 4 p 1 p 2 p 3 p 0 r 4 r 3 r 2 r 1 r 0 1 0 d 1 5 d 1 4 d 1 3 d 1 2 d 1 1 d 1 0 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 s t [ 1 : 0 ] o p [ 1 : 0 ] p h y a d [ 4 : 0 ] r e g a d [ 4 : 0 ] t a [ 1 : 0 ] d a t a [ 1 5 : 0 ] w r i t e b i t s p h y c l o c k s i n d a t a o n r i s i n g e d g e s o f m d c w r i t e c y c l e m d i o m d c 0 2 1 3 4 7 6 5 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 0 1 1 0 p 4 p 1 p 2 p 3 p 0 r 4 r 3 r 2 r 1 r 0 z 0 d 1 5 d 1 4 d 1 3 d 1 2 d 1 1 d 1 0 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 s t [ 1 : 0 ] o p [ 1 : 0 ] p h y a d [ 4 : 0 ] r e g a d [ 4 : 0 ] t a [ 1 : 0 ] d a t a [ 1 5 : 0 ] w r i t e b i t s p h y c l o c k s i n d a t a o n r i s i n g e d g e s o f m d c r e a d c y c l e r e a d b i t s p h y c l o c k s o u t d a t a o n r i s i n g e d g e s o f m d c downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 24 smsc lan91c111 rev c datasheet 7.5.4 mii packet data communi cation with external phy the mil is a nibble wide packet data interface defin ed in ieee 802.3. the lan91c111 meets all the mil requirements outlined in ieee 802.3 and shown in figure 7.2 . the mll consists of the following signals: four transmit data bits (txd[3:0]), transmit clock (tx25),transmit enable (txen100), four receive data bits(rxd[3:0]), receive clock(rx25), carrier sense (crs100), receive data valid (rx_dv), rece ive data error (rx_er), and collision (col100). transmit data is clocked out using the tx25 clock input, while receive data is clocked in using rx25. the transmit and receive clocks ope rate at 25 mhz in 100mbps mode and 2.5 mhz in 10mbps. in 100 mbps mode, the lan91c111 provides the following interface signals to the phy: ? for transmission: txen100, txd0-3, tx25 ? for reception: rx_dv, rx_er, rxd0-3, rx25 ? for csma/cd state ma chines: crs100, col100 a transmission begins by txen100 going active (high), and txd0-txd3 having the first valid preamble nibble. txd0 carries the least significant bi t of the nibble (that is the one that would go first out of the eph at 100 mbps), while txd3 carries th e most significant bit of the nibble. txen100 and txd0-txd3 are clocked by the lan91c111 using tx 25 rising edges. txen100 goes inactive at the end of the packet on the last nibble of the crc. during a transmission, col100 might become active to indicate a collision. col100 is asynchronous to the lan91c111s clo cks and will be synchroniz ed internally to tx25. reception begins when rx_dv (receive data valid) is asserted. a preamble pattern or flag octet will be present at rxd0-rxd3 when rx_dv is activated. the lan91c111 requires no training sequence figure 7.2 mii frame format & mii nibble order idle preamble prmble sfd data 1 data n-1 data n start of frame delim. 62 bt data 2 data nibbles 2 bt idle tx_en = 0 tx_en = 0 tx_en = 1 first nibble first bit mac's serial bit stream d0 d1 d2 d3 d4 d5 d6 d7 txd0 / rxd0 txd3 / rxd3 txd2 / rxd2 txd1 / rxd1 msb second nibble mii nibble stream lsb = [ between 64-1518 data bytes ] = [ 1 1 ] = [ 1 0 1 0 ... ] 62 bits long idle = tx_en = 0 datan sfd preamble downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 25 revision 1.92 (06-27-11) datasheet beyond a full flag octet for reception. rx_dv as well as rxd0-rxd3 are sampled on rx25 rising edges. rxd0 carries the least significant bit and rx d3 the most significant bit of the nibble. rx_dv goes inactive when the last valid nibble of the packet (crc) is presented at rxd0-rxd3. rx_er might be asserted during packet reception to signal the lan91c111 that the present receive packet is invalid. the lan91c111 will discar d the packet by treating it as a crc error. rxd0-rxd3 should always be aligned to packet nibble s, therefore, opening flag detection does not consider misaligned cases. opening flag detection expects the 5dh pattern and will not reject the packet on non-preamble patterns. crs100 is used as a frame envelope signal for the csma/cd mac state machines (deferral and backoff functions), but it is not used for receive framing functions. crs100 is an asynchronous signal and it will be active whenever there is activity on the cable, including lan91c111 transmissions and collisions. 7.6 serial eeprom interface this block is responsible for reading the serial eeprom upon hardware reset (or equivalent command) and defining defaults for some key registers. a write operation is also implemented by this block, that under cpu command will program specific locations in the eeprom. this block is an autonomous state machine and controls the internal data bus of the lan91c111 during active operation. 7.7 internal physical layer the lan91c111 inte grates the ieee 802.3 physical layer (phy) interna lly. the ext phy bit in the configuration register is 0 as t he default configuration to set the internal phy enabled. the internal phy address is 00000, the driver must use th is address to talk to the internal phy. the internal phy is placed in isolation mode at power up and reset. it can be removed from isolation mode by clearing the mii_dis bit in the phy control register. if necessary, the internal phy can be enabled by clearing the ext_phy bit in the configuration register. the internal phy of lan91c111 has nine main sections: controller interface, encoder, decoder, scrambler, descrambler, clock and data recovery, twist ed pair transmitter, twisted pair receiver, and mi serial port. the lan91c111 can operate as a 100base-tx device (hereafter referred to as 100mbps mode) or as a 10base-t device (hereafter referred to as 10m bps mode). the difference between the 100mbps mode and the 10mbps mode is data rate, signaling protocol, and allowed wiring. the 100mbps tx mode uses two pairs of category 5 or better utp or stp twisted pair cable with 4b5b encoded, scrambled, and mlt-3 coded 62.5 mhz ternary data to achieve a throughput of 100mbps. the 10mbps mode uses two pairs of category 3 or better utp or stp twisted pair cable with manchester encoded, 10mhz binary data to achieve a 10mbps throughput. the data symbol format on the twisted pair cable for the 100 and 10 mbps modes are defined in ieee 80 2.3 specifications and shown in figure 7.3 . downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 26 smsc lan91c111 rev c datasheet on the transmit side for 100mbps tx operation, data is received on the controll er and then sent to the 4b5b encoder for formatting. the encoded data is then sent to the scrambler. the scrambled and encoded data is then sent to the tp transmitter. the tp transmitter converts the encoded and scrambled data into mlt-3 ternary format, reshapes the output, and drives the twisted pair cable. on the receive side for 100mbps tx operation, the twisted pair receiver receives incoming encoded and scrambled mlt-3 data from the twisted pair ca ble, remove any high frequency noise, equalizes the input signal to compensate for the effects of th e cable, qualifies the data with a squelch algorithm, and converts the data from mlt-3 coded twisted pair le vels to internal digital levels. the output of the twisted pair receiver then goes to a clock and data recovery block which recovers a clock from the incoming data, uses the clock to latch in valid data into the device, and converts the data back to nrz format. the nrz data is then unscrambled and decoded by the 4b5b decod er and descrambler, respectively, and outputted to the ethernet controller. 10mbps operation is similar to the 100mbps tx operation except , (1) there is no scrambler/descrambler, (2) the encod er/decoder is manchester instead of 4b5b, (3) the data rate is 10mbps instead of 100mbps, and (4) the twisted pair symbol data is two level manchester instead of ternary mlt-3. the management interface, (hereafter referred to as the mi serial port), is a two pin bi-directional link through which configuration inputs can be set and st atus outputs can be read. each block plus the operating modes are described in more detail in the following sections. figure 7.3 tx/10bt frame format preamble sfd da llc data fcs sa interframe gap ethernet mac frame ln interframe gap ssd preamble sfd llc data fcs da idle 100 base-tx data symbols sa idle ln esd = [ 1 1 1 1...] = [ 0 1 1 0 1 0 0 1 1 1] = [ data] = [ 1 1] = [ 1 0 1 0 ...] 62 bits long = [ 1 1 0 0 0 1 0 0 0 1] esd da, sa, ln, llc data, fcs ssd preamble sfd idle before / after 4b5b encoding, scrambling, and mlt3 coding preamble sfd llc data fcs da idle 10 base-t data symbols sa idle ln soi = [ no transitions] = [ 1 1 ] with no mid bit transition = [ data] = [ 1 1] = [ 1 0 1 0 ... ] 62 bits long soi da, sa, ln, llc data, fcs sfd preamble idle before / after manchester encoding downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 27 revision 1.92 (06-27-11) datasheet 7.7.1 mii disable the internal phy mii interface can be disabled by setti ng the mii disable bit in the mi serial port control register. when the mii is disabled, the mii in puts are ignored, the mii outputs are placed in high impedance state, and the tp output is high impedance. 7.7.2 encoder 4b5b encoder - 100 mbps 100base-tx requires that the data be 4b5b encode d. 4b5b coding converts the 4-bit data nibbles into 5-bit date code words. the mapping of the 4b nibbles to the 5b code words is specified in ieee 802.3. the 4b5b encoder on the lan91c111 takes 4b nibbles from the controller interface, converts them into 5b words and sends the 5b words to the scrambler. the 4b5b encoder also substitutes the first 8 bits of the preamble wit h the ssd delimiters (a.k.a. /j/k/ symbols) and adds an esd delimiter (a.k.a. mr/ symbols) to the end of every packet, as defined in ieee 802.3 . the 4b5b encoder also fills the period between packets, called the idle period, with the continuous stream of idle symbols. manchester encoder - 10 mbps the manchester encoding process co mbines clock and nrz data such that the first half of the data bit contains the complement of the data, and the se cond half of the data bit contains the true data, as specified in ieee 802.3. this guaran tees that a transition always occurs in the middle of the bit call. the manchester encoder on the lan91c111 converts the 10mbps nrz data from the controller interface into a manchester encoded data stream for the tp transmitter and adds a start of idle pulse (soi) at the end of the packet as specified in ieee 8 02.3. the manchester encoding process is only done on actual packet data, and the idle period bet ween packets is not manchester encoded and filled with link pulses. 7.7.3 decoder 4b5b decoder - 100 mbps since the tp input data is 4b5b encoded on the tran smit side, it must also be decoded by the 4b5b decoder on the receive side. the mapping of the 5b nibbles to the 4b code words is specified in ieee 802.3. the 4b5b decoder on the lan91c111 takes th e 5b code words from the descrambler, converts them into 4b nibbles per table 2, and sends the 4b nibbles to the controller interface. the 4b5b decoder also strips off the ssd delimiter (a.k.a. /j/k / symbols) and replaces them with two 4b data 5 nibbles (a.k.a. /5/ symbol), and strips off the esd de limiter (a.k.a. /t/r/ symbols) and replaces it with two 4b data 0 nibbles (a.k.a. /i/symbol), per ieee 802.3 specifications and shown in figure 7.3 . table 7.1 4b/5b symbol mapping symbol name description 5b code 4b code 0 data 0 11110 0000 1 data 1 01001 0001 2 data 2 10100 0010 3 data 3 10101 0011 4 data 4 01010 0100 5 data 5 01011 0101 6 data 6 01110 0110 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 28 smsc lan91c111 rev c datasheet * these 5b codes are not used. for decoder, these 5b codes are decoded to 4b 0000. for encoder, 4b 0000 is encoded to 5b 11110, as shown in symbol data 0. the 4b5b decoder detects ssd, esd and codeword er rors in the incoming data stream as specified in ieee 802.3. these errors ar e indicated by asserting rx_er output while the errors are being transmitted across rxd[3:0], and they are also indicated in the serial port by setting ssd, esd, and codeword error bits in the phy mi serial port status output register. manchester decoder - 10 mbps in manchester coded data, the first half of the data bit contains the complement of the data, and the second half of the data bit contains the true data . the manchester decoder in the lan91c111 converts the manchester encoded data stream from the tp re ceiver into nrz data for the controller interface by decoding the data and stripping off the soi pul se. since the clock and data recovery block has already separated the clock and data from the tp re ceiver, the manchester decoding process to nrz data is inherently performed by that block. 7.7.4 clock and data recovery clock recovery - 100 mbps clock recovery is done with a pll. if there is no valid data present on the tp inputs, the pll is locked to the 25 mhz tx25. when valid data is detected on the tp inputs with the squelch circuit and when the adaptive equalizer has settled, the pll input is switched to the incoming data on the tp input. the pll then recovers a clock by locking onto the transitions of the incoming signal from the twisted pair wire. the recovered dock frequency is a 25 mhz nibble dock, and that clock is outputted on the controller interface signal rx25. 7 data 7 01111 0111 8 data 8 10010 1000 9 data 9 10011 1001 a data a 10110 1010 b data b 10111 1011 c data c 11010 1100 d data d 11011 1101 e data e 11100 1110 f data f 11101 1111 i idle 11111 0000 j ssd #1 11000 0101 k ssd #2 10001 0101 t esd #1 01101 0000 r esd #2 00111 0000 h halt 00100 undefined --- invalid codes all others* 0000* table 7.1 4b/5b symbol mapping (continued) symbol name description 5b code 4b code downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 29 revision 1.92 (06-27-11) datasheet data recovery - 100 mbps data recovery is performed by latching in data from the tp receiver with the recovered clock extracted by the pll. the data is then converted from a single bit stream into nibble wide data word according to the format shown in figure 7.2 . clock recovery - 10 mbps the clock recovery process for 10mbps mode is identical to the 100mbps mode except, (1) the recovered clock frequency is 2.5 mhz nibble clock, (2 ) the pll is switched from tx25 to the tp input when the squelch indicates valid data, (3) the pll ta kes up to 12 transitions (bit times) to lock onto the preamble, so some of the preamble data symbol s are lost, but the dock recovery block recovers enough preamble symbols to pass at least 6 nibbles of preamble to the receive controller interface as shown in figure 7.2 . data recovery - 10 mbps the data recovery process for 10mbps mode is identic al to the 100mbps mode. as mentioned in the manchester decoder section, the data recovery pr ocess inherently performs decoding of manchester encoded data from the tp inputs. 7.7.5 scrambler 100 mbps 100base-tx requires scrambling to reduce the r adiated emissions on the twisted pair. the lan91c111 scrambler takes the encoded data from the 4b5b encoder, scrambles it per the ieee 802.3 specifications, and sends it to the tp transmitter. 10 mbps a scrambler is not used in 10mbps mode. scrambler bypass the scrambler can be bypassed by setting the bypa ss scrambler/descrambler bit in the phy ml serial port configuration 1 register. when this bit is set, the 5b data bypasses the scrambler and goes directly from the 4b5b encoder to the twisted pair transmitter. 7.7.6 descrambler 100 mbps the lan91c111 descrambler takes the scrambled data from the data recovery block, descrambles it per the ieee 802.3 specifications, aligns the data on the correct 5b word boundaries, and sends it to the 4b5b decoder. the algorithm for synchronization of the descrambler is the same as the algorithm outlined in the ieee 802.3 specification. once the descrambler is synch ronized, it will maintain synchronization as long as enough descrambled idle pattern 1's are defected within a given interval. to stay in synchronization, the descrambler needs to detect at least 25 consecut ive descrambled idle pattern 1's in a 1ms interval. if 25 consecutive descrambled idle pattern 1's are not detected within the 1ms interval, the descrambler goes out of synchronization and restarts the synchronization process. if the descrambler is in the unsynchronized state, the descrambler loss of synchronization detect bit is set in the ml serial port status output register to indi cate this condition. once this bit is set, it will stay set until the descrambler achieves synchronization. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 30 smsc lan91c111 rev c datasheet 10 mbps a descrambler is not used in 10 mbps mode. descrambler bypass the descrambler can be bypassed by setting the bypass scrambler/descrambler bit in the phy mi serial port configuration 1 register. when this bi t is set, the data bypasses the descrambler and goes directly from the tp rece iver to the 4b5b decoder. 7.7.7 twisted pair transmitter transmitter - 100 mbps the tx transmitter consists of mlt-3 encoder, waveform generator and line driver. the mlt-3 encoder converts the nrz data from the scrambler into a three level mlt-3 code required by ieee 802.3. mlt-3 coding uses three levels and converts 1's to transitions between the three levels, and converts 0's to no transitions or changes in level. the purpose of the waveform generator is to sha pe the transmit output pulse. the waveform generator takes the mlt-3 three level encoded waveform and uses an array of switched current sources to control the rise/fall time and level of the signal at the output. the output of the switched current sources then goes through a low pa ss filter in order to "smooth" the current output and remove any high frequency components. in this way, the waveform generator preshapes the output waveform transmitted onto the twist ed pair cable to meet the pulse templa te requirements outlined in ieee 802.3. the waveform generator eliminates the need for any external filters on the tp transmit output. the line driver converts the shape d and smoothed waveform to a curr ent output that can drive 100 meters of category 5 unshielded twisted pair cable or 150 ohm shielded twisted pair cable. transmitter - 10 mbps the transmitter operation in 10 mbps mode is much different than the 100 mbps transmitter. even so, the transmitter still consists of a waveform generator and line driver. the purpose of the waveform generator is to shape the output transmit pulse. the waveform generator consists of a rom, dac, dock ge nerator, and filter. the dac gener ates a stair-stepped representation of the desired output waveform. the stairsteppe d dac output then goes thro ugh a low pass filter in order to "smooth' the dac output and remove any high frequency components. the dac values are determined from the rom outputs; the rom contents are chosen to shape the pulse to the desired template and are clocked into the dac at high speed by the clock generator. in this way, the waveform generator preshapes the output wave form to be transmitted onto the twisted pair cable to meet the pulse template requirements outlined in ieee 802.3 clause 14 and also shown in figure 7.4 . the waveshaper replaces and eliminates extern al filters on the tp transmit output. the line driver converts the shape d and smoothed waveform to a curr ent output that can drive 100 meters of category 3/4/5 100 ohm unshielded twis ted pair cable or 150 ohm shielded twisted pair cable tied directly to the tp output pins without any external filters. during the idle period, no output signal is transmitted on the tp outputs (except link pulse). downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 31 revision 1.92 (06-27-11) datasheet figure 7.4 tp output voltage template - 10 mbps reference time (ns) internal mau voltage (v) a00 b1 51 . 0 c1 50 . 4 d2 50 . 5 5 e3 20 . 4 5 f3 90 g5 7- 1 . 0 h4 80 . 7 i6 70 . 6 j8 90 k7 4- 0 . 5 5 l7 3- 0 . 5 5 m6 10 n8 51 . 0 o1 0 00 . 4 0 1020304050607080901001 10 -1.0 -0.8 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 0.8 1.0 time (ns) v o l t a g e ( v ) b c d a i j w v t g s q n o p e f m h r u l k downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 32 smsc lan91c111 rev c datasheet transmit level adjust the transmit output current level is derived from an internal reference voltage and the external resistor on rbias pin. the transmit level can be adjusted with either (1) the external resistor on the rbias pin, or (2) the four transmit level adjust bits in th e phy ml serial port configuration 1 register as shown in ta b l e 7 . 2 . the adjustment range is approximately -14% to +16% in 2% steps. p 110 0.75 q 111 0.15 r1 1 10 s1 1 1- 0 . 1 5 t1 1 0- 1 . 0 u1 0 0- 0 . 3 v1 1 0- 0 . 7 w9 0- 0 . 7 table 7.2 transmit level adjust tlvl[3:0] gain 0000 1.16 0001 1.14 0010 1.12 0011 1.10 0100 1.08 0101 1.06 0110 1.04 0111 1.02 1000 1.00 1001 0.98 1010 0.96 1011 0.94 1100 0.92 1101 0.90 1110 0.88 1111 0.86 reference time (ns) internal mau voltage (v) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 33 revision 1.92 (06-27-11) datasheet transmit rise and fall time adjust the transmit output rise and fall time can be adjust ed with the two transmit rise/fall time adjust bits in the phy ml serial port configuration 1. the adjust ment range is -0.25ns to +0.5ns in 0.25ns steps. stp (150 ohm) cable mode the transmitter can be configured to drive 150 ohm sh ielded twisted pair cable. the stp mode can be selected by appropriately setting the cable type se lect bit in the phy mi se rial port configuration 1 register. when stp mode is enabl ed, the output current is automati cally adjusted to comply with ieee 802.3 levels. transmit disable the tp transmitter can be disabled by setting the transmit disable bit in the phy ml serial port configuration 1 register. when the transmit disable bi t is set, the tp transmitter is forced into the idle state, no data is transmitted, no link pulses are transmitted, and internal loopback is disabled. transmit powerdown the tp transmitter can be powered down by setting the transmit powerdown bit in the phy ml serial port configuration 1 register. when the transmit powerdown bit is set, the tp transmitter is powered down, the tp transmit outputs are high impedance, and the rest of the lan91c111 operates normally. 7.7.8 twisted pair receiver receiver - 100 mbps the tx receiver detects input signals from the twist ed pair input and converts it to a digital data bit stream ready for dock and data reco very. the receiver can reliabl y detect data from a 100base-tx transmitter that has been passed through 0-100 me ters of 100-ohm category 5 utp or 150 ohm stp. the tx receiver consists of an adaptive equalizer, baseline wander correction circuit, comparators, and mlt-3 decoder. the tp inputs first go to an adapt ive equalizer. the adaptive equalizer compensates for the low pass characteristic of the cable, and it has the ability to adapt and compensate for 0-100 meters of category 5, 100 ohm utp or 150 ohm stp twisted pair cable. the baseline wander correction circuit restores the dc component of the input waveform that was removed by external transformers. the comparators convert the equalized signal back to digital levels and are used to qualify the data with the squelch circuit. the mlt-3 decoder takes the three level mlt-3 digital data from the comparators and converts it to back to normal digital data to be used for dock and data recovery. receiver - 10 mbps the 10 mbps receiver is able to detect input signals from the twisted pair ca ble that are within the template shown in figure 7.5 . the inputs are biased by internal resistors. the tp inputs pass through a low pass filter designed to eliminate any high frequ ency noise on the input. the output of the receive filter goes to two different types of comparators, squelch and zero crossing. the squelch comparator determines whether the signal is valid, and the zero crossing comparator is used to sense the actual data transitions once the signal is determined to be valid. the output of t he squelch comparator goes to the squelch circuit and is also used for link pulse detection, soi detection, and reverse polarity detection; the output of the zero crossing comparator is used for clock and data recovery in the manchester decoder. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 34 smsc lan91c111 rev c datasheet tp squelch - 100 mbps the squelch block determines if the tp input contai ns valid data. the 100 mbps tp squelch is one of the criteria used to determine link integrity. the squelch comparators compare the tp inputs against fixed positive and negative thresholds, called squelc h levels. the output from the squelch comparator goes to a digital squelch circuit which determines if th e receive input data on that channel is valid. if the data is invalid, the receiver is in the squel ched state. if the input voltage exceeds the squelch levels at least 4 times with alternating polarity within a 10 s interval, the data is considered to be valid by the squelch circuit and the receiver now ente rs into the unsquelch state. in the unsquelch state, the receive threshold level is reduced by approximately 30% for noise immunity reasons and is called the unsquelch level. when the receiver is in the unsquelch state, then the input signal is deemed to be valid. the device stays in the unsquel ch state until loss of data is detected. loss of data is detected if no alternatin g polarity unsquelch transitio ns are detected during any 10 s interval. when the loss of data is detected, the receive squelch is turned on again. tp squelch, 10 mbps the tp squelch algorithm for 10 mbps mode is identical to the 100 mbps mode except, (1) the 10 mbps tp squelch algorithm is not used for link integr ity but to sense the beginning of a packet, (2) the receiver goes into the unsquelch state if the input voltage exceeds the squelch levels for three bit times with alternating polarity within a 50-250 ns interval, (3) the receiver goes into the squelch state when idle is detected, (4) unsquelch detection has no affe ct on link integrity, link pulses are used for that in 10 mbps mode, (5) start of packet is determined when the receiver goes into the unsquelch state an figure 7.5 tp input voltage template -10mbps 3.1v a. short bit 585mv 585 mv sin ( t/pw) * pw 0 slope 0.5 v/ ns 3.1v b. long bit 585mv 585 mv sin [2 (t - pw/2)/pw] pw/4 0 pw 3pw/4 slope 0.5 v/ ns 585 mv sin (2 t/pw) * downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 35 revision 1.92 (06-27-11) datasheet a crs100 is asserted, and (6) t he receiver meets the squelch re quirements defined in ieee 802.3 clause 14. equalizer disable the adaptive equalizer can be disabl ed by setting the equalizer disable bit in the phy ml serial port configuration 1 register. when disa bled, the equalizer is forced into the response it would normally have if zero cable length was detected. receive level adjust the receiver squelch and unsquelch levels can be lo wered by 4.5 db by setting the receive level adjust bit in the phy ml serial port configuration 1 register . by setting this bit, the device may be able to support longer cable lengths. 7.7.9 collision 100 mbps collision occurs whenever transmit and receive oc cur simultaneously while the device is in half duplex. collision is sensed whenever there is simulta neous transmission (packet transmission on tpo) and reception (non-idle symbols detected on tp input). when collision is detected, the mac is notified. once collision starts, the receive and transmit packets that caused the collision are terminated by their respective macs until the responsible macs term inate the transmission, the phy continues to pass the data on. the collision function is disabled if the device is in the full duplex mode, is in the link fail state, or if the device is in the diagnostic loopback mode. 10 mbps collision in 10mbps mode is identical to the 100m bps mode except, (1) reception is determined by the 10mbps squelch criteria, (2) data being passed to the mac are forced to all 0's, (3) mac is notified of the collision when the sqe test is performed, (4) mac is notified of the collision when the jabber condition has been detected. collision test the mac and phy collision indication can be tested by setting the collision test register bit in the phy mi serial port control register. when this bit is set, internal txen from the mac is looped back onto col and the tp outputs are disabled. 7.7.10 start of packet 100 mbps start of packet for 100 mbps mode is indicated by a unique start of stream delimiter (referred to as ssd). the ssd pattern consists of the two /j/k/ 5b symbols inserted at the beginning of the packet in place of the first two preamble sym bols, as defined in ieee 802.3 clause 24. the transmit ssd is generated by the 4b5b encod er and the /j/k/ symbols are inserted by the 4b5b encoder at the beginning of the trans mit data packet in place of the first two 5b symbols of the preamble. the receive pattern is detected by the 4b5b decode r by examining groups of 10 consecutive code bits (two 5b words) from the descrambler. between packe ts, the receiver will be detecting the idle pattern, which is 5b /i/ symbols. while in the idle state, th e mac is notified that no dat a/invalid data is received. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 36 smsc lan91c111 rev c datasheet if the receiver is in the idle state and 10 consecut ive code bits from the rece iver consist of the /j/k/ symbols, the start of packet is detec ted, data reception is begun, the mac is notified that valid data is received, and 5/5/ symbols are substi tuted in place of the /j/k/ symbols. if the receiver is in the idle state and 10 consecut ive code bits from the receiver consist of a pattern that is neither /i/i/ nor /j/k/ symbols but contains at least 2 non contiguous 0's, then activity is detected but the start of packet is considered to be faulty and a false carrier indication (also referred to as bad ssd) is signaled to the controller interface. w hen false carrier is detect ed, the mac is notified of false carrier and invalid received, and the bad ssd bit is set in the phy ml serial port status output register. once a false carrier event is detected, the idle pattern (two /i/i/ symbols) must be detected before any new ssd's can be sensed. if the receiver is in the idle state and 10 consecut ive code bits from the receiver consist of a pattern that is neither /l/l/ nor /j/k/ symbols but does not contain at least 2 non-contiguous 0's, the data is ignored and the receiver stays in the idle state. 10 mbps since the idle period in 10 mbps mode is defi ned to be the period when no data is present on the tp inputs, then the start of packet for 10 mbps mode is detected when valid data is detected by the tp squelch circuit. when start of pa cket is detected, carrier sense signal at internal mii is asserted as described in the controller interface section. refe r to the tp squelch section for 10 mbps mode for the algorithm for valid data detection. 7.7.11 end of packet 100 mbps end of packet for 100 mbps mode is indicated by the end of stream delimiter (referred to as esd). the esd pattern consists of the two /t/r/ 4b5b symbols inserted after the end of the packet, as defined in ieee 802.3 clause 24. the transmit esd is generated by the 4b5b encoder and the /t/r/ symbols are inserted by the 4b5b encoder after the end of the transmit data packet. the receive esd pattern is detected by the 4b5b decoder by examining groups of 10 consecutive code bits (two 5b words) from the descrambler du ring valid packet reception to determine if there is an esd. if the 10 consecutive code bits from the receiver during valid packet reception consist of the /t/r/ symbols, the end of packet is detec ted, data reception is terminated, the mac is notified of valid data received, and /i/i/ symbols are substitu ted in place of the /t/r/ symbols. if 10 consecutive code bits from t he receiver during valid packet re ception do not consist of /t/r/ symbols but consist of /i/i/ symbols instead, then the packet is considered to have been terminated prematurely and abnormally. when this premature end of packet c ondition is detected, the mac is notified of invalid data received for the nibble asso ciated with the first /i/ symbol. premature end of packet condition is also indicated by setting the bad esd bit in the phy ml serial port status output register. 10 mbps the end of packet for 10 mbps mode is indicated with the soi (start of idle) pulse. the soi pulse is a positive pulse containing a manchester code violation inserted at the end of every packet. the transmit soi pulse is generated by the tp transmitter and inserted at the end of the data packet after txen is deasserted. the transmitted soi output pulse at the tp output is shaped by the transmit waveshaper to meet the pulse template requirements specified in ieee 802.3 clause 14 and shown in figure 7.6 . the receive soi pulse is detected by the tp receiver by sensing missing data transitions. once the soi pulse is detected, data reception is ended and the mac is notified of no data/invalid data received. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 37 revision 1.92 (06-27-11) datasheet 7.7.12 link integrity & autonegotiation general the lan91c111 can be configured to implement eith er the standard link integrity algorithms or the autonegotiation algorithm. the standard link integrity algorithms are used solely to establish an active link to and from a remote device. there are different stand ard link integrity algorithms for 10 and 100 mbps modes. the autonegotiation algorithm is used for two purposes: (1) to automatically configure the device for either 10/100 mbps and half/full duplex modes, and (2) to establish an active link to and from a remote device. the standard link integrity and au tonegotiation algorithms are described below. autonegotiation is only specified for 100base-tx and 10base-t operation. 10base-t link integrity algorithm - 10mbps the lan91c111 uses the same 10ba se-t link integrity algor ithm that is define d in ieee 802.3 clause 14. this algorithm uses normal link pulses, referred to as nlp's and transmitted during idle periods, to determine if a device has successfully established a link with a remote device (called link pass state). the transmit link pulse meets the temp late defined in ieee 802.3 clause 14 and shown in figure 7.7 . refer to ieee 802.3 clause 14 for more details if needed. figure 7.6 soi output voltage template - 10mbps 0 bt 4.5 bt 6.0 bt +50 mv 45.0 bt 4.5 bt 2.5 bt 2.25 bt 0.25 bt 0.5 v/ns 3.1 v -50 mv 585 mv -3.1 v 585 mv sin(2 (t/1bt)) 0 t 0.25 bt and 2.25 t 2.5 bt * ** downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 38 smsc lan91c111 rev c datasheet 100base-tx link integrity algorithm -100mbps since 100base-tx is defined to have an active idle signal, then there is no need to have separate link pulses like those define d for 10base-t. the lan91c111 uses the squelch criteria and descrambler synchronization algorithm on the input da ta to determine if the device has successfully established a link with a remote device (called link pass state). refer to ieee 802.3 for both of these algorithms for more details. autonegotiation algorithm as stated previously, the autonegotiation algorithm is used for two purposes: (1) to automatically configure the device for either 10/100 mbps and hal f/ full duplex modes, and (2) to establish an active link to and from a remote device. the autonegotiati on algorithm is the same algorithm that is defined in ieee 802.3 clause 28. autonegotiation uses a bu rst of link pulses, calle d fast link pulses and referred to as flp's, to pass up to 16 bits of signaling data back and forth between the lan91c111 and a remote device. the transmit flp pulses m eet the templated specified in ieee 802.3 and shown in figure 7.7 . a timing diagram contrasting nlp's and flp's is shown in figure 7.8 . figure 7.7 link pulse output voltage template - nlp, flp 0 bt 1.3 bt 2.0 bt 4.0 bt +50 mv -50 mv 4.0 bt 42.0 bt 3.1 v 0.5 v/ns 0.5 bt 0.6 bt 300 mv 200 mv 585 mv +50 mv -50 mv 2.0 bt 0.85 bt -3.1 v 0.25 bt downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 39 revision 1.92 (06-27-11) datasheet the autonegotiation algorithm is initiated by any of these events: (1) autonegotiation enabled, (2) a device enters the link fail state, (3) autonegotiatio n reset. once a negotiation has been initiated, the lan91c111 first determines if the remote dev ice has autonegotiation capability. if the remote device is not autonegotiation capable and is just transmitting either a 10base-t or 100base-tx signal, the lan91c111 will sense that and place itself in the correct mode. if the lan91c111 detects flp's from the remote device, then the remote devic e is determined to have autonegotiation capability and the device then uses the contents of the ml seri al port autonegotiation advertisement register and flp's to advertise its capabilities to a remote device. the remote device does the same, and the capabilities read back from the remote device are stored in the phy ml serial port autonegotiation remote end capability register. the lan91c111 neg otiation algorithm then matches it's capabilities to the remote device's capabilities and determi nes what mode the device should be configured to according to the priority resolution algorithm defined in ieee 802.3 clause 28. once the negotiation process is completed, the lan91c111 then configures itself for either 10 or 100 mbps mode and either full or half duplex modes (depending on the outcom e of the negotiation proce ss), and it switches to either the 100basetx or 10base-t link integrity algorithms (depending on which mode was enabled by autonegotiation). refer to ieee 802.3 clause 28 for more details. autonegotiation outcome indication the outcome or result of the auto negotiation process is stored in t he speed detect and duplex detect bits in the phy mi serial port status output register. autonegotiation status the status of the autonegotiation process can be monitored by reading the autonegotiation acknowledgement bit in the ml serial port status regi ster. the ml serial port status register contains a single autonegotiation acknowledgement bit which indicates when an autonegotiation has been initiated and succe ssfully completed. figure 7.8 nlp vs. flp link pulse tpo tpo a.) normal link pulse (nlp) b.) fast link pulse (flp) d0 d15 d14 d3 d2 d1 clock clock clock clock clock clock clock data data data data data data downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 40 smsc lan91c111 rev c datasheet autonegotiation enable the autonegotiation algorithm can be enabled by se tting both the aneg bit in the mac receive/phy control register and the aneg_en bit in the mi phy register 0 (control regist er). clearing either of these two bits will turn off autonegotiation mode. when the autonegotiation algorithm is enabled, the device halts all transmissions including link pulses fo r 1200-1500 ms, enters the link fail state, and restarts the negotiation process. when autonegotiation mode is turned on or reset, software driver should wait for at least 1500ms to read the aneg_ack bit in the mi phy status register to determine whether the autonegotiation process has been comp leted. when the aneg bit in the receive/phy control register is cleared, autonegotiation algori thm is disabled, the selection of 10/100 mbps mode and duplex mode is determined by the speed bit and the dplx bit in the mac receive/phy control register. when the aneg bit in the receive/phy control register is set and the aneg_en bit in the mi phy register 0 (control register) is cleared, au tonegotiation algorithm is disabled, the selection of 10/100 mbps mode and duplex mode is determined by the speed bit and the dplx bit in the mi phy register 0 (control register). autonegotiation reset the autonegotiation algorithm can be initiated at any time by setting the autonegotiation reset bit in the phy mi serial port control register. link disable the link integrity function can be disabled by setting the link disable bit in the phy ml serial port configuration 1 register. when the link integrity function is disabled, the device is forced into the link pass state, configures itself for half/full duplex based on the value of the duplex bit in the phy mi serial port control register, configures itself for 100/10 mbps operation based on the values of the speed bit in the ml serial port control register, and continues to transmit nlp's or tx idle patterns, depending on whether the device is in 10 or 100 mbps mode. 7.7.13 jabber 100 mbps jabber function is disabled in the 100 mbps mode. 10 mbps jabber condition occurs when the transmit packe t exceeds a predetermined length. when jabber is detected, the tp transmit outputs are forced to the idle state, collision is asserted, and register bits in the phy ml serial port status and status output registers are set. jabber disable the jabber function can be disabl ed by setting the jabber disabl e bit in the phy mi serial port configuration 2 register. 7.7.14 receive polarity correction 100 mbps no polarity detection or correction is needed in 100mbps mode. 10 mbps the polarity of the signal on the tp receive input is continuously monitored. if either 3 consecutive link pulses or one soi pulse indicates incorrect polarity on the tp receive input, the polarity is internally determined to be incorrect, and a reverse polarity bit is set in the phy ml serial port status output register. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 41 revision 1.92 (06-27-11) datasheet the lan91c111 will automatically correct for the reverse polarity condition provided that the autopolarity feature is not disabled. note: the first 3 received packets must be discarded after the correction of a reverse polarity condition. autopolarity disable the autopolarity feature can be disabled by setting the autopolarity disable bit in the phy mi serial port configuration 2 register. 7.7.15 full duplex mode 100 mbps full duplex mode allows transmission and reception to occur simultaneously. when full duplex mode is enabled, collision is disabled. the device can be either forced into half or full duplex mode, or the device can detect either half or full duplex capability from a remote device and automatically place itself in the correct mode. the device can be forced into the full or half duplex modes by either setting the duplex bit in the mi serial port control register. the device can automati cally configure itself for full or half duplex modes by using the autonegotiation algorithm to advertise and detect full and half duplex capabilities to and fr om a remote terminal. all of this is described in detail in the link integrity and autonegotiation section. 10 mbps full duplex in 10 mbps mode is identical to the 100 mbps mode. 100/10 mbps selection general the device can be forced into either the 100 or 10 mbps mode, or the device also can detect 100 or 10 mbps capability from a remote device and autom atically place itself in the correct mode. the device can be forced into either the 100 or 10 mbps mode by setting the speed select bit in the phy mi serial port control register assuming autonegotiation is not enabled. the device can automatically configure itself for 100 or 10 mbps mode by using the autonegotiation algorithm to advertise and detect 100 and 10 mbps capabilities to and from a remote terminal. all of this is described in detail in the link integrity & autonegotiation section. 7.7.16 loopback diagnostic loopback a diagnostic loopback mode can also be selected by setting the loopback bit in the mi serial port control register. when diagnostic loopback is enabled, transmit data at internal mii is looped back onto receive data output at internal mii, transmit ena ble signal is looped back onto carrier sense output at internal mii, the tp re ceive and transmit paths are disabled, the transmit link pulses are halted, and the half/full duplex modes do not change. 7.7.17 phy powerdown the internal phy of lan91c111 can be powered down by setting the powerdown bit in the phy ml serial port control register. in powerdown mode, the tp outputs are in high impedance state, all functions are disabled except the phy ml serial port, and the power consumption is reduced to a minimum. to restore phy to normal power mode, set the pdn bit in phy mi register 0 to 0. the phy downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 42 smsc lan91c111 rev c datasheet is then in isolation mode (mii_dis bit is set); this mii_dis bit is needed to be cleared. the device is guaranteed to be ready for normal operatio n 500ms after powerdown is de-asserted. note: the pdn bit must not be set when the device is in external phy mode. 7.7.18 phy interrupt the lan91c111 phy has interrupt capability. the in terrupt is triggered by certain output status bits (also referred to as interrupt bits) in the serial por t. r/lt bits are read bits that latch on transition. r/lt bits are also interrupt bits if they are not masked out with the mask register bits. interrupt bits automatically latch themselves into their register locations and assert the interrupt indication when they change state. interrupt bits stay latched until they are read. when in terrupt bits are read, the interrupt indication is deasserted and the interrupt bits that caused the interrupt to happen are updated to their current value. each interrupt bit can be i ndividually masked and subsequently be removed as an interrupt bit by setting the appropriate mask register bits in the mask register. lnterrupt indication is done in two ways: (1) mdint bit in interrupt status register, (2) int bit in the phy ml serial port status output register. the in t bit is an active high interrupt register bit that resides in the phy mi serial port status output register. 7.8 reset the chip (mac & phy) performs an internal system reset when either (1) the reset pin is asserted high for at least 100ns, (2) writing 1 to the soft_r st bit in the receive control register, this reset bit is not a self-clearing bit, reset can be terminated by writing the bit low. it programs all registers to their default value. when reset is initiated by (1) and the eeprom is presented and enabled, the controller will load the eeprom to obtain the foll owing configurations: 1) configuration register, 2) base register, or/and 3) mac address. the internal mac is no t a power on reset device, thus reset is required after power up to ensure all register bits are in default state. the internal phy is reset when either (1) vdd is applied to the device, (2) the rst bit is set in the phy ml serial port control register, this reset bit is a self-clearing bit, and the phy will return a 1 on reads to this bit until the reset is completed, 3) the reset pin is asserted high, (4) the soft_rst bit is set high and then cleared. when reset is init iated by (1) or (2), an internal power-on reset pulse is generated which resets all internal circuits, forces the phy ml serial port bits to their default values, and latches in new values for the mi address. af ter the power-on reset pulse has finished, the reset bit in the phy ml serial port control registers cl eared and the device is ready for normal operation. when reset is initiated by (3), t he same procedure occurs except t he device stays in the reset state as long as the reset pin is he ld high. the internal phy is guaranteed to be ready for normal operation 50 ms after the reset pin was de-asserted or the reset bit is set. software driver requires to wait for 50ms after setting the rst bit to high to access the internal phy again. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 43 revision 1.92 (06-27-11) datasheet chapter 8 mac data structures and registers 8.1 frame format in buffer memory the frame format in memory is similar for the transmi t and receive areas. the first word is reserved for the status word. the next word is used to spec ify the total number of bytes, and it is followed by the data area. the data area holds the frame itself. by default, the last byte in the receive frame format is followed by the crc, and the control byte follows the crc. figure 8.1 data frame format transmit packet receive packet status word written by csma upon transmit completion (see status register) written by csma upon receive completion (see rx frame status word) byte count written by cpu written by csma data area written/modified by cpu written by csma control byte written by cpu to control odd/even data bytes written by csma; also has odd/even bit reserved byte count (always even) status word data area last data byte (if odd) bit0 bit15 ram offset (decimal) 02 4 2046 max control byte last byte 1st byte 2nd byte crc (4 bytes) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 44 smsc lan91c111 rev c datasheet byte count - divided by two, it defines the total number of words including the status word, the byte count word, the data area, the cr c, and the control byte. the crc is not included if the strip_crc bit is set. the maximum number of bytes in a ram page is 2048 bytes. the receive byte count always appears as even; the oddfrm bit of the receive status word indicates if the low byte of the last word is relevant. the transmit byte count least significant bit will be assumed 0 by the controller regardless of the value written in memory. data area - the data area starts at offset 4 of the packet structure and can extend up to 2043 bytes. the data area contains six bytes of destin ation address followed by six bytes of source address, followed by a variable-le ngth number of bytes. on transmit, all bytes are provided by the cpu, including the source address. the lan91c111 does not insert its own source address. on receive, all bytes are provided by the csma side. the 802.3 frame length word (frame type in etherne t) is not interpreted by the lan91c111. it is treated transparently as data both for transmit and receive operations. control byte - for transmit packets the co ntrol byte is written by the cpu as: odd - if set, indicates an odd number of bytes, wit h the last byte being right before the control byte. if clear, the number of data bytes is even and the byte before the control byte is not transmitted. crc - when set, crc will be appended to the frame. this bit has meaning only if the nocrc bit in the tcr is set. for receive packets the control byte is written by the controller as: odd - if set, indicates an odd number of bytes, wit h the last byte being right before the control byte. if clear, the number of data bytes is even and the byte before the control byte should be ignored. xxo d dc r c0000 01o d d00000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 45 revision 1.92 (06-27-11) datasheet 8.2 receive frame status this word is written at the beginn ing of each receive frame in memory. it is not available as a register. algnerr - frame had alignment error. broadcast - receive frame was broadcast. when a broadcast packet is received, the multcast bit may be also set on the status word in addition to the brodcast bit. the software implement may just ignore the multcast bit if for brodcast packet. badcrc - frame had crc error, or rx_er was asserted during reception. oddfrm - this bit when set indicates that t he received frame had an odd number of bytes. toolng - frame length was longer than 802.3 maximum size (1518 bytes on the cable). tooshort - frame length was shorter than 802.3 minimum size (64 bytes on the cable). hash value - provides the hash value used to in dex the multicast registers. can be used by receive routines to speed up the group address s earch. the hash value consists of the six most significant bits of the crc calculated on the destin ation address, and maps into the 64 bit multicast table. bits 5,4,3 of the hash value select a byte of the multicast ta ble, while bits 2,1,0 determine the bit within the byte selected. examples of the address mapping: multcast - receive frame was multicast. if hash va lue corresponds to a multicast table bit that is set, and the address was a multicast, the packet will pass address filtering regard less of other filtering criteria. high byte algn err brod cast bad crc odd frm toolng too short low byte hash value mult cast r e s e r v e d 543210 address hash value 5-0 multicast table bit ed 00 00 00 00 00 0d 00 00 00 00 00 01 00 00 00 00 00 2f 00 00 00 00 00 000 000 010 000 100 111 111 111 mt-0 bit 0 mt-2 bit 0 mt-4 bit 7 mt-7 bit 7 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 46 smsc lan91c111 rev c datasheet 8.3 i/o space the base i/o space is determined by the ios0-ios2 inputs and t he eeprom contents. to limit the i/o space requirements to 16 locations, the registers are assigned to different banks. the last word of the i/o area is shared by all ban ks and can be used to change th e bank in use. registers are described using the following convention: ffset - defines the address offset within the iobase where the register can be accessed at, provided the bank select has the appropriate value. the offset specifies the address of the even byte (bits 0-7) or the address of the complete word. the odd byte can be accessed using address (offset + 1). some registers (like the interrupt ack., or like in terrupt mask) are functionally described as two eight bit registers, in that case the offset of each one is independently specified. regardless of the functional description, all register s can be accessed as doublewords, words or bytes. the default bit values upon hard reset are highlighted below each register. a special bank (bank7) exists to support the addition of external registers. offset name type symbol high byte bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 xxxxxxxx low byte bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 xxxxxxxx table 8.1 internal i/o space mapping bank0 bank1 bank2 bank3 0 tcr config mmu command mt0-1 2 eph status base pnr mt2-3 4 rcr ia0-1 fifo ports mt4-5 6 counter ia2-3 pointer mt6-7 8 mir ia4-5 data mgmt a rpcr general purpose data revision c reserved control interrupt rcv e bank bank bank bank downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 47 revision 1.92 (06-27-11) datasheet 8.4 bank select register bs2, bs1, bs0 determine the bank presently in use. this register is always accessible and is used to select the register bank in use. the upper byte always reads as 33h and can be us ed to help determine the i/o location of the lan91c111. the bank select register is always accessible regardless of the value of bs0-2 note: the bank select register can be accessed as a do ubleword at offset 0x0ch, as a word at offset 0x0eh, or as a byte at offset 0x0eh, a doubl eword write to offset 0x0ch will write the bank select register but will not write the regist ers 0x0ch and 0x0dh, but will only write to register 0x0eh bank 7 has no internal registers other than the bank select register itself. on valid cycles where bank7 is selected (bs0=bs1=bs2=1), a nd a3=0, ncsout is activated to facilitate implementation of external registers. note: bank7 does not exist in lan91c9x devices. for backward s/w compat ibility bank7 accesses should be done if the revision control register indicates the device is the lan91c111. bank 7 is a new register bank to the smsc lan9 1c111 device. this bank has extended registers that allow the extended feature set of the smsc lan91c111. offset name type symbol e bank select register read/write bsr high byte reserved reserved reserved reserved reserved reserved reserved reserved 00110011 low byte bs2 bs1 bs0 xxxxx0 0 0 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 48 smsc lan91c111 rev c datasheet 8.5 bank 0 - transmit control register this register holds bits programmed by the cpu to control some of the protocol transmit options. swfdup - enables switched full duplex mode. in this mode, transmit state machine is inhibited from recognizing carrier sense, so defer rals will not occur. also inhibi ts collision count, therefore, the collision related status bits in the ephsr are not valid (ctr_rol, latcol, sqet, 16col, mul col, and sngl col). uses col100 as flow control, lim iting backoff and jam to 1 clock each before inter- frame gap, then retry will occur af ter ifg. if col100 is active during preamble, full preamble will be output before jam. when swfdup is high, the values of fduplx and mon_csn have no effect. eph_loop - internal loopback at the eph block. serial data is internally looped back when set. defaults low. when eph_loop is high the following transmit outputs are forced inactive: txd0-txd3 = 0h, txen100 = 0. the following and external inputs are blocked: crs100=0, col100=0, rx_dv= rx_er=0. stp_sqet - stp_sqet - stop transm ission on sqet error. if this bit is set, lan91c111 will stop and disable the transmitter on sqe test error. if t he external sqet generator on the network generates the sqet pulse during the ipg (int er frame gap), this bit will not be set and subsequent transmits will occur as in the case of implementing auto rel ease for multiple transmit packets. if this bit is cleared, then the sqet bit in the eph status register will be cleared. defaults low. fduplx - when set the lan91c111 will cause frames to be received if they pass the address filter regardless of the source for the fr ame. when clear the node will not re ceive a frame sourced by itself. this bit does not control the duplex mode operation, the duplex mode operation is controlled by the swfdup bit. mon_csn - when set the lan91c111 monitors carrier while transmitting. it must see its own carrier by the end of the preamble. if it is not seen, or if carrier is lost during transmission, the transmitter aborts the frame without crc and turns itself off and sets the lost carr bit in the ephsr. when this bit is clear the transmitter ignores its own carrier. defaults low. should be 0 for mii operation. nocrc - does not append crc to transm itted frames when set. allows software to insert the desired crc. defaults to zero, namely crc inserted. pad_en - when set, the lan91c111 will pad transmit frames shorter than 64 bytes with 00. for tx, cpu should write the actual by te count before padded by the lan91c111 to the buffer ram, excludes the padded 00. when this bit is cleared, the lan91c111 does not pad frames. forcol - when set, the forcol bit will force a collisio n by not deferring deliberately. this bit is set and cleared only by the cpu. when txena is enabl ed with no packets in the queue and while the forcol bit is set, the lan91c111 will transmit a pr eamble pattern the next time a carrier is seen on offset name type symbol 0 transmit control register read/write tcr high byte swfdup reserved eph loop stp sqet fduplx mon_ csn reserved nocrc 00000000 low byte pad_en reserved reserved reserv ed reserved forcol loop txena 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 49 revision 1.92 (06-27-11) datasheet the line. if a packet is queued, a preamble and sfd will be transmitted. this bit defaults low to normal operation. note: the latcol bit in the ephsr, se tting up as a result of forcol, will reset txena to 0. in order to force another col lision, txena must be set to 1 again. loop - loopback. general purpose output port used to control the lbk pin. typically used to put the phy chip in loopback mode. txena - transmit enabled when set. transmit is disabled if clear. when the bit is cleared the lan91c111 will complete the current transmissi on before stopping. when stopping due to an error, this bit is automatically cleared. 8.6 bank 0 - eph status register this register stores the status of the last transmitted frame. this register value, upon individual transmit packet completion, is stored as the first word in the memory area allocated to the packet. packet interrupt processing should use the copy in me mory as the register it self will be updated by subsequent packet transmissions. the register can be used for real time values (like txena and link ok). if txena is cleared the register ho lds the last packet completion status. link_ok - general purpose input port driven by nlnk pin inverted. typically used for link test. a transition on the value of this bit generates an interrupt. ctr_rol - counter roll over. when set one or more 4 bit counters have reached maximum count (15). cleared by reading the ecr register. exc_def - excessive deferral. when set last/current transmit was deferred for more than 1518 * 2 byte times. cleared at the end of every packet sent. lost_carr - lost carrier sense. when set indicate s that carrier sense was not present at end of preamble. valid only if mon_csn is enabled. this condition causes txena bit in tcr to be reset. cleared by setting txena bit in tcr. latcol - late collision detected on last transmit fram e. if set a late collision was detected (later than 64 byte times into the frame). when detected the tr ansmitter jams and turns itself off clearing the txena bit in tcr. cleared by setting txena in tcr. tx_defr - transmit deferred. when set, ca rrier was detected during the first 6.4 s of the inter frame gap. cleared at the end of every packet sent. ltx_brd - last transmit frame was a broadcast. set if frame was broadcast. cleared at the start of every transmit frame. offset name type symbol 2 eph status register read only ephsr high byte reserved link_ ok reserved ctr _rol exc _def lost carr latcol reserved 0 -nlnk pin 0 0 0 0 0 0 low byte tx defr ltx brd sqet 16col ltx mult mul col sngl col tx_suc 00 000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 50 smsc lan91c111 rev c datasheet sqet - signal quality error test. this bit is set under the following conditions: 1. lan91c111 is set to operate in half duplex mode (swfdup=0); 2. when stp_sqet=1 and swfdup=0, sqet bit will be set upon completion of a transmit operation and no sqet pulse has occurred durin g the ipg (inter frame gap). if a pulse has occurred during the ipg, sqet bit will not get set. 3. once sqet bit is set, setting the txena bit in tcr register, or via hardware /software reset can clear this bit. 16col - 16 collisions reached. set when 16 collisi ons are detected for a transmit frame. txena bit in tcr is reset. cleared when txena is set high. ltx_mult - last transmit frame was a multicast. set if frame was a multicast. cleared at the start of every transmit frame. mulcol - multiple collision detected for the last transmit frame. set when more than one collision was experienced. cleared when tx_suc is hi gh at the end of the packet being sent. snglcol - single collision detected for the last transmit frame. set when a collision is detected. cleared when tx_suc is high at the end of the packet being sent. tx_suc - last transmit was succes sful. set if transmit completes without a fatal error. this bit is cleared by the start of a new frame transmission or when txena is set high. fatal errors are: ? 16 collisions (1/2 duplex mode only) ? sqet fail and stp_sqet = 1 (1/2 duplex mode only) ? carrier lost and mon_csn = 1 (1/2 duplex mode only) ? late collision (1/2 duplex mode only) 8.7 bank 0 - receive control register soft_rst - software-activated reset. active high. initiated by writing this bit high and terminated by writing the bit low. the lan91c111s configuration is not preserved except for configuration, base, and ia0-ia5 registers. eeprom is not reloaded after software reset. filt_car - filter carrier. when set filters leading edge of carrier sense for 12 bit times (3 nibble times). otherwise recognizes a receive frame as soon as carrier sense is active. (does not filter rx dv on mii!) offset name type symbol 4 receive control register read/write rcr high byte soft rst filt car abort_e nb reserved reserved reserved strip crc rxen 00000000 low byte reserved reserved reserved reserved reserved almul prms rx_ abort 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 51 revision 1.92 (06-27-11) datasheet abort_enb - enables abort of receive when collision occurs. defaults low. when set, the lan91c111 will automatically abort a packet being received when the appropriate collision input is activated. this bit has no effect if the swfdup bit in the tcr is set. strip_crc - when set, it strips the crc on receiv ed frames. as a result, both the byte count and the frame format do not contain the crc. when clear, the crc is stored in memory following the packet. defaults low. rxen - enables the receiver when set. if cleared , completes receiving current frame and then goes idle. defaults low on reset. almul - when set accepts all multicast frames (frame s in which the first bit of da is '1'). when clear accepts only the multicast frames that matc h the multicast table setting. defaults low. prms - promiscuous mode. when set receives all frames. does not receive its own transmission unless it is in full duplex! rx_abort - this bit is set if a receive frame was aborted due to length longer than 2k bytes. the frame will not be received. the bit is cleared by reset or by the cpu writing it low. reserved - must be 0. 8.8 bank 0 - counter register counts four parameters for mac st atistics. when any counter reaches 15 an interrupt is issued. all counters are cleared when reading the regi ster and do not wrap around beyond 15. each four bit counter is incremented every time the corresponding event, as defined in the eph status register bit description, occurs. note that the counters can only increment once per enqueued transmit packet, never faster, limiting the rate of interrupts that can be generated by the counters. for example if a packet is successfu lly transmitted after one collision the single collision count field is incremented by one. if a packet experiences between 2 to 16 collisions, the multiple collision count field is incremente d by one. if a packet experiences deferral the number of deferred tx field is incremented by one, even if the packet experienced multiple deferrals during its collision retries. the counter register facilitates maintaining statistics in the auto release mode where no transmit interrupts are generated on successful transmissions. reading the register in the transmit service routine will be enough to maintain statistics. offset name type symbol 6 counter register read only ecr high byte number of exc. deffered tx number of deffered tx 00000000 low byte multiple collision count single collision count 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 52 smsc lan91c111 rev c datasheet 8.9 bank 0 - memory information register free memory available - this register can be read at any time to determine the amount of free memory. the register defaults to the memory si ze upon por (power on reset) or upon the reset mmu command. memory size - this register can be re ad to determine the total memory size. all memory related information is represented in 2k * m byte units, where the multiplier m is 1 for lan91c111. 8.10 bank 0 - receive/phy control register speed C speed select input. this bit is valid and selects 10/100 phy operation only when the aneg bit = 0, this bit overrides the speed bit in the phy register 0 (control re gister) and determine the speed mode. when this bit is set (1), the inte rnal phy will operate at 100mbps. when this bit is cleared (0), the internal phy will operate at 10mbps. when the aneg bit = 1, this bit is ignored and 10/100 operation is determined by the outcome of the auto-negotiation or this bit is overridden by the speed bit in the phy register 0 (c ontrol register) when the aneg _en bit in the phy register 0 (control register) is clear. offset name type symbol 8 memory information register read only mir high byte free memory available (in bytes * 2k * m) 00000100 low byte memory size (in bytes *2k * m) 00000100 offset name type symbol a receive/phy control register read/write rpcr high byte reserved reserved speed dplx aneg reserved reserved reserved 000000 00 low byte ls2a ls1a ls0a ls2b ls1b ls0b reserved reserved 000000 00 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 53 revision 1.92 (06-27-11) datasheet dplx C duplex select - this bit selects full/half duplex operation. this bit is valid and selects duplex operation only when the aneg bit = 0, this bit overrides the dplx bit in the phy register 0 (control register) and determine the duplex mode. when this bit is set (1), the internal phy will operate at full duplex mode. when this bit is cleared (0), the internal phy will operate at half duplex mode. when the aneg bit = 1, this bit is ignored and duplex mode is determined by the outcome of the auto- negotiation or this bit is overridden by the dplx bi t in the phy register 0 (control register) when the aneg_en bit in the phy register 0 (control register) is clear. aneg C auto-negotiation mode select - the phy is placed in auto-negotiation mode when the aneg bit and the aneg_en bit in phy register 0 (control register) both are set. when either of these bits is cleared (0), the phy is placed in manual mode. what do you want to do? auto- negotiation control bits auto-negotiation advertisement register duplex mode control for the mac try to auto-negotiate to aneg bit aneg_e n bit tx_fdx bit tx_hdx bit 10_fdx bit 10_hdx bit swfdup bit rpcr (mac) register 0 (phy) register 4 (phy) register 4 (phy) register 4 (phy) register 4 (phy) transmit control register (mac) 100 full duplex 1 1 1 1 1 1 1 100 half duplex 1 1 0 1 1 1 0 10 full duplex 1 1 0 0 1 1 1 10 half duplex 1 1 0 0 0 1 0 what do you want to do? auto-negotiation control bits speed and duplex mode control for the phy duplex mode control for the mac try to manually set to aneg bit aneg_e n bit speed bit dplx bit speed bit dplx bit swfdup bit rpcr (mac bank 0 offset a) register 0 (phy) rpcr (mac bank 0 offset a) rpcr (mac bank 0 offset a) register 0 (phy) register 0 (phy) transmit control register (mac) 100 full duplex 0 0 1 1 x x 1 0111xx 1 10xx11 1 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 54 smsc lan91c111 rev c datasheet ls2a, ls1a, ls0a C led select signal enable. thes e bits define what led control signals are routed to the leda output pin on the lan91c111 ethernet controller. t he default is 10/100 link detected. ls2b, ls1b, ls0b C led select signal enable. thes e bits define what led control signals are routed to the ledb output pin on the lan91c111 ethernet controller. t he default is 10/100 link detected. 100 half duplex 0 0 1 0 x x 0 0110xx 0 10xx10 0 10 full duplex 0 0 0 1 x x 1 0101xx 1 10xx01 1 10 half duplex 0 0 0 0 x x 0 0100xx 0 10xx00 0 ls2a ls1a ls0a led select signal C leda 0 0 0 npled3+ npled0 C logical or of 100m bps link detected 10mbps link detected (default) 0 0 1 reserved 0 1 0 npled0 - 10mbps link detected 0 1 1 npled1 - full duplex mode enabled 1 0 0 npled2 - transmit or receive packet occurred 1 0 1 npled3 - 100mbps link detected 1 1 0 npled4 - receive packet occurred 1 1 1 npled5 - transmit packet occurred ls2b ls1b ls0b led select signal C ledb 0 0 0 npled3+ npled0 C logical or of 100m bps link detected 10mbps link detected (default) 0 0 1 reserved 0 1 0 npled0 - 10mbps link detected 0 1 1 npled1 C full duplex mode enabled what do you want to do? auto-negotiation control bits speed and duplex mode control for the phy duplex mode control for the mac downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 55 revision 1.92 (06-27-11) datasheet reserved C must be 0. 8.11 bank 1 - configuration register the configuration register holds bits that define the adapter c onfiguration and are not expected to change during run-time. th is register is part of the eeprom saved setup. eph power en - used to selectively power transition the eph to a low power mode. when this bit is cleared (0), the host will place the eph into a low power mode. the ether net mac will gate the 25mhz tx and rx clock so that the ethernet mac will no longer be able to receive and transmit packets. the host interface however, will still be active allowing the host access to the device through standard io access. all lan91c111 registers will still be accessibl e. however, status and control will not be allowed until the eph power en bit is set and a reset mmu command is initiated. no wait - when set, does not request additional wa it states. an exception to this are accesses to the data register if not ready for a transfer. when clear, negates ardy for two to three clocks on any cycle to the lan91c111. gpcntrl - this bit is a general purpose output por t. its inverse value drives pin ncntrl and it is typically connected to a select pin of the external phy device such as a power enable. it can be used to select the signaling mode for the exte rnal phy or as a general purpose non-volatile configuration pin. defaults low. ext phy C external phy enabled. this bit, when set (1): a. enables the external mii. b. the internal phy is disabled and is disconnected (tri-stated from the in ternal mii along with any sideband signals (such as mdint) going to the mac core). 1 0 0 npled2 C transmit or receive packet occurred 1 0 1 npled3 - 100mbps link detected 1 1 0 npled4 - receive packet occurred 1 1 1 npled5 - transmit packet occurred offset name type symbol 0 configuration register read/write cr high byte eph power en reserved reserved no wait reserved gpcntrl ext phy reserved 10 100 0 0 0 low byte reserved reserved reserved reserved reserved reserved 10 110 0 0 1 ls2b ls1b ls0b led select signal C ledb downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 56 smsc lan91c111 rev c datasheet when this bit is cleared (0 - default): a. the internal phy is enabled. b. the external mii pins, including the mi i management interface pins are tri-stated. reserved C reserved bits. 8.12 bank 1 - base address register this register holds the i/o address decode option chosen for the lan91c111. it is part of the eeprom saved setup and is not usually modified during run-time. a15 - a13 and a9 - a5 - these bits are compared against the i/o address on the bus to determine the iobase for the lan91c111s registers. the 64k i/o space is fully decoded by the lan91c111 down to a 16 location space, therefore the unspecified address lines a4, a10, a11 and a12 must be all zeros. all bits in this register are loaded from the se rial eeprom. the i/o base decode defaults to 300h (namely, the high byte defaults to 18h). reserved C reserved bits. below chart shows the decoding of i/o base address 300h: offset name type symbol 2 base address register read/write bar high byte a 1 5a 1 4a 1 3a 9a 8a 7a 6a 5 00011000 low byte reserved reserved 00000001 a15 a14 a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0 0000001100000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 57 revision 1.92 (06-27-11) datasheet 8.13 bank 1 - individu al address registers these registers are loaded starting at word location 20h of the eeprom upon hardware reset or eeprom reload. the registers can be modified by the software driver, but a store operation will not modify the eeprom individual address contents. bi t 0 of individual address 0 register corresponds to the first bit of the address on the cable. offset name type symbol 4 through 9 individual address registers read/write iar low byte address 0 00000000 high byte address 1 00000000 low byte address 2 00000000 high byte address 3 00000000 low byte address 4 00000000 high byte address 5 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 58 smsc lan91c111 rev c datasheet 8.14 bank 1 - genera l purpose register this register can be used as a way of storing a nd retrieving non-vo latile informat ion in the eeprom to be used by the software driver. the storage is word oriented, and the eeprom word address to be read or written is specified using the si x lowest bits of the pointer register. this register can also be used to sequentially program the individual address area of the eeprom, that is normally protected fr om accidental store operations. this register will be us ed for eeprom read and write only when the eeprom select bit in the control register is set. this allows generic eeprom read and write routines that do not affect the basic setup of the lan91c111. 8.15 bank 1 - control register rcv_bad - when set, bad crc packets are received. when clear bad crc packets do not generate interrupts and their me mory is released. auto release - when set, transmit pages are rel eased by transmit completion if the transmission was successful (when tx_suc is set). in that case th ere is no status word associated with its packet number, and successful packet numbers are not even written into the tx completion fifo. a sequence of transmit packets will generate an in terrupt only when the sequence is completely offset name type symbol a general purpose register read/write gpr high byte high data byte 00000000 low byte low data byte 00000000 offset name type symbol c control register read/write ctr high byte reserved rcv_ bad reserved reserved auto release reserved reserved reserved 00010010 low byte le enable cr enable te enable reserved reserved eeprom select reload store 00010000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 59 revision 1.92 (06-27-11) datasheet transmitted (tx empty int will be set), or when a packet in the sequence experiences a fatal error (tx int will be set). upon a fatal error txena is cleared and the transmission sequence stops. the packet number that failed, is present in the fifo ports register, and its pages are not released, allowing the cpu to restart the sequence after corrective action is taken. le enable - link error enable. when set it enabl es the link_ok bit transition as one of the interrupts merged into th e eph int bit. clearing the le enable bit after an eph int interrupt, caused by a link_ok transition, will acknowledge the interrupt. le enable defaults low (disabled). cr enable - counter roll over enable. when set, it enables the ctr_rol bit as one of the interrupts merged into the eph int bit. reading the counter register after an eph int interrupt caused by a counter rollover, will acknowledge the interrupt. cr enable defaults low (disabled). te enable - transmit error enable. when set it enables transmit error as one of the interrupts merged into the eph int bit. an eph int interrupt caused by a transmitter error is acknowledged by setting txena bit in the tcr register to 1 or by clearing the te enable bit. te enable defaults low (disabled). transmit error is any condition that clears txena with tx_suc staying low as described in the ephsr register. eeprom select - this bit allows the cpu to specify which re gisters the eeprom reload or store refers to. when high, the general purpose regi ster is the only register read or written. when low, reload reads configuration, base and individu al address, and store writes the configuration and base registers. reload - when set it will read the eeprom and updat e relevant registers with its contents. clears upon completing the operation. store - when set, stores the contents of all rele vant registers in the serial eeprom. clears upon completing the operation. note: when an eeprom access is in progress the store and reload bits will be read back as high. the remaining 14 bits of this register will be invalid. during this time attempted read/write operations, other than polling the eeprom status, will not have any effect on the internal registers. the cpu can resume accesses to the lan91c111 after both bits are low. a worst case reload operation initiated by reset or by software takes less than 750 s. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 60 smsc lan91c111 rev c datasheet 8.16 bank 2 - mmu command register this register is used by the cpu to control the memory allocation, de-allocation, tx fifo and rx fifo control. the three command bits determine the command issued as described below: command set: offset name type symbol 0 mmu command register write only busy bit readable mmucr high byte low byte command reserved reserved reserved reserved busy operation code 0 operation code decimal value command 000 0 noop - no operation 001 1 allocate memory for tx 010 2 reset mmu to initial state - frees al l memory allocations, clears relevant interrupts, resets packet fifo pointers. 011 3 remove frame from top of rx fifo - to be issued after cpu has completed processing of present receiv e frame. this command removes the receive packet number from the rx fifo and brings the next receive frame (if any) to the rx area (output of rx fifo). 100 4 remove and release top of rx fifo - like 3) but also releases all memory used by the packet presently at the rx fifo output. the mmu busy time after issuing remove and release command depends on the time when the busy bit is cleared. the time fr om issuing remove and release command on the last receive packet to the time when receive fifo is empty depends on rx int bit turning low. an alternate approach can be checking the read rx fifo register. 101 5 release specific packet - frees all pages allocated to t he packet specified in the packet number register. should not be used for frames pending transmission. typically used to remove transmitted frames, after reading their completion status. can be used following 3) to release receive packet memory in a more flexible way than 4). downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 61 revision 1.92 (06-27-11) datasheet note: ? when using the reset tx fifos command, the cp u is responsible for releasing the memory associated with outstanding packets, or re-enqueuing them. packet numbers in the completion fifo can be read via the fifo ports register before issuing the command. ? mmu commands releasing memory (commands 4 and 5) should only be issued if the corresponding packet number has memory allocated to it. command sequencing a second allocate command (command 1) should not be issued until the present one has completed. completion is determined by reading the failed bit of the allocation result register or through the allocation interrupt. a second release command (commands 4, 5) should not be issued if the previous one is still being processed. the busy bit indicates that a release command is in progress. after issuing command 5, the contents of the pnr should not be changed until busy goes low. after issuing command 4, command 3 should not be issued until busy goes low. busy bit - readable at bit 0 of the mmu command register address. when set indicates that mmu is still processing a release command. when clear, mmu has already completed last release command. busy and failed bits are set upon the trailing edge of command. 110 6 enqueue packet number into tx fi fo - this is the normal method of transmitting a packet just loaded into ram. the packet number to be enqueued is taken from the packet number register. 111 7 reset tx fifos - this command will reset both tx fifos: the tx fifo holding the packet numbers awaiting transmission and the tx completion fifo. this command provides a mechanism for canceling packet transmissions, and reordering or bypassing the transmit queue. the reset tx fifos command should only be used when the transmi tter is disabled. unlike the reset mmu command, the reset tx fifos do es not release any memory. operation code decimal value command downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 62 smsc lan91c111 rev c datasheet 8.17 bank 2 - packet number register packet number at tx area - the va lue written into this register determines which packet number is accessible through the tx area. some mmu comm ands use the number stored in this register as the packet number parameter. this register is cleared by a reset or a reset mmu command. this register is updated upon an allocate memory mmu command. failed - a zero indicates a successful allocation completion. if the allocation fails the bit is set and only cleared when the pending allocation is satisfied. defaults high upon reset and reset mmu command. for polling purposes, the alloc_int in the interrupt status register should be used because it is synchronized to the read operation. sequence: 1. allocate command 2. poll alloc_int bit until set 3. read allocation result register allocated packet number - packet number associat ed with the last memory allocation request. the value is only valid if the failed bit is clear. note: for software compatibility with future versions, the value read from the arr after an allocation request is intended to be written into the pnr as is, without masking higher bits (provided failed = 0). offset name type symbol 2 packet number register read/write pnr reserved reserved packet number at tx area 00000000 offset name type symbol 3 allocation result register read only arr failed reserved allocated packet number 10000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 63 revision 1.92 (06-27-11) datasheet 8.18 bank 2 - fifo ports register this register provides access to the read ports of the receive fifo and the transmit completion fifo. the packet numbers to be processed by the interru pt service routines are read from this register. rempty - no receive packets queued in the rx fi fo. for polling purposes, uses the rcv_int bit in the interrupt status register. top of rx fifo packet number - packet number presently at the output of the rx fifo. only valid if rempty is clear. the packet is removed fr om the rx fifo using mmu commands 3) or 4). tempty - no transmit packets in completion queue. for polling purposes, uses the tx_int bit in the interrupt status register. tx fifo packet number - packet number presently at the output of the tx fifo. only valid if tempty is clear. the packet is removed when a tx int acknowledge is issued. note: for software compatibility with future versions, the value read from each fifo register is intended to be written into the pnr as is, without masking higher bits (provided tempty and rempty = 0 respectively). offset name type symbol 4 fifo ports register read only fifo high byte rempty reserved rx fifo packet number 10000000 low byte tempty reserved tx fifo packet number 10000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 64 smsc lan91c111 rev c datasheet 8.19 bank 2 - pointer register pointer register - the value of this register determines the address to be accessed within the transmit or receive areas. it will auto-increment on accesses to the data register when auto incr. is set. the increment is by one for every byte acce ss, by two for every word access, and by four for every double word access. when rcv is set the add ress refers to the receive area and uses the output of rx fifo as the packet number, when rcv is clear the address refers to the transmit area and uses the packet number at the packet number register. read - determines the type of access to follow. if the read bit is high the operation intended is a read. if the read bit is low the operation is a writ e. loading a new pointer value, with the read bit high, generates a pre-fetch into t he data register for read purposes. readback of the pointer will indicate the value of the address last accessed by the cpu (rather than the last pre-fetched). this allows any interrupt rout ine that uses the pointer, to save it and restore it without affecting the process being interrupted. the pointer regist er should not be loaded until the data register fifo is empty. the not empty bit of this register can be read to determine if the fifo is empty. on reads, if ardy is not connec ted to the host, the data register should not be read before 370ns after the pointer was loaded to allow the data register fifo to fill. if the pointer is loaded using 8 bit writes, the low byte should be loaded first and the high byte last. reserved - must be 0 not empty - when set indicates that the write data fifo is not em pty yet. the cpu can verify that the fifo is empty before loading a new pointer value. this is a read only bit. note: if auto incr. is not set, the pointer mu st be loaded with a dword aligned value. offset name type symbol 6 pointer register read/write not empty is a read only bit ptr high byte rcv auto incr. read reserved not empty pointer high 00000000 low byte pointer low 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 65 revision 1.92 (06-27-11) datasheet 8.20 bank 2 - data register data register - used to read or write the data bu ffer byte/word presently addressed by the pointer register. this register is mapped into two uni-directiona l fifos that allow moving words to and from the lan91c111 regardless of whether the pointer addre ss is even, odd or dword aligned. data goes through the write fifo into memory, and is pre-fetc hed from memory into the read fifo. if byte accesses are used, the appropriate (next) byte can be accessed through the data low or data high registers. the order to and from the fifo is pres erved. byte, word and dword accesses can be mixed on the fly in any order. this register is mapped into two consecutive word locations to facilitate double word move operations regardless of the actual bus width (16 or 32 bits). the data register is accessible at any address in the 8 through bh range, while the number of byte s being transferred is determined by a1 and nbe0- nbe3. the fifos are 12 bytes each. offset name type symbol 8 through bh data register read/write data data high xxxxxxxx data low xxxxxxxx downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 66 smsc lan91c111 rev c datasheet 8.21 bank 2 - interrupt status registers this register can be read and written as a word or as two individual bytes. the interrupt mask register bits enable the appropri ate bits when high and disable them when low. a mask bit being set will cause a hardware interrupt. mdint - set when the following bits in the phy mi register 18 (serial port status output register) change state. 1. lnkfail, 2) losssync, 3) cwrd, 4) ssd, 5) esd, 6) prol, 7) jab, 8) spddet, 9) dplxdet. offset name type symbol c interrupt status register read only ist mdint reserved eph int rx_ovrn int alloc int tx empty int tx int rcv int 00000100 offset name type symbol c interrupt acknowledge register write only ist mdint reserved rx_ovrn int tx empty int tx int offset name type symbol d interrupt mask register read/write msk mdint mask reserved eph int mask rx_ovrn int mask alloc int mask tx empty int mask tx int mask rcv int mask 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 67 revision 1.92 (06-27-11) datasheet these bits automatically latch upon changing state and stay latched until they are read. when they are read, the bits that caused the interrupt to ha ppen are updated to their current value. the mdint bit will be cleared by writing the acknowledge register with mdint bit set. reserved - must be 0 eph int - set when the ethernet protocol handler section indicates one out of various possible special conditions. this bit merges exception type of interrupt sources, whose service time is not critical to the execution speed of the low level drivers. the exact natur e of the interrupt can be obtained from the eph status register (ephsr), and enablin g of these sources can be done via the control register. the possible sources are: link - link test transition ctr_rol - statistics counter roll over txena cleared - a fatal transmit error occurred forcing txena to be cleared. tx_suc will be low and the specific reason will be reflected by the bits: ? sqet - sqe error ? lost carr - lost carrier ? latcol - late collision ? 16col - 16 collisions any of the above interrupt sources can be masked by the appropriate enable bits in the control register. 1. 1) le enable (link error enable), 2) cr enable (counter roll over), 3) te enable (transmit error enable) eph int will only be cleared by the following methods: ? clearing the le enable bit in the control regist er if an eph interrupt is caused by a link_ok transition. ? reading the counter register if an eph interrupt is caused by statistics counter roll over. ? setting txena bit high if an eph interrupt is caused by any of the fatal transmit error listed above (3.1 to 3.5). rx_ovrn int - set when 1) the receiver aborts due to an overrun due to a failed memory allocation, 2) the receiver aborts due to a packet length of grea ter than 2k bytes, or 3) the receiver aborts due to the rcv discrd bit in the rcv register set. the rx_ovrn int bit latches the condition for the purpose of being polled or generating an interrupt, and will only be cleared by writing the acknowledge register with the rx_ovrn int bit set. alloc int - set when an mmu request for tx ram pages is successful. this bit is the complement of the failed bit in the allocation result r egister. the alloc int bit is cleared by the mmu when the next allocation request is processed or allocation fails. tx empty int - set if the tx fifo goes empty, can be used to generate a single interrupt at the end of a sequence of packets enqueued for transmission. this bit latches the empty condition, and the bit will stay set until it is specifically cleared by writing the acknowledge register with the tx empty int bit set. if a real time reading of the fifo em pty is desired, the bit sh ould be first cleared and then read. the tx_empty mask bit should only be set after the following steps: ? a packet is enqueued for transmission ? the previous empty condition is cleared (acknowledged) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 68 smsc lan91c111 rev c datasheet tx int - set when at least one packet transmission was completed or any of the below transmit fatal errors occurs: ? sqet - sqe error ? lost carr - lost carrier ? latcol - late collision ? 16col - 16 collisions the first packet number to be serviced can be read from the fifo ports register. the tx int bit is always the logic complement of the tempty bit in the fifo ports register. after servicing a packet number, its tx int interrupt is removed by writing the interrupt acknowledge register with the tx int bit set. rcv int - set when a receive interrupt is generat ed. the first packet number to be serviced can be read from the fifo ports register. the rcv int bit is always the logic complement of the rempty bit in the fifo ports register. receive interrupt is cleared when rx fifo is empty. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 69 revision 1.92 (06-27-11) datasheet figure 8.2 interrupt structure tx fifo empty dq s nq intack1 dq s nq intack2 dq s nq intack4 dq s nq intack7 rx_ovrn mdint nwrack tx complete fatal tx error sqet lost carr latcol 16col interrupt status register 76543210 nrdist interrupt mask register 76543210 oe noe edge detector on link err lemask ctr-rol crmask temask txena tx_svc ephsr interrupts merged into eph int allocation failed rx_ovrn int eph int mdint alloc int tx empty int tx int rcv int int rcv fifo not empty d[7:0] d[15:8] data bus d[15:0] main interrupts downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 70 smsc lan91c111 rev c datasheet 8.22 bank 3 - multicast table registers the 64 bit multicast table is used for group address filtering. the hash value is defined as the six most significant bits of the crc of the destination addresses. the three msb's determine the register to be used (mt0-mt7), while the other three determine the bit within the register. if the appropriate bit in the table is set, the packet is received. if the almul bit in the rcr register is set, all multicast addresses are received regardless of the multicast table values. hashing is only a partial group addressing filteri ng scheme, but being the hash value available as part of the receive status word, the receive routine can reduce the search time significantly. with the proper offset name type symbol 0 throug h 7 multicast table read/write mt low byte multicast table 0 0000000 0 high byte multicast table 1 0000000 0 low byte multicast table 2 0000000 0 high byte multicast table 3 0000000 0 low byte multicast table 4 0000000 0 high byte multicast table 5 0000000 0 low byte multicast table 6 0000000 0 high byte multicast table 7 0000000 0 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 71 revision 1.92 (06-27-11) datasheet memory structure, the search is limited to comparin g only the multicast addresses that have the actual hash value in question. 8.23 bank 3 - management interface msk_crs100 - disables crs100 detection during transmit in half duplex mode (swfdup=0). mdo - mii management output. the value of this bit drives the mdo pin. mdi - mii management input. the value of the mdi pin is readable using this bit. mdclk - mii management clock. the val ue of this bit drives the mdclk pin. mdoe - mii management output enable. when high pin mdo is driven, when low pin mdo is tri- stated. the purpose of this interface, along with the corresponding pins is to implement mii phy management in software. offset name type symbol 8 management interface read/write mgmt high byte reserved msk_ crs100 reserved reserved reserved reserved reserved reserved 00110011 low byte reserved mdoe mclk mdi mdo 001100m d i p i n0 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 72 smsc lan91c111 rev c datasheet 8.24 bank 3 - revision register chip - chip id. can be used by software drivers to identify the device used. rev - revision id. incremented for each revision of a given device. 8.25 bank 3 - rcv register rcv discrd - set to discard a packet being received. will discard packets only in the process of being received. when set prior to the end of receiv e packet, bit 4 (rxovrn) of the interrupt status register will be set to indicate that the packet was discarded. otherwise, the packet will be received normally and bit 0 set (rcvint) in the interrupt status register. rcv discrd is self clearing. mbo - must be 1. offset name type symbol a revision register read only rev high byte 00110011 low byte chip rev 10010010 offset name type symbol c rcv register read/write rcv high byte reserved 00000000 low byte rcv discrd reserved reserved mbo mbo mbo mbo mbo 00011111 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 73 revision 1.92 (06-27-11) datasheet 8.26 bank 7 - external registers ncsout is driven low by the lan91c111 when a valid access to the external register range occurs. offset name type symbol 0 throug h 7 external registers high byte external r/w register low byte external r/w register cycle ncsout lan91c111 data bus aen=0 a3=0 a4-15 matches i/o base bank select = 7 driven low. transparently latched on nads rising edge. ignored on writes. tri-stated on reads. bank select = 4,5,6 high ignore cycle. otherwise high normal lan91c111 cycle. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 74 smsc lan91c111 rev c datasheet chapter 9 phy mii registers multiple register access multiple registers can be accessed on a single phy ml serial port access cycle with the multiple register access features. the mult iple register access features can be enabled by setting the multiple register access enables bit in the phy ml serial port configuration 2 register. when multiple register access is enabled, multiple registers can be accessed on a si ngle phy ml serial port access cycle by setting the register address to 11111 during the first 16 mdc clock cycl es. there is no actual register residing in register address location 11111, so when the register address is then set to 11111, all eleven registers are accessed on the 176 rising edges of mdc that occur after the first 16 mdc clock cycles of the phy ml serial port access cycle. the regist ers are accessed in numerical order from 0 to 20. after all 192 mdc clocks have been completed, all t he registers have been read/written, and the serial shift process is halted, data is latched into the device, and mdio goes into high impedance state. another serial shift cycle cannot be initiated until the idle condition (at leas t 32 continuous 1's) is detected. bit types since the serial port is bi-directiona l, there are many types of bits. write bits (w) are inputs during a write cycle and are high impedance during a read cycle. read bits (r) are outputs during a read cycle and high impedance during a write cycle. read/write bits (rw) are actually write bits, which can be read out during a read cycle. r/wsc bits are r/w bi ts that are self-clearing after a set period of time or after a specific event has completed. r/ll bits are read bits that latch themselves when they go low, and they stay latched low until read. after they are read, they are reset high. r/lh bits are the same as r/ll bits except that they latch high. r/lt are read bits that la tch themselves whenever they make a transition or change value, and they stay latc hed until they are read. after r/lt bits are read, they are updated to their current value. r/lt bits can also be programmed to assert the interrupt function. bit type definition r : read only r/wsc : read/write self clearing w : write only r/lh : read/latch high rw : read/write r/ll : read/latch low r/lt : read/latch on transition register address register name 0c o n t r o l 1s t a t u s 2,3 phy id 4 auto-negotiation advertisement 5 auto-negotiation remote end capability 6....15 reserved downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 75 revision 1.92 (06-27-11) datasheet phy register description d[15:0] register 0 control register 1 status register 2 phy id#1 register 3 phy id#2 register 4 autonegotiation advertisement register 5 autonegotiation remote end capability register 16 configuration 1 register 17 configuration 2 register 18 status output register 19 mask register 20 reserved 16 configuration 1 17 configuration 2 18 status output 19 mask 20 reserved table 9.1 mii serial frame structure idle st[1:0] read write phyad[4:0] regad[4:0] ta[1:0] d[15:0] symbol name definition r/w idle idle pattern these bits are an idle patt ern. device will not initiate an mi cycle until it detects at least 32 1's w st1st0 start bits when st[1:0]= 01, a mi serial port access cycle starts. w read read select 1 = read cycle w write write select 1 = write cycle w register address register name downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 76 smsc lan91c111 rev c datasheet phyad[4:0] physical device address physical address r regad[4:0] register address if regad[4:0] = 00000-11110, thes e bits determine the specific register from which d[15:0] is read/written. if multiple register access is enabled and regad[4:0] = 11111, all registers are r ead/written in a single cycle. w ta1 ta0 turnaround time these bits provide some turnaround time for mdio when read = 1, ta[1:0] = z0 when write = 1, ta[1:0] = 10 the turnaround time is a 2 bit time spacing between the register address field and the data field of a management frame to avoid contention during a read transaction. for a read transaction, both the sta and the phy shall remain in a high impedance state for the first bit time of the turnaround. the phy shall drive a zero bit during the second bit time of the turnaround of a read transaction. during a write transaction, the sta shall drive a one bit for the first bit time of the turnaround and a zero bit for the second bit time of the turnaround. r/w d[15:0].... data these 16 bits contain da ta to/from one of t he eleven registers selected by register address bits regad[4:0]. any symbol name definition r/w downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 77 revision 1.92 (06-27-11) datasheet table 9.2 mii serial port register map r/lt r/lt r r r/lt r/lt r r 0 1 r/lt r/lt r/lt r/lt r r/lt r/lt r/lt 0 0 00 00 0 00 00 0 0 x.6 x.7 x.8 x.9 x.13 x.10 x.15 x.14 x.11 x.12 x.3 x.0 x.5 x.4 x.1 x.2 r/w r/w r/w r/w r/w r/w r/w r/w 0 0 r/w r/wsc r/w r/w r/wsc r/w r/w r/w 0 0 11 o r 0 00 0 1 00 00 0 0 control status autonegot. advertisement phy id #2 phy id #1 autonegot. remote capability status output configuration 2 configuration 1 mask reserved reserved coltst dplx aneg_rst speed rst lpbk pdn aneg_en mii_dis cap_supr cap_txh cap_t4 cap_txf cap_th cap_tf cap_aneg jab aneg_ack rem_flt exreg link r rr r r r/lh r/lh r/ll 0 0 r r rr rr r r 0 0 10 01 1 1 11 00 0 0 oui12 oui11 oui10 oui9 oui5 oui3 oui4 oui7 oui6 oui15 oui17 oui13 oui14 oui18 oui16 oui8 r rr r rr r r 0 0 r r rr rr r r 0 0 00 00 0 0 00 01 1 1 part2 part3 part4 part5 oui21 oui19 oui20 oui23 oui22 rev3 rev1 part1 part0 rev0 rev2 oui24 r rr r rr r r 1 0 r r rr rr r r 0 0 10 11 1 1 00 00 0 0 10_fdx tx_hdx tx_fdx t4 rf np ack 10_hdx csma r/w r/w r/w r/w r/w r/w r/w r/w 1 1 r/w r/w r/w r/w r/w r r/w r/w 1 0 00 00 0 0 01 10 0 0 10_fdx tx_hdx tx_fdx t4 rf np ack 10_hdx csma r rr r rr r r 0 0 r r rr rr r r 0 0 00 00 0 0 00 00 0 rlvl0 cable eqlzr unscds xmtpdn lnkdis xmtdis r eserved reserved tlvl1 trf1 tlvl3 tlvl2 trf0 tlvl0 bypscr r/w r/w r/w r/w r/w r/w r/w r/w 0 0 r/w r/w r/w r/w r/w r/w r/w r/w 0 0 00 00 0 0 00 10 1 0 r/w r/w r/w r/w r/w r/w 0 1 r/w 1 11 1 1 dplxdet spddet jab rpol losssync int lnkfail ssd cwrd esd mdpldt mspddt mjab mrpol mlosssyn mlnkfail mssd mcwrd mesd r/w r/w r/w r/w r/w r/w r/w 1 1 r/w r/w r/w r/w r/w r/w r/w 1 1 11 11 1 00 00 0 0 r/w r/w r/w r/w 0 1 r/w r/w r/w r/w r/w r/w 0 0 00 r/w 00 0 r/w 0 10 01 4 3 25 1619 18 17 20 r/w 1 r/w 1 r/w 0 r/w 0 r/w 0 apoldis jabdis mreg intmdio mint r/w 0 r/w 0 r/w 0 r/w 0 r/w 0 r/w 0 r/w 0 r/w 0 0 r/w r/w 1 reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved r eserve d 0 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 78 smsc lan91c111 rev c datasheet 9.1 register 0. control register rst - reset a 1 written to this bit will initiate a reset of the phy. the bit is self-clearing, and the phy will return a 1 on reads to this bit until the reset is completed. write transactions to this register may be ignored while the phy is processing the reset. all phy regist ers will be driven to their default states after a reset. the internal phy is guaranteed to be ready for normal operation 50 ms after the rst bit is set. software driver requires to wait for 50ms af ter setting the rst bit to high to access the internal phy again. lpbk - loopback writing a 1 will put the phy into loopback mode. speed (speed selection) when auto negotiation is disabled this bit can be used to manually select the link speed. writing a 1 to this bit selects 100 mbps, a 0 selects 10 mbps. when auto-negotiation is enabled reading or writing this bit has no meaning/effect. anen_en - auto-neg otiation enable auto-negotiation (aneg) is on when this bit is 1. in that case the contents of bits speed and duplex are ignored and the aneg process determines the link configuration. pdn - power down setting this bit to 1 will put the phy in powerdown mode. in this state the phy will respond to management transactions. note: this bit must not be set when the device is in external phy mode. mii_dis - mii disable setting this bit will set the phy to an isolated mode in which it will respond to mii management frames over the mii management interf ace but will ignore data on the mii data interface. the internal phy is placed in isolation mode at power up and reset. it can be removed from isolation mode by clearing the mii_dis bit in the phy control register. if necessary, the internal phy can be enabled by clearing the ext_phy bit in the configuration register. aneg_rst - auto-negotiation reset this bit will return 0 if the phy does not support aneg or if aneg is disabled through the aneg_en bit. if neither of the previous is true, setting this bi t to 1 resets the aneg process. this bit is self rst lpbk speed aneg_en pdn mii_dis aneg_rst dplx rw, sc rw rw rw rw rw rw. sc rw 001 101 00 colst reserved reserved reserved reserved reserved reserved reserved rw rw rw rw rw rw rw rw 00000000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 79 revision 1.92 (06-27-11) datasheet clearing and the phy will return a 1 until aneg is initiated, writing a 0 does not affect the aneg process. dplx - duplex mode when auto negotiation is disabled this bit can be used to manually select the link duplex state. writing a 1 to this bit selects full duplex while a 0 selects half duplex. when auto-negotiation is enabled reading or writing this bit has no effect. coltst - collision test setting a 1 allows for testing of the mi i col signal. 0 allows normal operation. reserved: reserved, must be 0 for proper operation 9.2 register 1. status register cap_t4 - 100base-t4 capable 1 indicates 100base-t4 capable phy, 0 not capable. cap_txf - 100base-tx full duplex capable 1 indicates 100base-x full duplex capable phy, 0 not capable. cap_txh - 100base-tx half duplex capable 1 indicates 100base-x alf duplex capable phy, 0 not capable. cap_tf - 10base-t full duplex capable 1 indicates 10mbps full duple x capable phy, 0 not capable. cap_th - 10base-t half duplex capable 1 indicates 10mbps half duplex capable phy, 0 not capable. reserved: reserved, must be 0 for proper operation. cap_supr - mi preamble suppression capable 1 indicates the phy is able to receive management frames even if not pr eceded by a preamble. 0 when it is not able. cap_t4 cap_txf cap_txh cap_tf cap_ th reserved reserved. reserved rrrrrrrr 01111000 reserved cap_supr aneg_ack re m_flt cap_aneg link jab exreg r r r r, lh r r, ll r, lh r 00 0 0 100 1 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 80 smsc lan91c111 rev c datasheet aneg_ack - auto-negotiation acknowledgment when read as 1 indicate aneg has been completed and that contents in registers 4,5,6 and 7 are valid. 0 means aneg has not completed and conten ts in registers 4,5,6 and 7 are meaningless. the phy returns zero if aneg is disabled. rem_flt- remote fault detect 1 indicates a remote fault. latches the 1 cond ition and is cleared by reading this register or resetting the phy. cap_aneg - autonegotiation capable indicates the ability (1) to perform aneg or not (0). link - link status a 1 indicates a valid link and a 0 and invalid link. the 0 condition is latched until this register is read. jab - jabber detect jabber condition detected when 1 for 10mbps. 1 latc hed until this register is read or the phy is reset. always 0 for 100mbps exreg - extended ca pability register 1 indicates extended registers are implemented 9.3 register 2&3. phy identifier register these two registers (offsets 2 and 3) provide a 32-bit value unique to the phy. 9.4 register 4. auto-negoti ation advertisement register reg bits name default value r/w soft reset 2 15-0 company id 0000000000010110 r retains original value 3 15-10 company id 111110 r retains original value 3 9-4 manufacturer's id 000100 r retains original value 3 3-0 manufacturer's revision # - - - - r retains original value np ack rf reserved reserved reserved t4 tx_fdx rw r rw rw rw rw rw rw 00 0 00001 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 81 revision 1.92 (06-27-11) datasheet this register control the values transmitted by the phy to the remote partner when advertising its abilities np - next page a 1 indicates the phy wishes to exchange next page information. ack - acknowledge it is used by the auto-negotiation function to indi cate that a device has successfully received its link partners link code word. rf - remote fault when set, an advertisement frame will be sent with the corresponding bit set. this in turn will cause the phy receiving it to set the remote fault bit in its status register t4 - 100base-t4 a '1' indicates the phy is cap able of 100base-t4 tx_fdx - 100base-tx full duplex capable a '1' indicates the phy is capable of 100base-tx full duplex tx_hdx - 100base-tx half duplex capable a '1' indicates the phy is capable of 100base-tx half duplex 10_fdx - 10base-t full duplex capable a '1' indicates the phy is capable of 10base-t full duplex 10_hdx - 10base-t half duplex capable a '1' indicates the phy is capable of 10base-t half duplex the management entity sets the value of this field prior to autonegotiation. 1 in these bit indicates that the mode of operation that corresponds to these will be acceptable to be auto-negotiated to. only modes supported by the phy can be set. csma a '1' indicates the ph y is capable of 8 02.3 csma operation 9.5 register 5. auto-negotiation remote end capability register tx_hdx 10_fdx 10_hdx reserved reserved reserved reserved csma rw rw rw rw rw rw rw rw 11 1 00001 np ack rf reserved reserved reserved t4 tx_fdx rr r rrrrr 00 0 00000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 82 smsc lan91c111 rev c datasheet the bit definitions are analogous to the auto negotiation advertisement register. 9.6 register 16. config uration 1- structur e and bit definition tx_hdx 10_fdx 10_hdx reserved reserved reserved reserved csma rr r rrrrr 00 0 00000 lnkdis xmtdis xmtpdn reserved reserved bypscr unscds eqlzr rw rw rw rw rw rw rw rw 00 0 00000 cable rlvl0 tlvl3 tlvl2 tlvl1 tlvl0 trf1 trf0 rw rw rw rw rw rw rw rw 00 1 00010 lnkdis: link disable 1 = receive link detect function disabled (force link pass) 0 = normal xmtdis: tp transmit 1 = tp transmitter disabled 0 = normal xmtpdn: tp transmit 1 = tp transmitter powered down powerdown 0 = normal reserved: reserved reserved, must be 0 for proper operation bypscr : bypass 1 = bypass scrambler/descram bler scrambler/descr- 0 = no bypass ambler select unscds: unscrambled idle 1 = disable autonegotiation with devices that transmit unscrambled downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 83 revision 1.92 (06-27-11) datasheet 9.7 register 17. config uration 2 - structure and bit definition reception disable idle on powerup and various instances 0 = enables autonegotiation with devices that transmit unscrambled idle on powerup and various instances eqlzr : receive equalizer 1 = receive equalizer disabled, set to 0 length select 0 = receive equalizer on (for 100mb mode only) cable cable type select 1 = stp (150 ohm) 0 = utp (100 ohm) rlvl0 receive input 1 = receive squelch levels reduced by 4.5 db r/w level adjust 0 = normal tlvl0-3 transmit output see ta b l e 7 . 2 level adjust trf0-1 transmitter 11 = -0.25ns rise/fall time 10 = +0.0ns adjust 01 = +0.25ns 00 = +0.50ns reserved reserved reserved reserved reserved reserved reserved reserved rr r rrrrr 11 1 11111 reserved reserved apoldis jabdis mreg intmdio reserved reserved r r rw rw rw rw rw rw 00 0 00000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 84 smsc lan91c111 rev c datasheet 9.8 register 18. statu s output - structure and bit definition apoldis: auto polarity disable 1 = auto polarity correction function disabled 1 = auto polarity correction function disabled 0 = normal 0 = normal jabdis: jabber disable select 1 = jabber disabled rw 1 = jabber disabled 0 = enabled 0 = enabled mreg: multiple register access enable 1 = multiple register access enabled 0 = no multiple register access 0 = no multiple register access intmdio: interrupt scheme select 1 = interrupt signaled with mdio pulse during idle 1 = interrupt signaled with mdio pulse during idle 0 = interrupt not signaled on mdio 0 = interrupt not signaled on mdio reserved: reserved for factory use int lnkfail losssync cwrd ssd esd rpol jab r r/lt r/lt r/lt r/lt r/lt r/lt r/lt 00 0 000 0 0 spddet dplxdet reserved reserved reserved reserved reserved reserved r/lt r/lt r r r r r r 10 0 00000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 85 revision 1.92 (06-27-11) datasheet int: interrupt detect 1 = interrupt bit(s) have changed since last read operation. 0 = no change lnkfail: link fail detect 1 = link not detected0 = normal losssync: descrambler loss of 1 = descrambler has lost synchronization synchronization detect 0 = normal cwrd: codeword error 1 = invalid 4b5b code detected on receive data 0 = normal ssd: start of stream error 1 = no start of stream delimiter detected on receive data 0 = normal esd: end of stream error 1 = no end of stream delimiter detected on receive data 0 = normal rpol: reverse polarity detect 1 = reverse polarity detected jab: jabber detect 1 = jabber detected 0 = normal spddet: 100/10 speed detect 1 = device in 100mbps mode (100base-tx) 0 = device in 10mbps mode (10base-t) dplxdet: duplex detect 1 = device in full duplex 0 = device in half duplex reserved: reserved reserved for factory use downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 86 smsc lan91c111 rev c datasheet 9.9 register 19. mask - st ructure and bit definition mint mlnkfail mlosssyn mcwrd mssd mesd mrpol mjab rw rw rw rw rw rw rw rw 11 1 11111 mspddt mdpldt reserved reserved reserved reserved reserved reserved rw rw rw rw rw rw rw rw 11 0 00000 mint: interrupt mask interrupt detect 1 = mask interrupt for int in register 18 0 = no mask mlnkfail: interrupt mask link fail detect 1 = mask interrupt for lnkfail in register 18 0 = no mask mlosssyn: interrupt mask descrambler loss 1 = mask interrupt for losssync in register 18 of synchronization detect 0 = no mask mcwrd: interrupt mask codeword error 1 = mask interrupt for cwrd in register 18 0 = no mask mssd: interrupt mask start of stream error 1 = mask interrupt for ssd in register 18 0 = no mask mesd: interrupt mask end of stream error 1 = mask interrupt for esd in register 18 0 = no mask mrpol: interrupt mask reverse polarity detect 1 = mask interrupt for rpol in register 18 0 = no mask mjab: interrupt mask jabber detect 1 = mask interrupt for jab in register 18 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 87 revision 1.92 (06-27-11) datasheet 9.10 register 20. reserved - structure and bit definition reserved: reserved for factory use. 0 = no mask mspddt: interrupt mask 100/10 speed detect 1 = mask interrupt for spddet in register 18 0 = no mask mdpldt : interrupt mask duplex detect 1 = mask interrupt for dplxdet in register 18 0 = no mask reserved: reserved reserved for factory use reserved reserved reserved reserved reserved reserved reserved reserved rw rw rw rw rw rw rw rw 00 0 00000 reserved reserved reserved reserved reserved reserved reserved reserved rw rw rw rw rw rw rw rw 10 1 00000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 88 smsc lan91c111 rev c datasheet chapter 10 software driver and hardware sequence flow 10.1 software driver and hardwa re sequence flow for power management this section describes the sequence of events and the interaction between the host driver and the ethernet controller to perform power management. the ethernet controller has the ability to reduce its power consumption when the device is not requ ired to receive or transmit ethernet packets. power management is obtained by disabling the eph clocks, including the clocks derived from the internal phy block to reduce internal swit ching, this reducing current consumption. the host interface however, will still be accessible. as discussed in table 10.1 and table 10.2 , the tables describe the interaction between the eph and host driver allowing the device to transition from low power state to normal functionality and vice versa. table 10.1 typical flow of events for placing device in low power mode s/w driver controller function 1 disable transmitter C clear the txena bit of the transmit control register ethernet mac finishes packet currently being transmitted. 2 remove and release all tx completion packet numbers on the tx completion fifo. 3 disable receiver C clear the rxen bit of the receive control register. the receiver completes receiving the current frame, if any, and then goes idle. ethernet mac will no longer receive any packets. 4 process all received packets and issue a remove and release command for each respective rx packet buffer. rx and tx completion fifos are now empty and all mmu packet numbers are now free. 5 disable interrupt sources C clear the interrupt status register save device context C save all specific register values set by the driver. 6 set pdn bit in phy mi register 0 to 1 note: this bit must not be set when the device is in external phy mode. 7 the internal phy entered in powerdown mode, the tp outputs are in high impedance state. 8 write to the eph power en bit located in the configuration register, bank 1 offset 0. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 89 revision 1.92 (06-27-11) datasheet 10.2 typical flow of events fo r transmit (auto release = 0) 9 ethernet mac gates the rx clock, tx clock derived from the internal phy. the eph clock is also disabled. 10 the ethernet mac is now in low power mode. the host may access all runtim e io mapped registers. all io registers are still accessible. however, the host should not read or wr ite to the registers with the exception of: configuration register control register bank register table 10.2 flow of events for restoring device in normal power mode s/w driver controller function 1 write and set (1) the eph power en bit, located in the configuration register, bank 1 offset 0. 2 ethernet mac enables the rx clock, tx clock derived from the internal phy. the eph clock is also enabled. 3 write the pdn bit in phy mi register 0 to 0 note: only performed when device is in internal phy mode. the phy is then set in isolation mode (mii_dis bit is set). need to clear this mii_dis bit; and, need to wait for 500 ms for the phy to restore normal. 4 internal phy entered normal operation mode 5 issue mmu reset command 6 restore device register level context. 7 enable transmitter C set the txena bit of the transmit control register ethernet mac can now transmit ethernet packets. 8 enable receiver C set (1) the rxen bit of the receive control register. ethernet mac is now able to receive packets. 9 ethernet mac is now restored for normal operation. s/w driver mac side 1 issue allocate memory for tx - n bytes - the mmu attempts to allocate n bytes of ram. 2 wait for successful completion code - poll until the alloc int bit is set or enable its mask bit and wait for the interrupt. the tx packet number is now at the allocation result register. table 10.1 typical flow of events for placing device in low power mode (continued) s/w driver controller function downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 90 smsc lan91c111 rev c datasheet 10.3 typical flow of events fo r transmit (auto release = 1) 3 load transmit data - copy the tx packet number into the packet number register. write the pointer register, then use a block move operation from the upper layer transmit queue into the data register. 4 issue "enqueue packet number to tx fifo" - this command writes the number present in the packet number register into the tx fifo. the transmission is now enqueued. no further cpu intervention is needed until a transmit interrupt is generated. 5 the enqueued packet will be transferred to the mac block as a function of txena (ntcr) bit and of the deferral process (1/2 duplex mode only) state. 6 upon transmit completion the first word in memory is written with the status word. the packet number is moved from the tx fifo into the tx completion fifo. interrupt is generated by the tx completion fifo being not empty. if a tx failure occurs on any packets, tx int is generated and txena is cleared, transmission sequence stops. the packet number of the failure packet is presented at the tx fifo ports register. 7 service interrupt - read interrupt status register. if it is a transmit interrupt, read the tx fifo packet number from the fifo ports register. write the packet number into the packet number register. the corresponding status word is now readable from memory. if status word shows successful transmission, issue release packet number command to free up the memory used by this packet. remove packet number from completion fifo by writing tx int acknowledge register. option 1) release the packet. option 2) check the transmit status in the eph status register, write the packet number of the current packet to the packet number register, re- enable txena, then go to step 4 to start the tx sequence again. s/w driver mac side 1 issue allocate memory for tx - n bytes - the mmu attempts to allocate n bytes of ram. 2 wait for successful completion code - poll until the alloc int bit is set or enable its mask bit and wait for the interrupt. the tx packet number is now at the allocation result register. 3 load transmit data - copy the tx packet number into the packet number register. write the pointer register, then use a block move operation from the upper layer transmit queue into the data register. s/w driver mac side downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 91 revision 1.92 (06-27-11) datasheet 10.4 typical flow of event for receive 4 issue "enqueue packet number to tx fifo" - this command writes the number present in the packet number register into the tx fifo. the transmission is now enqueued. no further cpu intervention is needed until a transmit interrupt is generated. 5 the enqueued packet will be transferred to the mac block as a function of txena (ntcr) bit and of the deferral process (1/2 duplex mode only) state. 6 transmit pages are released by transmit completion. 7 the mac generates a txempty interrupt upon a completion of a sequence of enqueued packets. if a tx failure occurs on any packets, tx int is generated and txena is cleared, transmission sequence stops. the packet number of the failure packet is presented at the tx fifo ports register. 8 service interrupt C read interrupt status register, exit the inte rrupt service routine. option 1) release the packet. option 2) check the transmit status in the eph status register, write the packet number of the current packet to the packet number register, re- enable txena, then go to step 4 to start the tx sequence again. s/w driver mac side 1 enable reception - by setting the rxen bit. 2 a packet is received with matching address. memory is requested from mmu. a packet number is assigned to it. additional memory is requested if more pages are needed. 3 the internal dma logic generates sequential addresses and writes the receive words into memory. the mmu does the sequential to physical address translation. if overrun, packet is dropped and memory is released. s/w driver mac side downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 92 smsc lan91c111 rev c datasheet 4 when the end of packet is detected, the status word is placed at the beginning of the receive packet in memory. byte count is plac ed at the second word. if the crc checks correctly the packet number is written into the rx fifo . the rx fifo, being not empty, causes rcv int (interrupt) to be set. the rcv_bad bit of the bank 1 control register controls whether or not to generate interrupts when bad crc packets are received. 5 service interrupt - read the interrupt status register and determine if rcv int is set. the next receive packet is at receive area. (its packet number can be read from the fifo ports register). the software driver can process the packet by accessing the rx area, and can move it out to system memory if desired. when processing is complete the cpu issues the remove and release from top of rx command to have the mmu free up the used memory and packet number. s/w driver mac side downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 93 revision 1.92 (06-27-11) 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 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 94 smsc lan91c111 rev c datasheet figure 10.2 rx intr rx intr write ad. ptr. reg. & read word 0 from ram destination multicast? read words 2, 3, 4 from ram for address filtering address filtering pass? status word ok? do receive lookahead get copy specs from upper layer okay to copy? copy data per upper layer specs issue "remove and release" command return to isr yes no yes no no yes no yes downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 95 revision 1.92 (06-27-11) datasheet figure 10.3 tx intr tx interrupt with auto_release = false 1. save the packet number register saved_pnr = read byte (bank 2, offset 2) 2. read the eph status register temp = read (bank 0, offset 2) 3. acknowledge tx interrupt write byte (0x02, (bank 2, offset c)); 4. check for status of transmission if ( temp and 0x0001) { //if successful transmission step 4.1.1: issue mmu release (release specific packet) write (0x00a0, (bank2, offset 0)); step 4.1.2: return from the routine } else { //transmission has failed // now we can either release or re-enqueue the packet step 4.2.1: get the packet to release/re-enqueue, stored in fifo temp = read (bank 2, offset 4) temp = temp & 0x003f step 4.2.2: write to the pnr write (temp, (bank2, offset 2)) step 4.2.3 // option 1: release the packet write (0x00a0, (bank2, offset 0)); //option 2: re-enqueue the packet write (0x00c0, (bank2, offset 0)); step 4.2.4: re-enable transmission temp = read(bank0, offset 0); temp = temp2 or 0x0001 write (temp2, (bank 0, offset 0)); step 4.2.5: return from the routine } 5. restore the packet number register write byte (saved_pnr, (bank 2, offset 2)) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 96 smsc lan91c111 rev c datasheet figure 10.4 txempty intr (assumes auto release option selected) txempty intr write acknowledge reg. with txempty bit set read txempty & tx intr acknowledge txintr re-enable txena return to isr issue "release" command restore packet number txempty = 0 & txint = 0 (waiting for completion) txempty = x & txint = 1 (transmission failed) txempty = 1 & txint = 0 (everything went through successfully) read pkt. # register & save write address pointer register read status word from ram update statistics update variables downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 97 revision 1.92 (06-27-11) datasheet memory partitioning unlike other controllers, the lan91c111 does not r equire a fixed memory partitioning between transmit and receive resources. the mmu allocates and de-allocates memory upon different events. an additional mechanism allows the cpu to prevent the receive process from starving the transmit memory allocation. memory is always requested by the side that needs to write into it, that is: the cpu for transmit or the mac for receive. the cpu can control the number of bytes it requests for transmit but it cannot determine the number of bytes the receive process is going to demand. furthermore, the receive figure 10.5 drive send and allocate routines allocate issue "allocate memory" command to mmu read interrupt status register enqueue packet set "ready for packet" flag return copy remaining tx data packet into ram return buffers to upper layer w rite allocated packet into packet # register write address pointer register copy part of tx data packet into ra m write source address into proper location store data buffer pointer clear "ready for packet" flag enable allocation interrupt allocation passed? ye s n o driver send choose bank select register 2 call allocate exit driver send read allocation result register downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 98 smsc lan91c111 rev c datasheet process requests will be dependent on network traffic, in particular on the arrival of broadcast and multicast packets that might not be for the node, and that ar e not subject to upper layer software flow control. interrupt generation the interrupt strategy for the transmit and receive pr ocesses is such that it does not represent the bottleneck in the transmit and receive queue managem ent between the software driver and the controller. for that purpose there is no register reading necessary before the next element in the queue (namely transmit or receive packet) can be h andled by the controller. the transmit and receive results are placed in memory. the receive interrupt will be generated when the re ceive queue (fifo of packets) is not empty and receive interrupts are enabled. this allows the interrupt service routine to process many receive packets without exiting, or one at a time if the isr just returns after processing and removing one. there are two types of transmit interrupt strategies: 1. one interrupt per packet. 2. one interrupt per sequence of packets. the strategy is determi ned by how the transmit in terrupt bits and the auto release bit are used. tx int bit - set whenever the tx completion fifo is not empty. tx empty int bit - set whenever the tx fifo is empty. auto release - when set, successf ul transmit packets are not wri tten into comple tion fifo, and their memory is released automatically. 1. one interrupt per packet: enable tx int, set auto release=0. the software driver can find the completion result in memory and process the interrupt one packet at a time. depending on the completion code the driver will take different acti ons. note that the transmit process is working in parallel and other transmissions might be taking place. the lan91c111 is virtually queuing the packet numbers and their status words. in this case, the transmit interrupt service routin e can find the next packet number to be serviced by reading the tx fifo packet number at the fifo po rts register. this eliminates the need for the driver to keep a list of packet numbers being transmitted. the numbers are queued by the lan91c111 and provided back to the cpu as their transmission completes. 2. one interrupt per sequence of packets: enable tx empty int and tx int, set auto release=1. tx empty int is generated only after transmitting the last packet in the fifo. tx int will be set on a fatal transmit error allo wing the cpu to know that the transmit process has stopped and therefore the fifo will not be emptied. this mode has the advantage of a smaller cpu over head, and faster memory de-allocation. note that when auto release=1 the cpu is not provided with the packet numbers that completed successfully. note: the pointer register is shared by any process accessing the lan91c111 memory. in order to allow processes to be interruptible, the interr upting process is responsible for reading the pointer value before modifying it, saving it, and re storing it before returning from the interrupt. typically there would be three processes using the pointer: 1. transmit loading (sometimes interrupt driven) 2. receive unloading (interrupt driven) 3. transmit status reading (interrupt driven). 1) and 3) also share the usage of the packet num ber register. therefore saving and restoring the pnr is also required from interrupt service routines. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 99 revision 1.92 (06-27-11) datasheet figure 10.6 interrupt generation for transmit, receive, mmu t x f i f o t x c o m p l e t i o n f i f o r x f i f o c s m a / c d l o g i c a l a d d r e s s p a c k e t # m m u p h y s i c a l a d d r e s s r a m cpu address csma address rx packet number rx fifo packet number packet number register pac k # o u t m.s. bit only 'empty' 'not empty' tx done packet number 'not empty' interrupt status register rcv int tx empty int tx int alloc int two options downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 100 smsc lan91c111 rev c datasheet chapter 11 board setup information the following parameters ar e obtained from the eeprom as board setu p information: ? ethernet individual address ? i/o base address ? mii interface all the above mentioned values ar e read from the eeprom upon har dware reset. except for the individual address, the va lue of the ios switches determines the offset within the eeprom for these parameters, in such a way that many identi cal boards can be plugged into the same system by just changing the ios jumpers. in order to support a software utility based inst allation, even if the eeprom was never programmed, the eeprom can be written using the lan91c111. one of the ios combinat ion is associated with a fixed default value for the key parameters (i/o base) that can a lways be used re gardless of the eeprom based value being programmed. this value will be used if all ios pins are left open or pulled high. the eeprom is arranged as a 64 x 16 array. the sp ecific target device is the 9346 10 24-bit serial eeprom. all eeprom accesses are done in words. all eeprom addresses in the spec are specified as word addresses. individual addr ess 20-22 hex if ios2-ios0 = 7, only the individual address is read from the eeprom. currently assigned values are assumed for the other registers. these val ues are default if the eeprom read operation follows hardware reset. the eeprom select bit is used to determine th e type of eeprom operation: a) normal or b) general purpose register. 1. normal eeprom operation - eeprom select bit = 0 on eeprom read operations (a fter reset or afte r setting reload hi gh) the configuration register and base register are updated with th e eeprom values at locations defined by the ios2-0 pins. the individual address registers are updated with the values stored in the individual address area of the eeprom. on eeprom write operations (after setting t he store bit) the values of the configuration register and base register are written in the eeprom locations defined by the ios2-ios0 pins. the three least significant bits of the co ntrol register (eeprom select, reload and store) are used to control the eeprom. their values are not st ored nor loaded from the eeprom. 2. general purpose register - eeprom select bit = 1 on eeprom read oper ations (after setting reload high) the eeprom word add ress defined by the pointer register 6 least significant bits is read into the general purpose register. on eeprom write operations (aft er setting the store bit) the value of the general purpose register is written at the eeprom word addr ess defined by the pointer register 6 least significant bits. register eeprom word address configuration register base register ios value * 4 (ios value * 4) + 1 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 101 revision 1.92 (06-27-11) datasheet reload and store are set by the user to initiate read and write operations respectively. polling the value until read low is used to determine comple tion. when an eeprom access is in progress the store and reload bits of ctr will readback as both bits high. no other bits of the lan91c111 can be read or written until the eeprom operation complete s and both bits are clear. this mechanism is also valid for reset initiated reloads. note: if no eeprom is connected to the lan91c111, for example for some embedded applications, the eneep pin should be grounded and no accesses to the eeprom will be attempted. configuration, base, and individual address assume their default values upon hardware reset and the cpu is responsible for programming them for their final value. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 102 smsc lan91c111 rev c datasheet figure 11.1 64 x 16 serial eeprom map configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. ia0-1 ia2-3 ia4-5 ios2-0 word address 000 0h 1h4h 5h 8h 9h ch dh 10h 11h 14h 15h 18h 19h 20h 21h 22h 001010 011 100 101 110 xxx 16 bits downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 103 revision 1.92 (06-27-11) datasheet chapter 12 application considerations the lan91c111 is envisioned to fit a few differ ent bus types. this section describes the basic guidelines, system level imp lications and sample conf igurations for the most relevant bus types. all applications are based on buffered arch itectures with a private sram bus. fast ethernet slave adapter slave non-intelligent board implementing 100 mbps and 10 mbps speeds. adapter requires: 1. lan91c111 chip 2. serial eeprom (93c46) 3. some bus specific glue logic target systems: 1. vl local bus 32 bit systems 2. high-end isa or non-burst eisa machines 3. eisa 32 bit slave vl local bus 32 bit systems on vl local bus and other 32 bit embedded syst ems the lan91c111 is accessed as a 32 bit peripheral in terms of the bus interface. all regi sters except the data register will be accessed using byte or word instructions . accesses to the data register could use byte, word, or dword instructions. table 12.1 vl local bus signal connections vl bus signal lan91c111 signal notes a2-a15 a2-a15 address bus used for i/o space and register decoding, latched by nads rising edge, and transparent on nads low time. m/nio aen qualifies valid i/o decoding - enabled access when low. this signal is latched by nads rising edge and transparent on nads low time. w/nr w/nr direction of access. sampled by t he lan91c111 on first rising clock that has ncycle active. high on writes, low on reads. nrdyrtn nrdyrtn ready return. direct connection to vl bus. nlrdy nsrdy and some logic nsrdy has the appropriate functionality and timing to create the vl nlrdy except that nlrdy behaves like an open drain output most of the time. lclk lclk local bus clock. rising edges used for synchronous bus interface transactions. nreset reset connected via inve rter to the lan91c111. nbe0 nbe1 nbe2 nbe3 nbe0 nbe1 nbe2 nbe3 byte enables. latched transparently by nads rising edge. nads nads, ncycle address strobe is connected directly to the vl bus. ncycle is created typically by using nads delayed by one lclk. downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 104 smsc lan91c111 rev c datasheet irqn intr0 typically uses the interrupt lin es on the isa edge connector of vl bus d0-d31 d0-d31 32 bit data bus. the bus byte(s) used to access the device are a function of nbe0-nbe3: not used = tri-state on reads, ignored on writes. note that nbe2 and nbe3 override the value of a1, which is tied low in this application. nldev nldev nldev is a totem pole output. nldev is active on valid decodes of a15- a4 and aen=0. unused pins vcc nrd nwr gnd a1 nvlbus open ndatcs table 12.1 vl local bus signal connections (continued) vl bus signal lan91c111 signal notes nbe0 nbe1 nbe2 nbe3 0 0 0 0 double word access 0 0 1 1 low word access 1 1 0 0 high word access 0 1 1 1 byte 0 access 1 0 1 1 byte 1 access 1 1 0 1 byte 2 access 1 1 1 0 byte 3 access downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 105 revision 1.92 (06-27-11) datasheet high-end isa or non- burst eisa machines on isa machines, the lan91c111 is accessed as a 16 bit peripheral. the signal connections are listed in the following table: figure 12.1 lan91c111 on vl bus table 12.2 high-end isa or non-burst eisa machines signal connectors isa bus signal lan91c111 signal notes a1-a15 a1-a15 address bus used for i/o space and register decoding. aen aen qualifies valid i/o decoding - enabled access when low. niord nrd i/o read strobe - asynchronous read accesses. address is valid before leading edge. w/nr a2-a15 lclk aen reset intr0 d0-d31 nrdyrtn nbe0-nbe3 nads ncycle nsrdy nldev lan91c111 w/nr a2-a15 lclk m/nio nreset irqn d0-d31 nrdyrtn nbe0-nbe3 nads nlrdy nldev delay 1 lclk o.c. simulated o.c. vlbus downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 106 smsc lan91c111 rev c datasheet niowr nwr i/o write strobe - asynchronous write access. address is valid before leading edge. data is latched on trailing edge. iochrdy ardy this signal is negated on lead ing nrd, nwr if necessary. it is then asserted on clk rising edge after the access condition is satisfied. reset reset a0 nbe0 nsbhe nbe1 irqn intr0 d0-d15 d0-d15 16 bit data bus. the bus byte(s) used to access the device are a function of nbe0 and nbe1: not used = tri-state on reads, ignored on writes niocs16 nldev buffered nldev is a totem pole out put. must be buffered using an open collector driver. nldev is active on valid decodes of a15-a4 and aen=0. unused pins gnd nads vcc nbe2, nbe3, ncycle, w/nr, nrdyrtn, lclk no upper word access. table 12.2 high-end isa or non-burst eisa machines signal connectors (continued) isa bus signal lan91c111 signal notes nbe0 nbe1 d0-d7 d8-d15 0 0 lower upper 0 1 lower not used 1 0 not used upper downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 107 revision 1.92 (06-27-11) datasheet eisa 32 bit slave on eisa the lan91c111 is accessed as a 32 bit i/o slave, along with a slave dma type "c" data path option. as an i/o slave, the lan91c111 us es asynchronous accesses. in creating nrd and nwr inputs, the timing information is externally derived from ncmd edges. given that the access will be at least 1.5 to 2 clocks (more than 180ns at least) there is no need to negate exrdy, simplifying the eisa interface implementation. as a dma slave, th e lan91c111 accepts burst transfers and is able to sustain the peak rate of one doubleword every bclk. doubleword alignment is assumed for dma transfers. the lan91c111 will sample exrdy and postpone dma cycles if the memory cycle solicits wait states. figure 12.2 lan91c111 on isa bus table 12.3 eisa 32 bit sl ave signal connections eisa bus signal lan91c111 signal notes la2-la15 a2-a15 address bus used for i/o space and register decoding, latched by nads (nstart) trailing edge. m/nioaen aen qualifies valid i/o decoding - enabled access when low. these signals are externally ored. internally the aen pin is latched by nads rising edge and transparent while nads is low. a1-a15, aen reset nbe2, nbe3 d0-d15 intr0 nrd nwr nbe0 nbe1 nldev lan91c111 a1-a15, aen reset vcc d0-d15 irq niord niowr a0 nsbhe niocs16 o.c. isa bus downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 108 smsc lan91c111 rev c datasheet latched w-r combined with ncmd nrd i/o read strobe - asynchronous read accesses. address is valid before its leading edge. must not be active during dma bursts if dma is supported. latched w-r combined with ncmd nwr i/o write strobe - asynchronous write access. address is valid before leading edge . data latched on trailing edge. must not be active during dma bursts if dma is supported. nstart nads address strobe is connected to eisa nstart. resdrv reset nbe0 nbe1 nbe2 nbe3 nbe0 n be1 nbe2 nbe3 byte enables. latched on nads rising edge. irqn intr0 interrupts used as active high edge triggered d0-d31 d0-d31 32 bit data bus. the bus byte(s) used to access the device are a function of nbe0-nbe3: not used = tri-state on reads, ignored on writes. note that nbe2 and nbe3 override the value of a1, which is tied low in this application. other combinations of nbe are not supported by the lan91c111. software drivers are not anticipated to generate them. nex32 nnows (optional additional logic) nldev nldev is a totem pole output. nldev is active on valid decodes of lan91c111 pins a15-a4, and aen=0. nnows is similar to nldev except that it should go inactive on nstart rising. nnows can be used to request compressed cycles (1.5 bclk long, nrd/nwr will be 1/2 bclk wide). the following signals support slave dma type "c" burst cycles bclk lclk eisa bus clock. data tr ansfer clock for dma bursts. ndak ndatacs dma acknowle dge. active duri ng slave dma cycles. used by the lan91c111 as ndatacs direct access to data path. niorc w/nr indicates the direction and timing of the dma cycles. high during lan91c111 writes, low during lan91c111 reads. niowc ncycle indicates slave dma writes. nexrdy nrdyrtn eisa bus signal indicating whether a slave dma cycle will take place on the next bclk rising edge, or should be postponed. nrdyrtn is used as an input in the slave dma mode to bring in exrdy. unused pins table 12.3 eisa 32 bit slave signal connections (continued) eisa bus signal lan91c111 signal notes nbe0 nbe1 nbe2 nbe3 0 0 0 0 double word access 0 0 1 1 low word access 1 1 0 0 high word access 0 1 1 1 byte 0 access 1 0 1 1 byte 1 access 1 1 0 1 byte 2 access 1 1 1 0 byte 3 access downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 109 revision 1.92 (06-27-11) datasheet vcc nvlbus gnd a1 figure 12.3 lan91c111 on eisa bus table 12.3 eisa 32 bit slave signal connections (continued) eisa bus signal lan91c111 signal notes a2-a15 reset aen intr0 nrd nwr lclk nads nldev lan91c111 la2- la15 reset o.c. eisa bus aen m/nio d0-d31 irqn nbe[0:3] latch + gates ncmd nwr bclk nstart nex32 nbe[0:3] d0-d31 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 110 smsc lan91c111 rev c datasheet chapter 13 operational description 13.1 maximum guar anteed ratings* *stresses above those listed above could cause permanent damage to the device. this is a stress rating only and functional operation of the device at any other condition abov e those indicated in the operation sections of this specification is not implied. note: when powering this device from laboratory or syst em power supplies, it is important that the absolute maximum ratings not be exceeded or dev ice failure can result. some power supplies exhibit voltage spikes on their outputs when the ac power is switched on or off. in addition, voltage transients on the ac power line may appear on the dc output. if this possibility exists, it is suggested that a clamp circuit be used. 13.2 dc electrical characteristics (v cc = +3.3.0 v 10%) operating temperature range 0 c to +70 c for lan91c111 (-40 c to 85 c for lan91c111i) storage temperature range -55c to + 150 c lead temperature range (soldering, 10 seconds) +325 c positive voltage on any pin, with respect to ground v cc + 0.3v negative voltage on any pin, with respect to ground -0.3v maximum v cc +5v parameter symbol min typ max units comments i type input buffer low input level high input level v ili v ihi 2.0 0.8 v v ttl levels is type input buffer low input level high input level schmitt trigger hysteresis v ilis v ihis v hys 2.2 250 0.8 v v mv schmitt trigger schmitt trigger i clk input buffer low input level high input level v ilck v ihck 2.2 0.8 v v downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 111 revision 1.92 (06-27-11) datasheet input leakage (all i and is buffers except pins with pullups/pulldowns) low input leakage high input leakage i il i ih -10-10 +10+10 a a v in = 0 v in = v cc ip type buffers input current i il -110 -45 av in = 0 id type buffers input current i ih +45 +110 av in = v cc o4 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 6 ma i oh = -4 ma v in = 0 to v cc i/o4 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 6 ma i oh = -4 ma v in = 0 to v cc o12 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 20 ma i oh = -10 ma v in = 0 to v cc o16 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 35 ma i oh = -15 ma v in = 0 to v cc o24 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 35 ma i oh = -15 ma v in = 0 to v cc parameter symbol min typ max units comments downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 112 smsc lan91c111 rev c datasheet capacitance t a = 25 c; fc = 1mhz; v cc = 3.3v capacitive load on outputs i/o24 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 35 ma i oh = -15 ma v in = 0 to v cc i/od type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 vv a i ol = 4 ma na v in = 0 to v cc supply current active i cc 100 140 ma dynamic current (assuming internal phy is used) powerdown supply current i pdn 15 38 ma internal phy in powerdown mode 14 36 ma internal mac+phy in powerdown mode limits parameter symbol min typ max unit test condition clock input capacitance c in 20 pf all pins except pin under test tied to ac ground input capacitance c in 10 pf output capacitance c out 20 pf ardy, d0-d31 (non vlbus) 45 pf d0-d31 in vlbus 45 pf all other outputs 45 pf parameter symbol min typ max units comments downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 113 revision 1.92 (06-27-11) datasheet 13.3 twisted pair char acteristics, transmit v dd = 3.3v +/- 5% rbias = 11k +/- 1 %, no load sym parameter limit unit conditions min typ max t ov tp differential output voltage 0.950 1.000 1.050 vpk 100 mbps, utp mode, 100 ohm load 1.165 1.225 1.285 vpk 100 mbps, stp mode, 150 ohm load 2.2 2.5 2.8 vpk 10 mbps, utp mode, 100 ohm load 2.694 3.062 3.429 vpk 10 mbps, stp mode, 150 ohm load t ovs tp differential output voltage symmetry 98 102 % 100 mbps, ratio of positive and negative amplitude peaks on tpo t orf tp differential output rise and fall time 3.0 5.0 ns 100 mbps trfadj [1:0] = 10 t orfs tp differential output rise and fall time symmetry +/-0.5 ns 100 mbps, difference between rise and fall times on tpo t odc tp differential output duty cycle distortion +/- 0.25 ns 100 mbps, output data=0101... nrz pattern unscrambl ed, measure at 50% points t oj tp differential output jitter +/-1.4 ns 100 mbps, output data=scrambled /h/ t oo tp differential output overshoot 5.0 % 100 mbps t ovt tp differential output voltage template see figure 7.4 10 mbps t soi tp differential output soi voltage te m p l a t e see figure 7.6 10 mbps t lpt tp differential output link pulse voltage te m p l a t e see figure 7.7 10 mbps, nlp and flp t oiv tp differential output idle voltage +/-50 mv 10 mbps. t oia tp output current 38 40 42 ma pk 100 mbps, utp with tlvl[3:0]=1000 31.06 32.66 34.26 ma pk 100 mbps, stp with tlvl[3:0]=1000 88 100 112 ma pk 10 mbps, utp with tlvl[3:0]=1000 71.86 81.64 91.44 ma pk 10 mbps, stp with tlvl[3:0]=1000 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 114 smsc lan91c111 rev c datasheet 13.4 twisted pair char acteristics, receive unless otherwise noted, all test conditions are as follows: ? vcc = 3.3v +/-5% ? rbias = 11k +/- 1 %, no load ? 62.5/10 mhz square wave on tp inputs in 100/10 mbps t oir tp output current adjustment range 0.80 1.2 v dd = 3.3v, adjustable with rbias, relative to t oia with rbias=1 1 k 0.86 1.16 v dd = 3.3v, adjustable with lvl[3:0] relative to value at tlvl[3:0]=1000 t ora tp output current tlvl step accuracy +/-50 % relative to ideal values in table 3. table 3 values relative to output with tlvl[3:0]=1000. t or tp output resistance 10k ohm t oc tp output capacitance 15 pf sym parameter limit unit conditions min typ max rst tp input squelch threshold 166 500 mv pk 100 mbps, rlvl=0 310 540 mv pk 10 mbps, rlvl=0 60 200 mv pk 100 mbps, rlvl=1 186 324 mv pk 10 mbps, rlvl=1 rut tp input unsquelch threshold 100 300 mv pk 100 mbps, rlvl=0 186 324 mv pk 10 mbps, rlvl=0 20 90 mv pk 100 mbps, rlvl=1 112 194 mv pk 10 mbps, rlvl=1 tp input open circuit voltage vdd- 2.4 0.2 volt voltage on either tpi+ or tpi- with respect to gnd. r cmr tp input common mode voltage range rocv 0.25 volt voltage on tpi with respect to gnd. r dr tp input differential voltage range vdd volt r ir tp input resistance 5k ohm r ic tp input capacitance 10 pf sym parameter limit unit conditions min typ max downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 115 revision 1.92 (06-27-11) datasheet chapter 14 timing diagrams figure 14.1 asynchronous cycle - nads=0 parameter min typ max units t1 a1-a15, aen, nbe[3:0] valid to nrd, nwr active 2 ns t2 a1-a15, aen, nbe[3:0] hold afte r nrd, nwr inactive (assuming nads tied low) 5n s t3 nrd low to valid data 15 ns t4 nrd high to data invalid 2 15 ns t5 data setup to nwr inactive 10 ns t5a data hold after nwr inactive 5 ns t6 nrd strobe width 15 ns t5a t5 t1 t4 t3 t2 t6 t6 valid valid valid address, aen, nbe[3:0] nads read data nrd, nwr write data downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 116 smsc lan91c111 rev c datasheet figure 14.2 asynchronous cycle - using nads parameter min typ max units t1 a1-a15, aen, nbe[ 3:0] valid to nrd, nwr active 2 ns t3 nrd low to valid data 15 ns t4 nrd high to data invalid 2 15 ns t5 data setup to nwr inactive 10 ns t5a data hold after nwr inactive 5 ns t6 nrd strobe width 15 ns t8 a1-a15, aen, nbe[3:0] se tup to nads rising 8 ns t9 a1-a15, aen, nbe[3:0] hold after nads rising 5 ns t5a t6 t5 t1 t4 t3 t8 t9 valid valid valid 0ns 50ns 100ns 150ns 200ns 250 a ddr,aen,nbe[1:0] nads read data nrd,nwr write data asynchronous cycle -- using nads downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 117 revision 1.92 (06-27-11) datasheet figure 14.3 asynchronous cycle - nads=0 parameter min typ max units t1a ndatacs setup to nrd, nwr active 2 ns t2 ndatacs hold after nrd, nwr inactive (assuming nads tied low) 5n s t3a nrd low to valid data 30 ns t4 nrd high to data invalid 2 15 ns t5 data setup to nwr inactive 10 ns t5a data hold after nwr inactive 5 ns t6a nrd strobe width 30 ns figure 14.4 asynchronous ready t5a t5 t6a t1a t4 t3a t2 valid d0~d31 valid 0ns 50ns 100ns 150ns 200ns 250 n ndatacs read data nrd,nwr write data asynchronous cycle - nads=0 t26a t13 t26t26 valid data valid address valid address valid address, aen, nbe[3:0] nrd, nwr ardy data downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 118 smsc lan91c111 rev c datasheet parameter min typ max units t26 ardy low pulse width 100 150 ns t26a control active to ardy low 10 ns t13 valid data to ardy high 10 ns figure 14.5 burst write cycles - nvlbus=1 parameter min typ max units t12 ndatacs setup to lclk rising 20 ns t12a ndatacs hold after lclk rising 0 ns t14 nrdyrtn setup to lclk falling 10 ns t15 nrdyrtn hold after lclk falling 10 ns t17 w/nr setup to lclk falling 15 ns t17a w/nr hold after lclk falling 3 ns t18 data setup to lclk rising (write) 15 ns t20 data hold from lclk rising (write) 4 ns t15 t20 t20 t20 t22a t17a t12a t18 t14 t18 t12 t22 t17 ab c clock ndatacs w/nr ncycle write data nrdyrtn downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 119 revision 1.92 (06-27-11) datasheet t22 ncycle setup to lclk rising 5 ns t22a ncycle hold after lclk rising 10 ns figure 14.6 burst read cycles - nvlbus=1 parameter min typ max units t12 ndatacs setup to lclk rising 20 ns t12a ndatacs hold after lclk rising 0 ns t14 nrdyrtn setup to lclk falling 10 ns t15 nrdyrtn hold after lclk falling 10 ns t17 w/nr setup to lclk falling 15 ns t17a w/nr hold after lclk falling 3 ns t19 data delay from lclk rising (read) 5 15 ns parameter min typ max units t15 t19 t19 t17a t12a t14 t12 t17 abc clock ndatacs w/nr ncycle read data nrdyrtn downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 120 smsc lan91c111 rev c datasheet figure 14.7 address latching for all modes parameter min typ max units t8 a1-a15, aen, nbe[3:0] setup to nads rising 8 ns t9 a1-a15, aen, nbe[3:0] hold after nads rising 5 ns t25 a4-a15, aen to nldev delay 30 ns figure 14.8 synchronous write cycle - nvlbus=0 t25 t9 t8 valid nads address, aen, nbe[3:0] nldev t21 t21 t11 t17a t8 t9 t16 t20 t18 t10 valid valid clock address, aen, nbe[3:0] nads w/nr ncycle write data nsrdy downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 121 revision 1.92 (06-27-11) datasheet parameter min typ max units t8 a1-a15, aen, nbe[3:0] setup to nads rising 8 ns t9 a1-a15, aen, nbe[3:0] hold after nads rising 5 ns t10 ncycle setup to lclk rising 5 ns t11 ncycle hold after lclk rising (non-burst mode) 3 ns t16 w/nr setup to ncycle active 0 ns t17a w/nr hold after lclk rising with nsrdy active 3 ns t18 data setup to lclk rising (write) 15 ns t20 data hold from lclk rising (write) 4 ns t21 nsrdy delay from lclk rising 7 ns figure 14.9 synchronous read cycle - nvlbus=0 t21 t21 t11 t8 t9 t16 t23 t24 t20 t10 valid valid clock address, aen, nbe[3:0] nads w/nr ncycle read data nsrdy nrdyrtn downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 122 smsc lan91c111 rev c datasheet parameter min typ max units t8 a1-a15, aen, nbe[3:0] setup to nads rising 8 ns t9 a1-a15, aen, nbe[3:0] hold after nads rising 5 ns t10 ncycle setup to lclk rising 5 ns t11 ncycle hold after lclk rising (non-burst mode) 3 ns t16 w/nr setup to ncycle active 0 ns t20 data hold from lclk rising (read) 4 ns t21 nsrdy delay from lclk rising 7 ns t23 nrdyrtn setup to lclk rising 3 ns t24 nrdyrtn hold after lclk rising 3 ns figure 14.10 mii timing parameter min typ max units t27 txd0-txd3, txen100 delay from tx25 rising 0 15 ns t28 rxd0-rxd3, rx_dv, rx_er setup to rx25 rising 10 ns t29 rxd0-rxd3, rx_dv, rx_er hold after rx25 rising 10 ns t28 t28 t28 t27 t27 t29 t29 txd0-txd3 txen100 rxd0-rxd3 rx25 rx_dv rx_er downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 123 revision 1.92 (06-27-11) datasheet ac test timing conditions unless otherwise noted, all test conditions are as follows: 1. v dd = 3.3v +/-5% 2. rbias = 11k +/- 1%, no load 3. measurement points: 4. tpo, tpi: 0.0 v during data , 0.3v at start/end of packet 5. all other inputs and outputs: 1.4 volts table 14.1 transmit timing characteristics sym parameter limit unit conditions min typ max t30 transmit propagation delay 60 140 ns 100mbps 600 ns 10mbps t31 transmit output jitter 0.7 ns pk-pk 100mbps 5.5 ns pk-pk 10mbps t32 transmit soi pulse width to 0.3v 250 ns 10mbps t33 transmit soi pulse width to 40mv 4500 ns 10mbps t34 ledn delay time 25 ms t35 ledn pulse width 80 105 ms figure 14.11 transmit timing ledn tpo t 34 t 30 t 35 soi t 31 txen bit is set t 33 t 32 preamble preamble data data tpo t 30 /j/k/ idle /t/r/ t 31 data idle idle fxo 100mbps 10mbps downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 124 smsc lan91c111 rev c datasheet table 14.2 receive timing characteristics sym parameter limit unit conditions min typ max t36 receive input jitter 3.0 ns pk-pk 100mbps 13.5 ns pk-pk 10mbps t37 soi pulse minimum width required for idle detection 125 200 ns 10mbps measure tpi from last zero cross to 0.3v point figure 14.12 receive timing, end of packet - 10 mbps table 14.3 collision and jam timing characteristics sym parameter limit unit conditions min typ max t38 rcv packet start to col assert time 200 ns 100mbps 700 ns 10mbps 300 ns 10mbps t39 xmt packet start to col assert time 200 ns 100mbps 700 ns 10mbps t40 start of packet to transmit jam packet start during jam 500 ns 100mbps 1500 ns 10mbps t41 xmt packet start to col assert time 200 ns 100mbps 700 ns 10mbps tpi data data data data data t 37 soi t 36 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 125 revision 1.92 (06-27-11) datasheet figure 14.13 collision timing, receive t 34 ledn t 35 t 34 t 35 ledn tpi i tpo i data data data data data data data data data data data i k j i i data i i r t data data data data data t 38 mii 100 mbps mii 10 mbps tpi tpo t 38 collision observed by physical layer collision observed by physical layer downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 126 smsc lan91c111 rev c datasheet figure 14.14 collision timing, transmit t 34 t 35 t 34 t 35 ledn ledn tpo i tpi i data data data data data data data data data data data i k j i i data i i r t data data data data data t 39 mii 100 mbps mii 10 mbps tpo tpi t 39 collision observed by physical layer collision observed by physical layer downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 127 revision 1.92 (06-27-11) datasheet figure 14.15 jam timing t 41 t 40 mii 100 mbps mii 10 mbps tpi tpo ii data data data data k j data data tpo ii jam i i r jam jam k jam i iij t i data data data data data data jam jam jam jam t 40 tpo collision observed by physical layer downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 128 smsc lan91c111 rev c datasheet table 14.4 link pulse ti ming characteristics sym parameter limit unit conditions min typ max t42 nlp transmit link pulse width see figure 7.8 ns t43 nlp transmit link pulse period 8 24 ms t44 nlp receive link pulse width required for detection 50 ns t45 nlp receive link pulse minimum period required for detection 6 7 ms link_test_min t46 nlp receive link pulse maximum period required for detection 50 150 ms link_test_max t47 nlp receive link pulse required to exit link fail state 333l i n k pulses lc_max t48 flp transmit link pulse width 100 150 ns t49 flp transmit clock pulse to data pulse period 55.5 62.5 69.5 s interval_timer t50 flp transmit clock pulse to clock pulse period 111 125 139 s t51 flp transmit link pulse burst period 8 22 ms transmit_link_burst_time r t52 flp receive link pulse width required for detection 50 ns t53 flp receive link pulse minimum period required for clock pulse detection 52 5 s flp_test_min_timer t54 flp receive link pulse maximum period required for clock pulse detection 165 185 s flp_test_max_timer t55 flp receive link pulse minimum period required for data pulse detection 15 47 s data_detect_min_timer t56 flp receive link pulse maximum period required for data pulse detection 78 100 s data_detect_max_timer t57 flp receive link pulse burst minimum period required for detection 5 7 ms nlp_test_min_timer t58 flp receive link pulse burst maximum period required for detection 50 150 ms nlp_test_max_timer t59 flp receive link pulses bursts required to detect autonegotiation capability 333l i n k pulses downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 129 revision 1.92 (06-27-11) datasheet figure 14.16 link pulse timing tpo t 42 a.) transmit nlp t 43 tpi t 44 b.) receive nlp t 45 t 47 t 46 ledn downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 130 smsc lan91c111 rev c datasheet figure 14.17 flp link pulse timing tpo t 48 a.) transmit flp and transmit flp burst t 49 tpi t 52 b.) receive flp t 54 tpi clk data clk data data clk clk t 51 clk data data clk t 53 31.25 62.5 93.75 125 156.25 t 55 t 56 c.) receive flp burst ledn t 57 t 58 t 59 t 50 downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 131 revision 1.92 (06-27-11) datasheet chapter 15 package outlines notes: 1. controlling unit: millimeter 2. tolerance on the position of the leads is 0.035 mm maximum 3. package body dimensions d1 and e1 do not include the mold protrusion. maximum mold protrusion is 0.25 mm 4. dimension for foot length l measured at the gaug e plane 0.25 mm above the seating plane is 0.78-1.08 mm. 5. details of pin 1 identifier are optional but must be located within the zone indicated. 6. shoulder widths must conform to jedec ms-026 dimension 's' of a minimum of 0.20mm. figure 15.1 128 pin tqfp package outline, 14x14x1.0 body table 15.1 128 pin tqfp package parameters min nominal max remark a ~ ~ 1.20 overall package height a1 0.05 ~ 0.15 standoff a2 0.95 1.00 1.05 body thickness d 15.80 16.00 16.20 x span d/2 7.90 8.00 8.10 1 / 2 x span measure from centerline d1 13.80 14.00 14.20 x body size e 15.80 16.00 16.20 y span e/2 7.90 8.00 8.10 1 / 2 y span measure from centerline e1 13.80 14.00 14.20 y body size h 0.09 ~ 0.20 lead frame thickness l 0.45 0.60 0.75 lead foot length from centerline l1 ~ 1.00 ~ lead length e 0.40 basic lead pitch q0 o ~7 o lead foot angle w 0.13 0.18 0.23 lead width r1 0.08 ~ ~ lead shoulder radius r2 0.08 ~ 0.20 lead foot radius ccc ~ ~ 0.0762 coplanarity (assemblers) ccc ~ ~ 0.08 coplanarity (test house) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet revision 1.92 (06-27-11) 132 smsc lan91c111 rev c datasheet notes: 1. controlling unit: millimeter 2. tolerance on the position of the leads is + 0.04 mm maximum. 3. package body dimensions d1 and e1 do not include the mold protrusion. maximum mold protrusion is 0.25 mm. 4. dimension for foot length l measured at the gauge plane 0.25 mm above the seating plane. 5. details of pin 1 identifier are optional but must be located within the zone indicated. figure 15.2 128 pin qfp package outline, 3.9 mm footprint table 15.2 128 pin qfp package parameters min nominal max remarks a ~ ~ 3.4 overall package height a1 0.05 ~ 0.5 standoff a2 2.55 ~ 3.05 body thickness d 23.70 23.90 24.10 x span d/2 11.85 11.95 12.05 1 / 2 x span measured from centerline d1 19.90 20.0 20.10 x body size e 17.70 17.90 18.10 y span e/2 8.85 8.95 9.05 1 / 2 y span measured from centerline e1 13.90 14.00 14.10 y body size h ~ ~ ~ lead frame thickness l 0.73 0.88 1.03 lead foot length l1 ~ 1.95 ~ lead length e 0.5 basic lead pitch q0 o ~7 o lead foot angle w 0.10 ~ 0.30 lead width r1 0.13 ~ ~ lead shoulder radius r2 0.13 ~ 0.30 lead foot radius ccc ~ ~ 0.0762 coplanarity (assemblers) ccc ~ ~ 0.08 coplanarity (test house) downloaded from: http:///
10/100 non-pci ethernet single chip mac + phy datasheet smsc lan91c111 rev c 133 revision 1.92 (06-27-11) datasheet chapter 16 datasheet revision history table 16.1 customer revision history revision level & date secti on/figure/entry correction rev. 1.92 (06-27-11) section 7.7.17, "phy powerdown," on page 41 added note stating that the pdn bit must not be set when the device is in external phy mode. rev. 1.92 (04-27-11) table 10.1, typical flow of events for placing device in low power mode, on page 88 added note to step 6 st ating that the bit (pdn) must not be set when the device is in external phy mode. rev. 1.92 (04-27-11) table 10.2, flow of events for restoring device in normal power mode, on page 89 added note to step 3 stat ing that the step is only performed when the device is in internal phy mode. rev. 1.92 (04-27-11) table 9.1, register 0. control register, on page 78 added note to pdn bit definit ion stating that the bit must not be set when the device is in external phy mode. rev. 1.91 (06-01-09) the following ordering information has been removed: lan91c111-nc, lan91c111i-nc (industrial temperature) for 128 pin qfp packages, lan91c111-ne, lan91c111i-ne (industrial temperature) for 128-pin tqfp packages as these has been discontinued. rev. 1.9 (07-17-08) all updated document references to rev. c. rev. 1.9 (07-17-08) section 13.1, "maximum guaranteed ratings*," on page 110 fixed commercial temp range to state 0 c to +70 c for lan91c111 rev. 1.9 (07-17-08) cover added bullet: commercial temperature range from 0 c to 70 c (lan91c111) rev. 1.9 (07-17-08) section 8.24, "bank 3 - revision register," on page 72 changed rev default from 0001 to 0010 rev. 1.9 (07-17-08) table 14.3, asynchronous cycle - nads=0, on page 117 changed t1a time in table under figure from 10ns min to 2ns min. rev. 1.9 (07-17-08) section 10.4, "typical flow of event for receive," on page 91 in step 4, changed last sentence from if crc is incorrect the packet memory is released and no interrupt will occur., to the rcv_bad bit of the bank 1 control register controls whether or not to generate interrupts when bad crc packets are received. rev. 1.9 (07-17-08) section 7.7.14, "receive polarity correction," on page 40 added note at end of 10 mbps subsection stating the first 3 received pa ckets must be discarded after the correction of a reverse polarity condition. downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of LAN91C111I-NS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X