Part Number Hot Search : 
MB3776 23100 4020B 5KE12A ZMM5230B H5PS1 C1215 MB509
Product Description
Full Text Search
 

To Download IP178C-DS-R09 Datasheet File

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


  Datasheet File OCR Text:
  ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 1/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 8 port 10/100 ethernet integrated switch features general description support 1k mac address 512k bits packet buffer memory support auto-polarity for 10 mbps support filter/ forward special da option support broadcast storm protection auto mdi-mdix option support port security option to lock the first mac address support one mii/rmii port, which works at 100 mbps full duplex for router application support port base vlan & tag vlan support cos support smart mac function support spanning tree protocol support max forwarding packet length 1552/ 1536 bytes option support 8-level bandwidth control support sca support two fiber ports with far end fault function for ip178ch only built in linear regulator control circuit support lead free package (please refer to the order information) note ? some features need cpu support, please refer to the detail description inside this data sheet ip178c/ip178ch integrates a 9-port switch controller, ssram, and 8 10/100 ethernet transceivers. each of the transceivers complies with the ieee802.3, ieee802.3u, and ieee802.3x specifications. the transceivers are designed in dsp approach in 0.18um technology; they have high noise immunity and robust performance. ip178c/ip178ch operates in store and forward mode. it supports flow control, auto mdi/mdi-x, cos, port base vlan, bandwidth control, diffserv, smart mac and led functions, etc. each port can be configured as auto-negotiation or forced 10 mbps/100 mbps, full/half duplex mode. using an eeprom or pull up/down resistors on specific pins can configure the desired options. besides an 8-port switch application, ip178c/ip178ch supports one mii/rmii ports for router application, which supports 7 lan ports and one wan port. the external mac can monitor or configure ip178c/ip178ch by accessing mii registers through smi. mii/rmii port also can be configured to be mac mode. it is used to interface an external phy to work as an 8+1 switch. ip178ch supports two fiber ports with far end fault function.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 table of contents features ...................................................................................................................................................1 general description ..................................................................................................................................1 table of contents .....................................................................................................................................2 revision history ........................................................................................................................................3 pin diagram (ip178c) .............................................................................................................................10 1 pin description ............................................................................................................................... ..15 pin description (continued) .....................................................................................................................16 pin description (continued) .....................................................................................................................18 pin description (continued) .....................................................................................................................19 pin description (continued) .....................................................................................................................20 pin description (continued) .....................................................................................................................21 pin description (continued) .....................................................................................................................22 pin description (continued) .....................................................................................................................24 pin description (continued) .....................................................................................................................25 pin description (continued) .....................................................................................................................26 pin description (continued) .....................................................................................................................27 pin description (continued) .....................................................................................................................28 2 functional description .....................................................................................................................29 2.1 flow control .........................................................................................................................32 2.2 broadcast storm protection .................................................................................................33 2.3 port locking .........................................................................................................................34 2.4 port base vlan ..................................................................................................................35 2.5 tag vlan/ tag and un-tag function ....................................................................................36 2.6 tag vlan ............................................................................................................................36 2.7 tag vlan in router application ...........................................................................................37 2.8 smart mac .........................................................................................................................38 2.9 cos ............................................................................................................................... ......42 2.9.1 port base priority ....................................................................................................42 2.9.2 frame base priority ................................................................................................42 2.10 spanning tree ......................................................................................................................44 2.11 static mac address table ....................................................................................................46 2.12 serial management interface ..............................................................................................47 2.13 sca ............................................................................................................................... ......48 2.14 bandwidth control ...............................................................................................................48 2.15 register descriptions ..........................................................................................................49 3 electrical characteristics .................................................................................................................86 3.1 absolute maximum rating ..................................................................................................86 3.2 dc characteristic ................................................................................................................86 3.3 ac timing ...........................................................................................................................87 3.3.1 phy mode mii timing ............................................................................................87 3.3.2 mac mode mii timing ...........................................................................................88 3.3.3 rmii timing ............................................................................................................89 3.3.4 smi timing .............................................................................................................90 3.3.5 eeprom timing ....................................................................................................91 3.4 thermal data ......................................................................................................................91 4 order information ............................................................................................................................92 5 package detail ............................................................................................................................... .93
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 revision history revision # change description ip178c-ds-r01 initial release. ip178c-ds-r02 1. modify pin diagram in page 9, pin_89 from hash_mode[1]/link_led7 to mlt3_det/link_led7,pin 84 from low_10m_dis to sca_dis, pin_36 from sca to nc, vctrl to reg_out 2. replace vctrl with reg_out 3. modify hash_mode [1] to mlt3_det in page 17, 54 & 55 4. modify pin 84 from low_10m_dis to sca_dis, pin_36 from sca to nc 5. change bf_stm_thr_sel [1:0] from 01: 128 frames to 126 frames in page 74 6. modify ext mii pin description in page 21, 22, 23 7. "100m" change to "100 mbps" and "10m" change to "10 mbps". 8. modify phy mode for only support one miiclk on page 25 9. add in thermal data on page 85 10. add in power consumption on page 80 11. p.54 phy30.1[12] default value=0, p.56 phy30.2[7] default value=0, p.56 phy30.2[0] force_mode -> bi_color 12. 1.8v change 1.95v ip178c-ds-r03 1. modify filter_da, 01- 80-c2-00-00-00 to 01-80-c2-00-00-02 on page 19 2. modify vlan_on function when pin 53extmii_en=1 on page 18 3. modify long packet enable function description on page 55 4. modify backpressure type selection on page 54 5. modify resetb ckt on page 14 6. modify hash_mode [0] to ldps_dis on page 17, 54 7. modify pin type description on page 13 8. modify pin 84 from sca_dis to low_10m_dis or sca_dis on page 14 9. modify pin 73 from link_q to sel_sca on page 18 10. modify pin diagram on page 9, pin_87 from hash_mode [0] to ldps_dis,pin 84 from sca_dis to low_10m_dis or sca_dis, pin_73 from link_q to sel_sca ip178c-ds-r04 1. modify broadcast stor m protection function on page 18, page 30, page 75 2. add bw control value setting on page 81 3. add bw control description on page 45 4. rearrange index 5. add special_add_forward description on page 81 6. add ?the function is valid only if pin 53 extmii_en is pulled low.? to pin 75, 76, 77, 78, 85, 86, 87 7. add note on page 1 for cpu support ip178c-ds-r05 1. add the order information for lead free package ip178c-ds-r06 1. add ip178c.rx_dv connec t to mac.rx_dv and mac.crs on page 27 ip178c-ds-r07 1. all ports unlink on page 84 for vcc 2. modify vcc min form 1.85v to 1.80v on page 84 3. modify regulator description on page 1 & 13 ip178c-ds-r08 1. revise the pin description. 2. modify pin diagram of pin 85, 86, 96 and 97. 3. modify application diagram on page 10. IP178C-DS-R09 1. add fxsd7 on page 26 fxsd6 on page 15 2. add fiber application for order information on page 90 3. add ip178ch pin diagram on page 10 ip178c-ds-r10 1. modify pin diagram of pin 85, 86, 96 and 97 (ip178ch)
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 4/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 revision history revision # change description 2. modify pin description on page 21 for (ip178ch) 3. modify initial setting on page 5 for (ip178ch) ip178cx-ds-r11 1. modify sca table on page 48 2. replace with new sca register table 3. replace ip178c with ip178c/ip178ch 4. modify the difference of the defin ition in pin 36 and 57 between ip178b and ip178c/ip178ch on page 5 and 6 5. modify application blocks on page 12, 13 and 14 6. add ? ip178ch support two fiber ? to feature list and general description on page 1 ip178cx-ds-r12 1. modify from ?regi ster 0? to ?register 5? on page 74 2. modify flow control description on page 32 3. modify ipl/iph description on page 15 4. add 2.5v vcc_o dc description on page 86 5. modify bi-color led definition on page 19 6. replace phy0 register 1.1 ip113a to ip178c/ip178ch & add ro/lh on page 51 7. modify op0 op1 to fx enable/half on page 60 8. add fxsdx dc on page 86 9. modify led flash behavior on page 31 10. add x1 vil & x1 vih on page 86 11. add 512k bits packet buffer memory on page 1
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 5/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 the difference in pin definition between ip178b and ip178c/ip178ch (mii port disabled: extmii_en=0) ip178b ip178c/ip178ch pin function configure type function configure type 36 nc i nc(ip178c) fxsd6(ip178ch) ipl 52 reg_out i reg_out o 53 oscgnd -- extmii_en=0 ipl 56 oscvcc -- rxclk iph 57 gnd gnd(ip178c) fxsd7(ip178ch) 72 speed_led1 direct_led ipl speed_led1 ipl 73 speed_led0 speed_led0 sel_sca ipl 75 fdx_led7 fdx_led7 x_en iph 76 fdx_led6 fdx_led6 aging iph 77 fdx_led5 fdx_led5 bcstf ipl 78 fdx_led4 fdx_led4 filter_da ipl 79 fdx_led3 vlan_on ipl fdx_led3 vlan_on ipl 80 led_sel [1] iph led_sel [1] iph 81 led_sel [0] iph led_sel [0] iph 84 aging iph low_10m_dis/ sca_dis iph 85 fdx_led2 op1 [1] ipl fdx_led2 fx7_en (for ip178ch only) ipl 86 fdx_led1 op1 [0] ipl fdx_led1 fx7_half (for ip178ch only) ipl 87 fdx_led0 hash_mode [0] ipl fdx_led0 ldps_dis ipl 90 mid_mdix_en ipl mid_mdix_en iph 95 force_mode ipl bi_color ipl 96 link_led3 op0 [0] ipl link_led3 fx6_en (for ip178ch only) ipl 97 link_led2 op0 [1] ipl link_led2 fx6_half (for ip178ch only) ipl 101 update_r4_en iph txclk long_pkt_dis iph 102 eedi ipl mdio iph 103 eedo ipl mdc ipl 104 eecs ipl scl ipl 105 eesk ipl sda iph
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 6/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 the difference in pin definition between ip178b and ip178c/ip178ch (mii port enabled: extmii_en=1) pin ip178b ip178c/ip178ch function configure type function configure type 36 nc i nc(ip178c) fxsd6(ip178ch) ipl 52 reg_out i reg_out o 53 oscgnd -- extmii_en=1 ipl 56 oscvcc -- rmii_clk_in iph 57 gnd gnd(ip178c) fxsd7(ip178ch) 72 speed_led1 direct_led ipl speed_led1 rmii_ mii ipl 73 speed_led0 speed_led0 sel_sca ipl 75 fdx_led7 rxdv x_en iph 76 fdx_led6 rmii_clk_out aging iph 77 fdx_led5 rxd2 bcstf ipl 78 fdx_led4 rxd1 filter_da ipl 79 fdx_led3 vlan_on ipl rxd0 vlan_on ipl 80 led_sel [1] iph txen led_sel [1] iph 81 led_sel [0] iph txd3 led_sel [0] iph 84 aging iph low_10m_dis/ sca_dis iph 85 fdx_led2 op1 [1] ipl txd2 (note1) (for ip178ch only) ipl 86 fdx_led1 op1 [0] ipl txd1 (note1) (for ip178ch only) ipl 87 fdx_led0 hash_mode [0] ipl txd0 ldps_dis ipl 90 mid_mdix_en ipl mid_mdix_en iph 95 force_mode ipl bi_color ipl 96 link_led3 op0 [0] ipl link_led3 fx6_en (for ip178ch only) ipl 97 link_led2 op0 [1] ipl link_led2 fx6_half (for ip178ch only) ipl 101 update_r4_en iph txclk long_pkt_dis iph 102 eedi ipl mdio iph 103 eedo ipl mdc ipl 104 eecs ipl scl mii_mac ipl 105 eesk ipl sda iph note1: fx7_en & fx7_halh only can be updated by eeporm or mdc/mdio when extmii_en = 1
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 7/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 features comparison between ip178b and ip178c/ip178ch function ip178b ip178c/ip178ch eeprom 93c46 24c01a sca (smart cable analysis) x o update_r4_en o x 8 tp + 1* mii (9 port switch) 8 tp 8 tp + 1* mii (9 port switch) disable mii port (pin 53 extmii_en=0) enable mii port (pin 53 extmii_en=1) led pins link, speed, duplex link, speed, duplex link, speed link quality led x pin 73 default on (note1) vlan_on pin 79 pin 79 default off (note1) filter reserved address option fix ed on pin 78 default off (note1) broadcast frame option x pin 77 default off (note1) aging option pin 84 pin 76 default on (note1) flow control option fixed on pin 75 default on (note1) max packet length option x pin 101 default off (note1) mii port speed/ duplex x x fixed 100 mbps full rmii/mii option x x pin 72 mii mac mode/ phy mode x x pin 104 mii register, mdc/mdio x x o built in regulator x 2.5v ? 1.95v 3.3v ? 1.95v note1: the default value can be updated by eeporm or mdc/mdio. note2: it is update_r4_en in ip178b.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet the differences in application circuit between ip178b and ip178c/ip178ch ip178b ip178c/ip178ch a. dumb switch a. dumb sw itch (extmii_en=0, bi_color=0) vcc_o regout avcc=dvcc led 178b 2.3v 34063 resetb r 2.3v 8/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.5v vcc_o regout pnp avcc=dvcc led 178c 34063 2.5v resetb 1.8v r note: r is a pull up resistor for configuration. it should be connected to vcc_o. b. dumb switch (extmii_en=0, bi_color=1) na 2.5v vcc_o regout pnp avcc=dvcc led 178c 34063 2.5 v r resetb 1.8v led note: r is a pull up resistor for configuration. it should be connected to vcc_o.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet the differences in application circuit be tween ip178b and ip178c/ip178ch (continued) ip178b ip178c/ip178ch c. router (extmii_en=1, bi_color=0) na 9/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 3.3v vcc_o regout pnp avcc=dvcc led 178c 3.3v resetb 1.8v r note: r is a pull up resistor for configuration. it should be connected to vcc_o. d. router (extmii_en=1, bi_color=1) na vcc_o regout pnp avcc=dvcc led 178c 3.3v r 3.3v 1.8v resetb led note: r is a pull up resistor for configuration. it should be connected to vcc_o.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet pin diagram (ip178c) ip178c 1 39 5 6 4 7 8 9 3 2 10 11 15 16 14 17 18 19 13 12 20 21 25 26 24 27 28 29 23 22 30 31 35 36 34 37 38 33 32 46 43 42 44 45 41 47 48 40 49 50 56 53 52 54 55 51 57 58 59 60 63 62 64 61 128 121 124 125 123 122 126 120 119 127 118 117 111 114 115 113 112 116 110 109 108 107 104 105 103 106 102 98 97 99 96 95 94 100 101 93 92 88 87 89 86 90 91 85 84 83 82 80 81 78 77 79 76 75 74 73 72 70 71 68 67 69 66 65 rxvcc1 txvcc01 txgnd1 rxgnd1 txop1 txom1 rxim1 txom0 txop0 rxip1 txgnd0 rxgnd0 gnd rxvcc0 rxip0 gnd gnd rxim0 gnd vcc vcc vcc scl / mii_mac sda mdc vcc rxvcc2 rxip2 rxim2 rxgnd2 txgnd2 txop2 txom2 txvcc23 txom3 txop3 txgnd3 rxgnd3 rxim3 rxip3 rxvcc3 bgvcc bgres bggnd pllgnd pllvcc rxvcc4 rxip4 rxim4 rxgnd4 txgnd4 txop4 txom4 txvcc45 txom5 txop5 txgnd5 rxgnd5 rxim5 rxip5 rxvcc5 nc rxvcc6 rxip6 rxim6 rxgnd6 txgnd6 txop6 txom6 txvcc67 txom7 txop7 txgnd7 rxgnd7 rxim7 rxip7 rxvcc7 osci extmii_en reg_out x2 rxclk / rmii_clk_in gnd gnd gnd gnd vcc vcc vcc resetb mdio txclk / long_pkt_dis p6_7_high / link_led0 cos_en / link_led1 vcc_sram link_led2 link_led3 bi_color gnd_sram modbck / link_led4 vcc_o low_10m_dis or sca_dis txd2 / fdx_led2 txd1 / fdx_led1 txd0 / ldps_dis / fdx_led0 gnd_o vcc_o bf_stm_en / link_led5 mdi_mdix_en / link_led6 mlt3_det / link_led7 gnd_o txd3 / led_sel[0] txen / led_sel[1] gnd_sram speed_led7 speed_led6 speed_led5 speed_led4 speed_led3 speed_led2 rmii_mii / speed_led1 sel_sca / speed_led0 vcc_sram rxdv / x_en / fdx_led7 rxd3/ rmii_clk_out / aging / fdx_led6 rxd2/ bcstf / fdx_led5 rxd1/ filter_da/ fdx_led4 rxd0 / vlan_on / fdx_led3 june 21, 2007 10/93 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet pin diagram (ip178ch) ip178ch 1 39 5 6 4 7 8 9 3 2 10 11 15 16 14 17 18 19 13 12 20 21 25 26 24 27 28 29 23 22 30 31 35 36 34 37 38 33 32 46 43 42 44 45 41 47 48 40 49 50 56 53 52 54 55 51 57 58 59 60 63 62 64 61 128 121 124 125 123 122 126 120 119 127 118 117 111 114 115 113 112 116 110 109 108 107 104 105 103 106 102 98 97 99 96 95 94 100 101 93 92 88 87 89 86 90 91 85 84 83 82 80 81 78 77 79 76 75 74 73 72 70 71 68 67 69 66 65 rxvcc1 txvcc01 txgnd1 rxgnd1 txop1 txom1 rxim1 txom0 txop0 rxip1 txgnd0 rxgnd0 gnd rxvcc0 rxip0 gnd gnd rxim0 gnd vcc vcc vcc scl / mii_mac sda mdc vcc rxvcc2 rxip2 rxim2 rxgnd2 txgnd2 txop2 txom2 txvcc23 txom3 txop3 txgnd3 rxgnd3 rxim3 rxip3 rxvcc3 bgvcc bgres bggnd pllgnd pllvcc rxvcc4 rxip4 rxim4 rxgnd4 txgnd4 txop4 txom4 txvcc45 txom5 txop5 txgnd5 rxgnd5 rxim5 rxip5 rxvcc5 fxsd6 rxvcc6 rxip6 rxim6 rxgnd6 txgnd6 txop6 txom6 txvcc67 txom7 txop7 txgnd7 rxgnd7 rxim7 rxip7 rxvcc7 osci extmii_en reg_out x2 rxclk / rmii_clk_in fxsd7 gnd gnd gnd vcc vcc vcc resetb mdio txclk / long_pkt_dis p6_7_high / link_led0 cos_en / link_led1 vcc_sram fx6_en / link_led2 fx6_half / link_led3 bi_color gnd_sram modbck / link_led4 vcc_o low_10m_dis or sca_dis txd2 / fx7_en / fdx_led2 txd1 / fx7_halh / fdx_led1 txd0 / ldps_dis / fdx_led0 gnd_o vcc_o bf_stm_en / link_led5 mdi_mdix_en / link_led6 mlt3_det / link_led7 gnd_o txd3 / led_sel[0] txen / led_sel[1] gnd_sram speed_led7 speed_led6 speed_led5 speed_led4 speed_led3 speed_led2 rmii_mii / speed_led1 sel_sca / speed_led0 vcc_sram rxdv / x_en / fdx_led7 rxd3/ rmii_clk_out / aging / fdx_led6 rxd2/ bcstf / fdx_led5 rxd1/ filter_da/ fdx_led4 rxd0 / vlan_on / fdx_led3 june 21, 2007 11/93 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet an 8-port switch osc ip178c /ip178ch 4 4 xfm xfm osc ip178c /ip178ch 4 4 xfm xfm 24c01 osc ip178ch 24 xfm xfm fiber mau 2 a 9-port switch osc ip178c 4 4 xfm xfm phy mii/ rmii osc ip178ch 24 xfm xfm fiber mau 2 phy mii/ rmii an 8-port router osc ip178c /ip178ch 4 4 xfm xfm u p osc ip178ch 24 xfm xfm fiber mau 2 u p mii/ rmii mii/ rmii june 21, 2007 12/93 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet ip178c/ip178ch applications: (continued) an 8-port switch application if pin 53 extmii_en is pulled low, then mii/ rmii interface is disabled. ip178c/ip178ch is not connected to a cpu and works as an 8-port switch . the ninth switch port mac8 is unused in this application. phy 0 phy 1 phy 2 phy 3 phy 7 ip178c/ 178ch mac0 mac8 mac7 switch engine ..... (mac8 is unused) tp a 9-port switch application if pin 53 extmii_en is pulled high, then mii/ rmii inte rface is enabled. the ninth switch port mac8 is connected to a phy through the mii/rmii interface. ip178c/ip178ch works as a 9-port switch. because ip178c/ip178ch doesn?t access the mii register of the ex ternal phy through smi, mii/rmii interface should be mac mode and full duplex in this application. mii/rmii phy 0 phy 1 phy 6 phy 7 ip178c /178ch external phy (mac mode) mac0 mac7 mac8 switch engine ..... ..... june 21, 2007 13/93 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet ip178c/ip178ch applications: (continued) an 8-port router application if pin 53 extmii_en is pulled high, then mii/rmii interface is enabled. ip178c/ip178ch is connected to a cpu through mii/ rmii interface. ip178c/ip178ch works as an 8-port router. mii/rmii interface is set to be phy mode and 100 mbps full duplex in this application. mii/rmii phy 0 phy 1 phy 6 phy 7 ip178c /178ch mac cpu (phy mode) adsl or cable modem wan to isp pc ethernet ethernet router wan port lan port mac0 mac7 mac8 switch engine ..... ..... 14/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 15/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 1 pin description type description i input pin o output pin ipl input pin with internal pull low 50m ohm iph input pin with internal pull high 50m oh m type description ipl1 input pin with internal pull low 22.8k ohm iph1 input pin with internal pull high 22.8k ohm ipl2 input pin with internal pull low 92.6k ohm iph2 input pin with internal pull high 113.8k ohm pin no. label type description analog 52 reg_out o regulator output voltage the internal regulator uses pin83/pin92 vcc_o as reference voltage to control external transistor to generate a voltage source between 1.80v ~ 2.05v.. if pin 53 extmii_en is pulled high, then pin83/pin92 vcc_o should be connected to 3.3v to generate 1.80v ~ 2.05v voltage source. if pin 53 extmii_en is pulled low, then pin83/pin92 vcc_o should be connected to 2.5v to generate 1.80v ~ 2.05v voltage source. 17 bgres i band gap resister it is connected to gnd through a 6.19k (1%) resistor in application circuit. 115, 116, 127, 126, 2, 3, 14, 13, 22, 23, 34, 33, 38, 39, 50, 49 rxip0~7 rxim0~7 i tp receive 119, 120, 123, 122, 6, 7, 10, 9, 26, 27, 30, 29, 42, 43, 46, 45 txop0~7 txom0~7 o tp transmit
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet pin description (continued) pin no. label type description misc. 36 nc (fxsd6) (for ip178ch only) 54 osci i 25mhz system clock it is recommended to connect osci and x2 to a 25m crystal. if the clock source is from another chip or oscillator, the clock should be active at least for 1ms before pin 64 resetb de-asserted. pin 55 x2 should be left open in this application. 55 x2 o crystal pin a 25mhz crystal can be connected to osci and x2. 64 resetb i reset it is low active. it must be hold for more than 1ms. it is schmitt trigger input. if a r/c reset circuit is used, the capacitor should be connected to vcc_o as shown in the figure. vcc_o gnd r resetb c 84 low_10m_dis or sca_dis iph2 low_10m_dis or sca_dis if pin 73 sel_sca is pull low, then pin 84 is low_10m_dis. if pin 73 sel_sca is pull high, then pin 84 is sca_dis. for low_10m_dis 1: disable power saving mode, the 10m transmit amplitude is depressed in this mode. (default) 0: enable power saving mode for sca_dis 1: disable smart cable anal ysis function (default). 0: enable smart cable analysis function. eeprom 104 scl ipl2 /o clock of eeprom after reset, it is used as clock pin scl of eeprom. after reading eeprom, this pin becomes an input pin. its period is longer than 10us. ip178c/ip178ch stops reading the rest data in eeprom if the first two bytes in eeprom aren?t 55aa. 16/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 17/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 105 sda iph2 /o data of eeprom after reset, it is used as data pin sda of eeprom. after reading eeprom, this pin becomes an input pin.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet pin description (continued) pin no. label type description led. 89, 90, 91, 93, 96, 97, 99, 100 link_led [7:0] o link led the detail functions are illustrated in the following table. it should be connected to vcc_o through a led and a resistor. application circuit vcc_o link_led r 66, 67, 68, 69, 70, 71, 72, 73 speed_led [7:0] o speed led the detail functions are illustrated in the following table. it should be connected to vcc_o through a led and a resistor. 75, 76, 77, 78, 79, 85, 86, 87 fdx_led [7:0] o fdx led the detail functions are illustrated in the following table. it should be connected to vcc_o through a led and a resistor. the function is valid only if pin 53 extmii_en is pulled low. 80, 81 led_sel [1:0] iph2 led function selection the data on these pins are latched at the end of reset to select led modes. the default value is mode 3. the detail functions are illustrated in the following table. after reset, these two pins becomes mii interface txen and txd3 if pin 53 extmii_en is pulled high. led_sel [1:0] led mode link_led [7:0] speed_led [7:0] fdx_led [7:0] 00 mode 0 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex 01 mode 1 off: link fail on: link ok flash: rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision 10 mode 2 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex flash: collision 11 (default) mode 3 off: link fail on: link ok flash: tx/rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision 18/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet pin description (continued) pin no. label type description led. 95 bi_color ipl2 bi-color led mode enable 1: bi-color mode led enabled. led_link [7:0] and led_speed [7:0] are used to drive dual color led. the functions are defined in the following table. the behavior of fdx_led [7:0] is the same as that in mode3 on the previous page. 0: bi-color mode led disabled. pl ease refer to pin description of led_sel [1:0] for led functions. this pin takes precedence of led_sel [1:0]. application circuit link_led speed_led 100m link/act 10m link/act led 1 led 2 bi-color led definition status link_led [7:0] speed_led [7:0] led 1 led 2 link off 1 1 off off 100 mbps link ok 1 0 on off 100 mbps link ok/ activity 1 clock flash off 10 mbps link ok 0 1 off on 10 mbps link ok/ activity clock 1 off flash 19/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 20/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description basic operation parameter setting of switch 87 ldps_dis ipl1 disable link down power saving mode 0: enable link down power saving mode (default) 1: disable link down power saving mode ldps_dis is full duplex led of port 0 after reset. the function is valid only if pin 53 extmii_en is pulled low. 89 mlt3_det ipl1 ability for detecting mlt3 (for 10 mbps switch to 100 mbps) 0: disable mlt3 detection ability (default) 1: enable mlt3 detection ability mlt3_det is link led of port 7 after reset. 91 bf_stm_en ipl1 broadcast storm enable 1: enable, 0: disable (default) a port begins to drop packets if it receives broadcast packets more than the threshold defined in mii register 31.9[15:14] bq_stm_thr_sel [1:0] or eeprom register 83[7:6]. 93 modbck iph1 / o aggressive back off enable ip178c/ip178ch adopts modified (aggressive) back off algorithm if this function is enabled. the maximum back off period is limited to 8-slot time. it makes ip178c/ip178ch have higher transmission priority in a collision event. 1: aggressive mode enable (default), 0: standard back off it is link led of port 4 after reset. 76 aging iph1 aging enable 1: enable 300s aging timer (default) 0: disable aging function the function is valid only if pin 53 extmii_en is pulled low. 73 sel_sca ipl1 select sca function function selection for pin_84 0: pin_84 is low_10m_dis (default) 1: pin_84 is sca_dis 75 x_en iph1 /o flow control enable 1: enable ieee802.3x & back pressure (default), 0: disable ieee802.3x & back pressure the function is valid only if pin 53 extmii_en is pulled low.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 21/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description advance operation parameter setting of switch engine 100 p6_7_high ipl1 /o port6 port7 are set to be high priority port packets received from port6 or port7 are handled as high priority packets if the function is enabled. 1: enable, 0: disabled (default) it is an input signal during reset and its value is latched at the end of reset. it acts as a link led of port 0 after reset. 99 cos_en ipl1 /o class of service enable packets with high priority tag are handled as high priority packets if the function is enabled. 1: enable, 0: disabled (default) it is an input signal during reset and its value is latched at the end of reset. it acts as a link led of port 1 after reset. turn on vlan enable a specific configur ation of port base vlan. 0: disabled (default), 1: enable ip178c/ip178ch are separated into 7 vlans if this function is enabled and mii port is disabled. the vlan group is as follows. pin 53 extmii_en=0 pin 53extmii_en=1 vlan 1 port 0, port 7 port 0~7 & mii port vlan 2 port 1, port 7 port 0~7 & mii port vlan 3 port 2, port 7 port 0~7 & mii port vlan 4 port 3, port 7 port 0~7 & mii port vlan 5 port 4, port 7 port 0~7 & mii port vlan 6 port 5, port 7 port 0~7 & mii port vlan 7 port 6, port 7 port 0~7 & mii port vlan 8 na port 0~7 & mii port 79 vlan_on ipl1 /o it is an input signal during reset and its value is latched at the end of reset. it acts as a full duplex led of port 3 after reset. the configuration can be updated by programming eeprom register. please refer to eepr om register 66~78 for detail information.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 22/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description advance operation parameter setting of switch engine 77 bcstf ipl1 broadcast frame option 1: packets with da equal to ffffffff are handled as broadcast frame in broadcas t protection function, 0: packets with da equal to ffffffff or multi-cast frames are handled as broadcast frame in br oadcast protection function. the function is valid only if pin 53 extmii_en is pulled low. programming mii register 31.30.12 will overwrite the setting. 78 filter_da ipl1 reserved address forward option filter packets with specific da from 01-80-c2-00-00-02 to 01-80-c2-00-00-0f. packets with specific da equal to 01-80-c2-00-00-01 are always filtered regardless the setting of this pin. 1: filter, 0: forward (default) the function is valid only if pin 53 extmii_en is pulled low. 101 long_pkt_dis iph2 max packet size option 1: drop packets with length longer than 1536 bytes 0: drop packets with length longer than 1552 bytes tp/ fiber setting 90 mdi_mdix_en iph1 /o mdi/mdi-x enable mdi/mdi-x auto cross over 1: enable (default), 0:disable it is an input signal during reset and its value is latched at the end of reset to set auto mdi/mdix function. it is link led of port 6 after reset. 85 fx7_en ipl1 port 7 mode selection (for ip178ch only) 1: port7 is a fiber port, 0: port7 is a tp port the function is valid only if pin 53 extmii_en is pulled low. 86 fx7_half ipl1 port7 fiber port half duplex (for ip178ch only) 1: port7 is half duplex, 0: port7 is full duplex it is valid only if pin 85 fx7_en is pulled high. the function is valid only if pin 53 extmii_en is pulled low.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 23/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 97 fx6_en ipl1 port 6 mode se lection (for ip178ch only) 1: port6 is a fiber port, 0: port6 is a tp port 96 fx6_half ipl1 port6 fiber port half duplex (for ip178ch only) 1: port6 is half duplex, 0: port6 is full duplex it is valid only if pin 97 fx6_en is pulled high.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 24/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description mii configuration pins 53 extmii_en ipl2 mii port enable 1: enable mii port, 0: disable mii port this pin53 also determines the regulator output voltage. please see pin 52 reg_out for detail information. 104 mii_mac ipl2 /o mii mode selection it is latched as mii mac/ phy mode selection at the end of reset. it should be pull high if pin 72 rmii_mii is pulled high. 1: mac mode, 0: phy mode after reset, it is used as clock pin scl of eeprom 72 rmii_mii ipl1 /o mii rmii selection it is latched as rmii_mii selection at the end of reset. it is valid only if pin 53 extmii_en is pulled high. pin 104 mii_mac should be pull high rmii is enabled. 1: rmii, 0:mii after reset, it is used as spped_led1. smi 103, 102 mdc, mdio ipl2 , iph2 /o smi the external mac device uses the interface to access the registers of ip178c/ip178ch . ip178c/ip178ch doesn?t access the mii registers of external phy.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 25/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description mii interface/ phy mode (pin 53 extmii_en =1, pin104 mii_mac=0 and pin72 rmii_mii =0) 101 miiclk ipl2/ o mii transmit & receive clock it is an output signal when mii works at phy mode. it should be connected to mii txclk & rxclk of an external mac device. 87,86,85 ,81 txd0~txd3 ipl1 ipl1 ipl1 iph2 mii transmit data they are input signals when mii works at phy mode. they are sampled at the rising edge of miiclk. they should be connected to mii txd of an external mac device. 80 txen iph2 mii transmit enable it is an input signal when mii works at phy mode. it is used to frame txd [3:0]. it is sampled at the rising edge of miiclk. it should be connected to mii txen of an external mac device. 75 rxdv iph1/ o mii receive data valid it is an output signal when mii works at phy mode. it is used to frame rxd [3:0]. it is sent out at the falling edge of miiclk. it should be connected to mii rxdv of an external mac device. 79, 78, 77, 76 rxd0~rxd4 ipl1/ o, ipl1/ o, ipl1/ o, iph1/ o mii receive data they are output signals when mii works at phy mode. they are sent out at the falling edge of miiclk. they should be connected to mii rxd of an external mac device. 56 nc iph2 this pin should be left open
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 26/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description mii interface/ mac mode (pin 53 extmii_en =1, pin104 mii_mac=1 and pin72 rmii_mii =0) 101 txclk ipl2 mii transmit clock it is an input signal when mii works at mac mode. it should be connected to mii rxclk of an external phy. 87,86,85 ,81 txd0~txd3 ipl1 ipl1 ipl1 iph2 mii transmit data they are input signals when mii works at mac mode. they are sampled at the rising edge of txclk. they should be connected to mii rxd of an external phy. 80 txen iph2 mii transmit enable it is an input signal when mii works at mac mode. it is used to frame txd [3:0]. it is sampled at the rising edge of txclk. it should be connected to mii rxdv of an external phy. 75 rxdv iph1/ o mii receive data valid it is an output signal when mii works at mac mode. it is used to frame rxd [3:0]. it is sent out at the falling edge of rxclk. it should be connected to mii txen of an external phy. 79, 78, 77, 76 rxd0~rxd4 ipl1/ o, ipl1/ o, ipl1/ o, iph1/ o mii receive data they are output signals when mii works at mac mode. they are sent out at the falling edge of rxclk. they should be connected to mii txd of an external phy. 56 rxclk iph2 mii receive clock it is an input signal when mii works at mac mode. it should be connected to mii txclk of an external phy. this pin should be left open when mii/rmii is disabled.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 27/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description rmii interface (pin 53 extmii_en =1, pin104 mii_mac=0 and pin72 rmii_mii =1) 76 rmii_clk_out o rmii reference clock source 56 rmii_clk_in iph2 rmii reference clock input 87,86 txd0, txd1 ipl1 rmii transmit data it is sampled at the rising edge of rmii_clk_in. 80 txen iph2 rmii transmit enable it is used to frame txd [1:0]. it is sampled at the rising edge of rmii_clk_in. 75 rxdv iph1/ o rmii receive data valid it is used to frame rxd [1:0]. it is sent out at the rising edge of rmii_clk_in. 79, 78 rxd0, rxd1 ipl1/ o rmii receive data it is sent out at the rising edge of rmii_clk_in.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 28/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pin description (continued) pin no. label type description power 16 bgvcc i power of band gap circuit 18 bggnd i power of band gap circuit 19 pllgnd i ground of pll circuit 20 pllvcc i power of pll circuit 59, 60, 110, 111, 112, 113, gnd i ground of internal logic 57 gnd (fxsd7) ( for ip178ch only ) 58 gnd 61, 62, 63, 106, 107, 108, 109, vcc i power of internal logic 65, 94, gnd_sram i ground of internal sram 74, 98, vcc_sram i power of internal sram 82, 88, gnd_o i ground for led, mii and eeprom 83, 92, vcc_o i power for led, mii and eeprom 114, 128, 1, 15, 21, 35, 37, 51 rxvcc0~7 i power of analog receive block 117, 125, 4, 12, 24, 32, 40, 48, rxgnd0~7 i ground of analog receive block 118, 124, 5, 11, 25, 31, 41, 47, txgnd0~7 i ground of analog transmit buffer 121, 8, 28, 44, txvcc01 txvcc23 txvcc45 txvcc67 i power of analog transmit buffer
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2 functional description 100 mbps full mii (rmii) port (pin extmii_en=1) rxdv rxd [3:0] txen txd [3:0] miiclk(txclk) rxdv rxd [3:0] rxclk txen txd [3:0] txclk ip178c mii phy mode (mii_mac=0) mac rxdv rxd [3:0] rxclk txen txd [3:0] txclk rxdv rxd [3:0] rxclk txen txd [3:0] txclk ip178c mii mac mode (mii_mac=1) phy mii_mac mii_mac 1k 1k extmii_en 1k extmii_en 1k crs 29/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet rxdv rxd [1:0] rmii_clk_in txen txd [1:0] rmii_clk_out rxdv rxd [1:0] ref_clk txen txd [1:0] ip178c rmii mode (extmii_en=1, rmii_mii=1, mii_mac=1) mii_mac should be pulled high in spite of ip178c connecting to a mac or a phy. mac rmii_mii 1k extmii_en 1k 1k mii_mac rxdv rxd [1:0] rmii_clk_in txen txd [1:0] rmii_clk_out txen txd [1:0] ref_clk rxdv rxd [1:0] ip178c phy rmii_mii 1k extmii_en 1k 1k mii_mac 30/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 31/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 led display (normal operation) normal operation led_o_sel link_led speed_led fdx_led 00 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex 01 off: link fail on: link ok flash: rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision 10 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex flash: collision 11 off: link fail on: link ok flash: tx/rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision flash behavior: on 44ms ? off 176ms ? on 44ms ? ? when link quality is poor led_o_sel link_led speed_led fdx_led don?t care flash flash behavior: off 2s ? on 2s ? off 2s ? ? sca see sca paragraph for detail information
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 32/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.1 flow control ip178c/ip178ch jams or pauses a port, which causes out put queue over the threshold. its link partner will defer transmission after detecting the jam or pause frame. a port of ip178c/ip178ch defers transmission when it receives a jam or a pause frame. ip178c/ip178ch issues pause control frame ( pause on, time slot count = 0xffff) to remote station when the output queue of the destination port is higher than hi gh water mark threshold. when the output queue of the destination port is lower than low water mark threshold, ip178c/ip178ch issues pause control frame ( pause off, time slot count = 0) to restart transmition. besides, ip178c/ip178ch provides an additional protect function, when it issues continuous 16 times of pause on frame (network abnormal), no more pause on frame will be send. when cos is enabled, ip178c/ip178ch may disable the flow control function for a short term to guarantee the bandwidth of high priority packets. a port disables its flow control function for 2 ~ 3 seconds when it receives a high priority packet. it doesn?t transmit pause frame or jam pattern during the period but it still responses to pause frame or jam pattern. the flow control function can be enabled by pulli ng up pin 75 x_en or by programming mii register 30.1.10.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 33/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.2 broadcast storm protection a port of ip178c/ip178ch begins to drops broadcast packets if the received broadcast packets are more than the threshold defined in mii register 31.9[15:14] or eeprom register 83[7:6] bq_stm_thr_sel [1:0] in 10ms (100mbps) or 100ms (10mbps) the function can be enabled by pulling high pin 91 bf _stm_en or programming mii register 30.1.[6]. ip178c/ip178ch handles multicast frame as a broadcast frame in broadcast storm protection function if pin 77 bcstf is pulled low.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 34/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.3 port locking ip178c/ip178ch supports port locking. each port can be c onfigured individually by programming mii register 30.31[8:0] or eeprom 63[ 0] and 62[7:0]. user has to reset ip178c/ip178ch by writing 16?h55aa to mii register 30.0 after enabling this function. ip178c/ip178ch locks first mac address if the function is enabled. any packet with mac address not equal to the locked one will be dropped. user has to turn off aging function when using the port locking function. aging function can be disabled by pulling low pin 76 aging or programming register 30.1[3:2].
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 35/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.4 port base vlan ip178c/ip178ch supports port base vlan functions. it separates ip178c/ip178ch into some groups (vlan). a port is limited to communicate with other ports within the same group when the function is enabled. frames will be limited in a vlan group and w ill not be forwarded out of this vlan group. a port can be assigned to one or more vlan groups. the members (ports) of a vlan group are assigned by programming eeprom register 64[7:0]~81[7:0 ], or mii register 31.0[8:0]~31.8[8:0]. the vlan function can be active even if there is no eeprom. ip178c/ip178ch supports an easy way to enable a sub set vlan function without programmi ng registers. a default conf iguration of vlan is adopted if pin 79 vlan_on is pulled high. the vlan duration is shown in the following table. the setting in register takes precedence of the setting on pins. vlan_on extmii_en configuration 0 x function disabled 1 0 vlan groups: (p0, p7), (p1, p7), (p2, p7), (p3, p7), (p4, p7), (p5, p7), (p6, p7) 1 1 vlan groups: (p0, mii), (p1, mii), (p2, mii), (p3, mii), (p4, mii), (p5, mii), (p6, mii), (p7, mii) note: p0 means port 0. p7 m eans port7. mii means mii port.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 36/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.5 tag vlan/ tag and un-tag function tag and un-tag function ip178c/ip178ch inserts or removes a tag of a frame if tagging/ un-tagging function is enabled. the operation is illustrated as follows. the tag information is defined in mii register 30.3~30.11 and eeprom register 6~22. the operation of a port which forwards the packet frame type of the received packet forward to a untagged filed forward to a tagged field untagged forward the packet without modification insert a tag using the default vlan tag value of the source port calculate new crc the default vlan tag value is defined in the mii register 30.3~30.11. priority-tagged (vlan id=0) strip tag calculate new crc keep priority field. replace the tag with the default vlan tag value of the source port calculate new crc the default vlan tag value is defined in the mii register 30.3~30.11. vlan-tagged strip tag calculate new crc forward the packet without modification 2.6 tag vlan if tag vlan function is enabled (mii register 30.13[3] tag_vlan_en is logic high), ip178c/ip178ch forwards a packet according to mac address t able and one of the sixteen vlan output port masks, defined in mii register 30.14~30.29. one of the sixt een vlan output mask is selected by vid index, which is four bits selected from vid field in a tag. vid index is defined in mii register 30.13[2:0] vid_sel. for example, vlan output port mask 1 is selected if vid index selected by vid_sel is equal to 1. ip178c/ip178ch handles an un-tagged packet using the defaul t vlan tag value of its source port. a packet with vid equal to 12?b0 will be handled as un-tag frame.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 37/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.7 tag vlan in router application in a router application, mii port is defined as a tagged port and the other ports are defined as un-tagged ports. ip178c/ip178ch inserts vlan tag into packets according to its source port when it forwards the packets to mii port. the pre-defined vlan tag value is defined in register 30.3~11 . cpu can identify the source port of a packet from mii by examining the vlan tag. cpu inserts vlan tag into packets when it sends packets to mii port. ip178c/ip178ch forwards a packet from mii to the appropriate port a ccording to the mac address and vlan tag. ip178c/ip178ch removes the vlan tag when it forwards the packet.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2.8 smart mac ip178c/ip178ch supports smart mac function to solve lock ed card?s id issue. the following system configuration and operation illustrate the behavior of ip178c/ip178ch smart mac function. the smart mac setting is defined in mii register 30[11:0]. system configuration mii phy0 cpu wan port 7 lan ports mac8 mac0 phy1 mac1 phy2 mac2 phy7 mac7 tag untag pvid -- v 1 tag untag pvid -- v 2 tag untag pvid v -- 1,2 38/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 39/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 a programming example of smart mac register content description tag/ un-tag function setup 30.13[12] 0 mii0 doesn?t strip the tag of an outgoing packet. 30.12[8] 1 mii0 adds a tag to an outgoing packet. 30.13[11:4] 111_1111 port0~7 strip the tag of an outgoing packet. 30.12[7:0] 000_0000 port0~7 doesn?t add a tag to an outgoing packet. pvid function setup 30.3~30.9 16?h0001 define pvid of port0~port6 30.10 16?h0002 define pvid of port7 30.11 16?h0002 define pvid of mii0 vlan mask function setup 30.14[8:0] 9?h1ff tag_vlan_mask_1 30.15[8:0] 9?h17f tag_vlan_mask_2 smart mac function setup 30.30[10:8] 001 define 1 lan group 30.30[11] 1 enable router function 30.13[2:0] 000 define vid index as 000 30.13[3] 1 enable tag vlan 30.30[7:0] 100_0000 define port 7 as a wan port
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet operation 1. packet from lan to wan 1.1. pc0 sends a packet to a lan port with sa equal to pc0 and pvid equal to 1. 1.2. ip178c/ip178ch forwards the packet to cpu with pvid equal to 1. 1.3. cpu replaces the sa with locked address pc3, replaces pvid with 2 and sends it to ip178c/ip178ch . 1.4. ip178c/ip178ch forwards the packet to port7 (wan port). phy0 cpu 7 lan ports (pvid=1) mac8 mac0 phy1 mac1 phy2 mac2 phy7 mac7 da sa cpu pc0 pvid 1 da sa cpu pc0 pvid 1 (1) (2) da sa wan pvid pc3 2 (3) (4) 40/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 da sa wan pvid pc3 -- 1 wan ports (pvid=2) locked sa=pc3
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2. packet from wan to lan 2.1. wan port receives a packet with locked address pc3. 2.2. ip178c/ip178ch adds a pvid equal to 2 and forwards the packet to cpu. 2.3. cpu updates the da, replaces pvid with 1 and sends it to ip178c/ip178ch . 2.4. ip178c/ip178ch learns the sa. 2.5. ip178c/ip178ch forwards the packet to port0 according to the da. phy0 cpu 7 lan ports (pvid=1) mac8 mac0 phy1 mac1 phy2 mac2 phy7 mac7 da sa 41/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 pc0 cpu pvid 1 da sa pc0 cpu pvid none (5) (3) da sa pc3 wan pvid 2 (2) (4) learning sa = cpu locked sa=pc3 (1) da sa pc3 pvid wan none 1 wan ports (pvid=2)
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2.9 cos ip178c/ip178ch supports two type of cos. one is port bas e priority function and the other is frame base priority function. ip178c/ip178ch supports two levels of priority queues. a high priority packet will be queued to the high priority queue to share more bandwid th. the ratio of bandwidth of high priority and low priority queue is defined in mii register 30.1[15] or eeprom 3[7]. 2.9.1 port base priority the packets received from high priority port will be handl ed as high priority frames if the port base priority is enabled. it is enabled by programming the corres ponding bit in mii regist er 31.0[9]~31.8[9] or eeprom register 65[1] ~81[1]. each port of ip178c/ip178ch can be configured as a high priority port individually. 2.9.2 frame base priority vlan tag and tcp/ip tos ip178c/ip178ch examines the specific bits of vlan tag and tcp/ip tos for priority frames if the frame base priority is enabled. the packets will be handled as high priority frames if the tag value meets the high priority requirement, that is, vlan tag bigger than 3 or tcp/ip tos field not equal to 3?b000. it is enabled by programming the co rresponding bit in mii register 31. 0[10]~31.8[10] or eeprom register 65[2]~81[2]. the frame base priority func tion of each port can be enabled individually. ip178c/ip178ch supports an easy way to enable a sub set of cos function without programming eeprom or mii registers. port 6 and port 7 can be se t as high priority ports if pin 100 p6_7_high is pulled high. frame base priority function of all ports is enabled if pin 99 cos_en is pulled high. the setting in register takes precedence of the setting on pins. byte type = 8100 vlan field tci (tag control information) 12~13 14~15 tci definition: bit[15:13]: user priority 7~0 bit 12: canonical format indicator (cfi) bit[11~0]: vlan id. ip178c uses bit[15:13] to define priority. byte type = 0800 tos field ip header 12~13 14~15 ip header definition: byte 14 bit[7:0]: ip protocol version number & header length. byte 15: service type bit[7~5]: ip priority (precedence ) from 7~0 bit[1:0]: reserved ip178c uses bit[4:2] to define priority. bit 4: no delay (d) bit 3: high throughput bit 2: high reliability (r) 42/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet ipv4/ipv6 diffserv ip178c/ip178ch checks the diffserv field of a ipv4 frame or traffic class field [7:2] (tc[7:2]) of a ipv6 frame and uses them to decide the frame?s priority if mii register 31.30.[13] diffserv_en is enabled. ip178c/ip178ch uses diffserv or tc [7:2] as index to sele ct one of 64 bits defined in the mii register 31.22~25 dscp[63:0]. if the bit is ?1?, the rece ived frame is handled as a high priority frame. 6 byte da ipv4 frame format type=0800 preamble sa sfd 802.1q tag (optional) data fcs 6 byte 4 byte 2 byte header size res ver=0100 4 bit 2 byte 4 bit 6 bit diffserv 2 bit 6 byte da ipv6 frame format type=86dd preamble sa sfd 802.1q tag (optional) data fcs 6 byte 4 byte 2 byte ---- res ver=0110 4 bit 2 byte 4 bit 6 bit traffic class[7:2] 2 bit 43/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 44/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.10 spanning tree ip178c/ip178ch supports spanning tree function with the following features: 1. detect bpdu frames by examini ng multicast address (01-80-c2-00-00-00). 2. forward bpdu packets to cpu through mii and add special tag for source port information. forward bpdu packets from cpu according to the special tag in a frame. please refer to section ?tag vlan / tag and un-tag function?. port states to support spanning tree protocol, each port of ip178c/ip178ch provides five port states shown in the following table. port 0~7 of ip178c/ip178ch can be configured in one of the five spanning tree states individually by programming mii register 31.13 to ena ble (disable) forwarding and learning function. port 8 (mii) is dedicated for cpu. state fwd bpdu packet to cpu fwd bpdu packet from cpu address learning fwd all packet normally (forward enable, learning enable) disable x (note 2) x (note 2) x x (0,0) blocking o x (note 3) x x (0,0) listening o o x x (0,0) learning o o o x (0,1) forwarding o o o o (1,1) note1: o: enabled, x: disabled note2: cpu should not send packets to ip178c/ip178ch and should discard packets from ip178c/ip178ch . note3: cpu should not send packets to ip178c/ip178ch .
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 45/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 special tag ip178c/ip178ch supports special tag function to exchange switching information with cpu without involving vlan tag information. the special tag func tion is enabled by programmi ng mii register 31.30[14] stag_en. from cpu to switch when special tag function is enabled, ip178c/ip178ch forwards packets from mii (cpu) by checking special tag added by cpu. the tag defini tion is shown in the following table. ip178c/ip178ch will remove the special tag 81xx and re-calculate crc when it forwards the packet to a un-tag field. ip178c/ip178ch will update the special tag to 81xx and re-calculate crc when it forwards the packet to a tag field. preamble sfd da sa 81xx(special tag) data crc special tag 81xx bit [15:12] bit[11:8] bit[7:0] 8 1 0000_0001: instruct 178c forwards the packet to port 0 0000_0010: instruct 178c forwards the packet to port 1 0000_0100: instruct 178c forwards the packet to port 2 0000_1000: instruct 178c forwards the packet to port 3 0001_0000: instruct 178c forwards the packet to port 4 0010_0000: instruct 178c forwards the packet to port 5 0100_0000: instruct 178c forwards the packet to port 6 1000_0000: instruct 178c forwards the packet to port 7 from switch to cpu when special tag function is enabled, ip178c/ip178ch sends packets to mii (cpu) with source port information by adding special tag to the frame. ip178c/ip178ch will add the special tag 81xx and re-calculate crc when it receives the packet from a un-tag field. ip178c/ip178ch will update the tag 8100 to 81xx and re-calculate crc when it receives the packet from a tag field. the tag definition is shown in the following table. bit[15:12] bit[11:8] bit[7:0] 8 1 0000 0001: the source port of the packet is port 0 0000 0010: the source port of the packet is port 1 0000 0100: the source port of the packet is port 2 0000 1000: the source port of the packet is port 3 0001 0000: the source port of the packet is port 4 0010 0000: the source port of the packet is port 5 0100 0000: the source port of the packet is port 6 1000 0000: the source port of the packet is port 7
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 46/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.11 static mac address table user can setup the static mac address t able to force the switching behavior of ip178c/ip178ch by programming mii register 31.14 ~ 30.21. when ip178c/ip178ch receives packets, which match pre-defined mac address in the table (static_mac_0, static_mac_1), it forwards the packet to mii port (cpu). the static mac address table has prec edence over the dynamic da look up result. in a spanning tree application, the mii register 31.17[ 10] static_override_0 is ?1?, mii register 31.17[9] static_valid_0 is ?1?, the mii r egister 31.14~31.16 mac address field is 01-80-c2-00-00-00 and the mii register 31.17[8:0] static_port_mask_0 is 9?b1_0000_0000 (mii). that is, ip178c/ip178ch only forwards bpdu to mii (cpu) and in spite of the port states. mii register r/w description default 31.17.10 r/w override_0 1: override the transmission, receiving and learning setting in mii register 31.13. 0: not override 1 31.17.9 r/w state_valid_0 1: the entry is valid 0: the entry is not valid 0 31.17[8:0] r/w state_port_mask_0 bit 8: forward to port 8 (mii) bit 7: forward to port 7 bit 6: forward to port 6 bit 5: forward to port 5 bit 4: forward to port 4 bit 3: forward to port 3 bit 2: forward to port 2 bit 1: forward to port 1 bit 0: forward to port 0 9?b1_0000_0000 31.14 ? 16 r/w state_mac_0 01-80-c2-00-00-00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 2.12 serial management interface user can access ip178c/ip178ch ?s mii registers through serial management interface with pin mdc and mdio. its format is shown in the following table. to access mii register in ip178c/ip178ch , mdc should be at least one more cycle than mdio. that is, a complete command consists of 32 bits mdio data and at least 33 mdc clocks. when the smi is idle, mdio is in high impedance. cpu mdio 178c mdc syatem diagram frame format read operation <01><10> write operation <01><01><10> 0000 00 00110 0110 0 0 100 00010 0 0 0 1 0 10 1..1 idle start op code phy address = 01h reg address = 00h ta register data b 1 5 b 1 4 b 1 3 b 1 2 b 1 1 b 1 0 b 9 b 8 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 idle a 4 a 3 a 2 a 1 a 0 r 4 r 3 r 2 r 1 r 0 write z z 0000 00 00100 0110 0 0 z00 00010 0 0 0 0 1 10 idle start op code phy address = 01h reg address = 00h ta register data b 1 5 b 1 4 b 1 3 b 1 2 b 1 1 b 1 0 b 9 b 8 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 idle a 4 a 3 a 2 a 1 a 0 r 4 r 3 r 2 r 1 r 0 read z zz mdc mdio mdc mdio 1..1 1..1 1..1 47/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 48/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.13 sca ip178c/ip178ch performs sca on each port and shows the test result on led pins whenever pin sca is pulled high. the led display is independent of led_sel pins. the following table shows the led behavior of a port performing sca. link_led speed_le d fdx_led scan port by port scan port by port scan port by port sca initiation (under testing) running horse led: on 286ms -> off 2s -> on 286ms -> off 2s test fail on-off-on-off on-off-on-off off an open cable with length shorter than 50m open off on off an open cable with length between 50m and 100m on off off an open cable with length between 100m and 150m on on off an shorted cable with length shorter than 50m off flash off an shorted cable with length between 50m and 100m flash off off an shorted cable with length between 100m and 150 m flash flash off cable is normal off off off 2.14 bandwidth control ip178c/ip178ch provides the bandwidth control mechanism to manage or control the data rate on a limited bandwidth network. by controlling the ingress dat a rate and the egress data rate, it provides a bandwidth management solution for local area networks and also provides quick and easy allocation of uplink or downlink speeds to meet and guarantee a wi de range of customer bandwidth requirements. ip178c/ip178ch provides the easiest way to allocate bandwidth for each port, which defined in mii registers 31.26 ~ 31.29 or eeprom re gisters 116 ~ 123. the ingress/eg ress data rate control range is from 128 kbps to 8 mbps for each port.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 49/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 2.15 register descriptions r/w = read/write, sc = self-clearing, ro = read only, ll = latching low, lh = latching high basic mii registers of port 0 phy mii rom r/w description default mii control register (address 00) 0 0.15 -- reset 0 0 0.14 -- r/w loop back 1 = loop back mode 0 = normal operation when this bit set, ip178c/ip178ch will be isolated from the network media, that is, the asse rtion of txen at the mii will not transmit data on the network. all mii transmission data will be returned to mii receive data path in response to the assertion of txen. 0 0 0.13 -- rw speed selection 1 = 100 mbpsbps 0 = 10 mbpsbps it is valid only if bit 0.12 is set to be 0. 1 0 0.12 -- rw auto-negotiation enable 1 = auto-negotiation enable 0 = auto-negotiation disable 1 0 0.11 -- r/w power down 0 0 0.10 -- isolate 0 0 0.9 -- rw sc restart auto- negotiation 1 = re-starting auto-negotiation 0 = auto-negotiation re-start complete setting this bit to logic high will cause ip178c/ip178ch to restart an auto-negotiation cycle, but depending on the value of bit 0.12 (auto-negotiation en able). if bit 0.12 is cleared then this bit has no effect, and it is read only. this bit is self-clearing after auto-negotiation process is completed. 0 0 0.8 -- r/w duplex mode 1 = full duplex 0 = half duplex it is valid only if bit 0.12 is set to be 0. 0 0 0.7 -- r/w collision test 0 0 0[6:0] -- r/w write as 0, ignore on read -
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 50/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default mii status register (address 01) 0 1.15 -- ro 100base-t4 capable 1 = 100base-t4 capable 0 = not 100base-t4 capable ip178c/ip178ch does not support 100base-t4. this bit is fixed to be 0. 0 0 1.14 -- ro 100base-x full duplex capable 1 = 100base-x full duplex capable 0 = not 100base-x full duplex capable the default of this bit will change depend on the external setting of ip178c/ip178ch . if external pin setting without 100base-x full duplex support, then this bit will change default to logic 0. 1 0 1.13 -- ro 100base-x half duplex capable 1 = 100base-x half duplex capable 0 = not 100base-x half duplex capable the default of this bit will change depend on the external setting of ip178c/ip178ch . if external pin setting without 100base-x half duplex support, then this bit will change default to logic 0 1 0 1.12 -- ro 10base-t full duplex capable 1 = 10base-t full duplex capable 0 = not 10base-t full duplex capable the default of this bit will change depend on the external setting of ip178c/ip178ch . if external pin setting without 100base-t full duplex support, then this bit will change default to logic 0 1 0 1.11 -- ro 10base-t half duplex capable 1 = 10base-t half duplex capable 0 = not 10base-t half duplex capable the default of this bit will change depend on the external setting of ip178c/ip178ch . if external pin setting without 100base-x full duplex support, then this bit will change default to logic 0 1 0 1[10:7] -- ro reserved ignore on read - 0 1.6 -- ro mf preamble suppression 1 = preamble may be suppressed 0 = preamble always required 1 0 1.5 -- ro auto-negotiation complete 1 = auto-negotiation complete 0 = auto-negotiation in progress when read as logic 1, indicates that the auto-negotiation process has been completed, and the contents of register 4 and 5 are valid. when read as logic 0, indicates that the auto-negotiation process has not been completed, and the contents of register 4 and 5 are meaningless. if auto-negotiation is disabled (bit 0.12 set to logic 0), then this bit will always read as logic 0. 0
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 51/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default mii status register (address 01) 0 1.4 -- ro lh remote fault 1 = remote fault detected 0 = not remote fault detected when read as logic 1, indicates that ip178c/ip178ch has detected a remote fault condition. this bit is set until remote fault condition gone and before reading the contents of the register. this bit is cleared after ip178c/ip178ch reset. 0 0 1.3 -- ro auto-negotiation ability 1 = auto-negotiation capable 0 = not auto-negotiation capable when read as logic 1, indicates that ip178c/ip178ch has the ability to perform auto-negotiation. the value of this bit will depend on the external mode setting of ip178c/ip178ch operation mode. 1 0 1.2 -- ro ll link status 1 = link pass 0 = link fail when read as logic 1, indicates that ip178c/ip178ch has determined a valid link has been established. when read as logic 0, indicates the link is not valid. this bit is cleared until a valid link has been established and before reading the contents of this registers. 0 0 1.1 -- ro lh jabber detect 1 = jabber condition detected 0 = no jabber condition detected when read as logic 1, indicates that ip178c/ip178ch has detected a jabber condition. this bit is always 0 for 100 mbps operation and is cleared after ip178c/ip178ch reset. this bit is set until jabber condition is cleared and reading the contents of the register. 0 0 1.0 -- ro extended capability 1 = extended register capabilities 0 = no extended register capabilities ip178c/ip178ch has extended register capabilities. 1
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 52/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default phy identifier (address 02) 0 2 -- ro ip178c/ip178ch oui (organizationally unique identifier) id, the msb is 3 rd bit of ip178c/ip178ch oui id, and the lsb is 18 th bit of ip178c/ip178ch oui id. ip178c/ip178ch oui is 0090c3. 0243h phy mii rom r/w description default phy identifier (address 03) 0 3[15:10] -- ro phy identifier ip178c/ip178ch oui id, the msb is 19 th bit of ip178c/ip178ch oui id, and lsb is 24 th bit of ip178c/ip178ch oui id. 3h 0 3[9:4] -- ro manufacture?s model number ip178c/ip178ch model number 18h 0 3[3:0] -- ro revision number ip178c/ip178ch revision number 0
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 53/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default auto-negotiation advertisement register (address 04) 0 4.15 -- next page not supported 0 0 4.14 -- rw reserved by ieee, write as 0, ignore on read 0 0 4.13 -- r/w remote fault not supported 0 0 4[12:11] -- ro reserved for future ieee use, write as 0, ignore on read 0 0 4.10 -- rw pause 1 = advertises that this device has implemented pause function 0 = no pause function supported 0 0 4.9 -- rw 100base-t4 not supported 0 0 4.8 -- r/w 100base-tx full duplex 1 = 100base-tx full duplex is supported 0 = 100base-tx full duplex is not supported 1 0 4.7 -- r/w 100base-tx 1 = 100base-tx is supported 0 = 100base-tx is not supported 1 0 4.6 -- r/w 10base-t full duplex 1 = 10base-t full duplex is supported 0 = 10base-t full duplex is not supported 1 0 4.5 -- r/w 10base-t 1 = 10base-t is supported 0 = 10base-t is not supported 1 0 4[4:0] -- r/w selector field use to identify the type of message being sent by auto-negotiation. 00001
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 54/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default link partner ability register (address 05) base page 0 5.15 ro next page 1 = next page ability is supported by link partner 0 = next page ability does not supported by link partner 0 0 5.14 ro acknowledge 1 = link partner has received the ability data word 0 = not acknowledge 0 0 5.13 ro remote fault 1 = link partner indicates a remote fault 0 = no remote fault indicate by link partner if this bit is set to logic 1, then bit 1.4 (remote fault) will set to logic 1. 0 0 5[12:11] -- ro reserved by ieee for futu re use, write as 0, read as 0. 0 0 5.10 -- ro pause 1 = link partner support ieee802.3x 0 = link partner does not support ieee802.3x ip178c/ip178ch will reload the default va lue after rest or link failure. 1 0 5.9 -- ro 100base-t4 1 = link partner support 100base-t4 0 = link partner does not support 100base-t4 0 0 5.8 -- ro 100base-tx full duplex 1 = link partner support 100base-tx full duplex 0 = link partner does not support 100base-tx full duplex 0 0 5.7 -- ro 100base-tx 1 = link partner support 100base-tx 0 = link partner does not support 100base-tx 0 0 5.6 -- ro 10base-t full duplex 1 = link partner support 10base-t full duplex 0 = link partner does not support 10base-t full duplex 0 0 5.5 -- ro 10base-t 1 = link partner support 10base-t 0 = link partner does not support 10base-t 0 0 5[4:0] -- ro selector field protocol selector of the link partner 00000
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 55/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default during sca_mode, the sca result for each port will be stored at mii_reg_05: auto-negotiation link partner base page ability. sca setting register 5[15:14] -- ro sca_line_state these two bits indicate the cable status measured by sca operation. 3: test fail (not complete) 2: line okay 1: line open 0: line short 5[13:8] -- ro sca_peak_val these bits indicate the absolute value and the maximum value of peak amplitude measured by sca operation. 5[7:2] -- ro sca_peak_pos[7:2]these bi ts indicate the position of peak amplitude measured by sca operation. when cable status is open or s hort, the failure position is approximated as (sca_peak_pos[7:2] * 4) meters. ex: sca_peak_pos[7:2] = 6?b011001, the failure position is 25*4 = 100 meters 0 5[1:0] ro sca_txsel these two bits indicate the tx phase of sca operation.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 56/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 basic mii registers of port 1-7 phy mii rom r/w description default port 1 mii register 0~5 1 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 2 mii register 0~5 2 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 3 mii register 0~5 3 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 4 mii register 0~5 4 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 5 mii register 0~5 5 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 6 mii register 0~5 6 0~5 -- please refer to mii registers 0.0~0.5. phy mii rom r/w description default port 7 mii register 0~5 7 0~5 -- please refer to mii registers 0.0~0.5.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 57/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default eeprom enable register / software reset register 30 -- 1, 0 eeprom enable register this register should be filled with 55aa in eerpom register 0 and 1. ip178c/ip178ch will examine the specified pattern to confirm if there is a valid eeprom. the initial setting is updated with the content of eeprom only if the specified pattern 55aa is found. 30 0 -- w software reset register mii register 0 is software reset register. user can reset ip178c/ip178ch by writing 55aa to this register. 30 0.15 -- r bfll_full, free buffer is full 1: full, 0: not full this bit is for debug only. 30 0.14 -- r extmii_en_in 1: pin extmii_en is latched high, 0: pin extmii_en is latched low this bit is for debug only. 30 0.13 -- r empty, all output queue is empty 1: empty 0: not empty this bit is for debug only.
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 58/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default switch control register 1 30 1[15] 3[7] priority_rate 1: 8 packets 0: 4 packets output queue scheduling: high priority packet rate 1?b0 led_o_sel led mode selection link_led speed_led fdx_led 00 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex 01 off: link fail on: link ok flash: rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision 10 off: link fail on: 10 mbps link ok flash: tx/rx off: link fail on: 100 mbps link ok flash: tx/rx off: half duplex on: full duplex flash: collision 30 1[14:13] 3[6:5] 11 off: link fail on: link ok flash: tx/rx off: 10 mbps on: 100 mbps off: half duplex on: full duplex flash: collision p(1,1) 30 1[12] 3[4] reserved 1'b0 30 1[11] 3[3] drop16 1: enable, 0:disable 1?b0 30 1[10] 3[2] x_en, ieee 802.3x flow control enable 1: enable, 0:disable p(1) 30 1[9] 3[1] ext_mii_x_en, mii port ieee 802.3x flow control enable 1: enable, 0:disable 1?b1 30 1[8] 3[0] bk_en, backpressure enable 1: enable, 0: disable p(1) 30 1[7] 2[7] bp_kind, ba ckpressure type selection it is valid only if bk_en is set to 1?b1. 0: carrier base backpressure 1: reserved 1?b0 30 1[6] 2[6] bf_stm_en, broadcast storm enable 1: enable ip178c/ip178ch drops the incoming packet if the number of broadcast packet in queue is over the threshold. 0: disable p(0) 30 1[4] 2[4] ldps_dis disable link down power saving mode 0: enable link down power saving mode (default) 1: disable link down power saving mode p(0)
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 59/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default 30 1[5] 2[5] mlt3_det ability for detecting mlt3 (for 10 mbps switch to 100 mbps) 0: disable mlt3 detection ability (default) 1: enable mlt3 detection ability. p(0) aging. aging time of address table selection an address tag in hashing table will be removed if this function is turned on and its aging timer expires. aging time note 00 no aging 01 30s 10 300s default 30 1[3:2] 2[3:2] 11 reserved p(1,0) 30 1[1] 2[1] modbck. turn on modified back off algorithm the maximum back off period is limited to 8-slot time if this function is turned on. 1: turn on, 0: turn off p(1) 30 1[0] 2[0] drop extra long packet max forwarded packet length 0: 1536 bytes (default) 1: 1552 bytes p(0)
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 60/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default switch control register 2 30 2[15:10] 5[7:2] tmode_sel. test mode selection this function is for testing only. the default value must be adopted for normal operation. 6?b0 30 2[9] 5[1] mdi_mdix_en. auto mdimdix enable 1: auto mdimdix (default) 0: fixed mdi note: ip178c/ip178ch always uses a mdix transformer. p(1) 30 2[8] 5[0] reserved p(0) 30 2[7] 4[7] reserved 1?b0 30 2[6] 4[6] mac_mode_en. external mac mode 1: mac mode 0: phy mode p(0) 30 2[5] 4[5] rmii_en. external mii mode 1: rmii 0: mii p(0) 30 2[4] 4[4] fx7_en (for ip178ch only) fiber port 7 enable 1: enable 0: disable p(0) 30 2[3] 4[3] fx7_half (for ip178ch only) fiber port 7 duplex mode 1: half duplex 0: full duplex p(0) 30 2[2] 4[2] fx6_en (for ip178ch only) fiber port 6 enable 1: enable 0: disable p(0) 30 2[1] 4[1] fx6_half (for ip178ch only) fiber port 6 duplex mode 1: half duplex 0: full duplex p(0) 30 2[0] 4[0] bi_color p(0)
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 61/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag register 1~9 30 3 7,6 vlan_tag_0. port0 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 0. 16?h01 30 4 9,8 vlan_tag_1. port1 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 1. 16?h01 30 5 11,10 vlan_tag_2. port2 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 2. 16?h01 30 6 13, 12 vlan_tag_3. port3 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 3. 16?h01 30 7 15, 14 vlan_tag_4. port4 default valn tag value this register defines the vlan tag of an un-tagged packet from port 4. 16?h01 30 8 17, 16 vlan_tag_5. port5 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 5. 16?h01 30 9 19, 18 vlan_tag_6. port6 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 6. 16?h01 30 10 21, 20 vlan_tag_7. port7 default vlan tag value this register defines the vlan tag of an un-tagged packet from port 7. 16?h02 30 11 23, 22 vlan_tag_8. mii0 default vlan tag value this register defines the vlan tag of an un-tagged packet from mii port. 16?h02
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 62/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag register 10 add_tag. add vlan tag portx adds a vlan tag defined in vlan_tag_x to each outgoing packet bit 0 1: port0 adds a vlan tag to each outgoing packet. 0: port0 doesn?t add a vlan tag. bit 1 1: port1 adds a vlan tag to each outgoing packet. 0: port1 doesn?t add a vlan tag. bit 2 1: port2 adds a vlan tag to each outgoing packet. 0: port2 doesn?t add a vlan tag. bit 3 1: port3 adds a vlan tag to each outgoing packet. 0: port3 doesn?t add a vlan tag. bit 4 1: port4 adds a vlan tag to each outgoing packet. 0: port4 doesn?t add a vlan tag. bit 5 1: port5 adds a vlan tag to each outgoing packet. 0: port5 doesn?t add a vlan tag. bit 6 1: port6 adds a vlan tag to each outgoing packet. 0: port6 doesn?t add a vlan tag. bit 7 1: port7 adds a vlan tag to each outgoing packet. 0: port7 doesn?t add a vlan tag. 30 12[8:0] 25[0], 24[7:0] r/w bit 8 1: mii adds a vlan tag to each outgoing packet. 0: mii doesn?t add a vlan tag. 9?h00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 63/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag register 11 remove_tag. remove vlan tag bit 0 1: port0 removes the vlan tag of each outgoing packet. 0: port0 doesn?t remove the vlan tag of each outgoing packet. bit 1 1: port1 removes the vlan tag of each outgoing packet. 0: port1 doesn?t remove the vlan tag of each outgoing packet. bit 2 1: port2 removes the vlan tag of each outgoing packet. 0: port2 doesn?t remove the vlan tag of each outgoing packet. bit 3 1: port3 removes the vlan tag of each outgoing packet. 0: port3 doesn?t remove the vlan tag of each outgoing packet. bit 4 1: port4 removes the vlan tag of each outgoing packet. 0: port4 doesn?t remove the vlan tag of each outgoing packet. bit 5 1: port5 removes the vlan tag of each outgoing packet. 0: port5 doesn?t remove the vlan tag of each outgoing packet. bit 6 1: port6 removes the vlan tag of each outgoing packet. 0: port6 doesn?t remove the vlan tag of each outgoing packet. bit 7 1: port7 removes the vlan tag of each outgoing packet. 0: port7 doesn?t remove the vlan tag of each outgoing packet. 30 13[12:4] 27[4:0] 26[7:4] r/w bit 8 1: mii removes the vlan tag of each outgoing packet. 0: mii doesn?t remove the vlan tag of each outgoing packet. 9?h00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 64/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag vlan register 1 30 13[3] 26[3] tag_vlan_en. enable tag vlan function 1: enable tag vlan function 0: disable tag vlan function 1?b0 vid_sel. vid index selection select 4 bits out of 12 bits vid as index of tag vlan groups. the 12 bits of vid can?t be a ll zeros; otherwise, it will be handled as an un-tagged frame. 000: vid[3:0], 001: vid[4:1], 010: vid[5:2], 011: vid[6:3], 100: vid[7:4], 101: vid[8:5], 110: vid[9:6], 111: vid[10:7] an example of vid_sel = 3?b000, vlan_0 vid[3:0] = 4?b0000 vlan_1 vid[3:0] = 4?b0001 vlan_2 vid[3:0] = 4?b0010 vlan_3 vid[3:0] = 4?b0011 ?. ?. vlan_e vid[3:0] = 4?b1110 30 13[2:0] 26[2:0] vlan_f vid[3:0] = 4?b1111 3?b000
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 65/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag vlan register 2 tag_vlan_mask_0[8:0]. tag vlan 0 output port mask the mask is valid only if mii register 13.3 tag_vlan_en is logic high and vid index is 4?b0000. when ip178c/ip178ch receives a packet, it examines the vid index to choose a tag vlan mask and forwards the packets according the mac address table and the mask. bit0 1: port 0 belongs to vlan 0 0: port 0 doesn?t belong to vlan 0 bit1 1: port 1 belongs to vlan 0 0: port 1 doesn?t belong to vlan 0 bit2 1: port 2 belongs to vlan 0 0: port 2 doesn?t belong to vlan 0 bit3 1: port 3 belongs to vlan 0 0: port 3 doesn?t belong to vlan 0 bit4 1: port 4 belongs to vlan 0 0: port 4 doesn?t belong to vlan 0 bit5 1: port 5 belongs to vlan 0 0: port 5 doesn?t belong to vlan 0 bit6 1: port 6 belongs to vlan 0 0: port 6 doesn?t belong to vlan 0 bit7 1: port 7 belongs to vlan 0 0: port 7 doesn?t belong to vlan 0 30 14[8:0] 29[0] 28[7:0] bit8 1: mii port belongs to vlan 0 0: mii port doesn?t belong to vlan 0 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 66/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default tag vlan register 3~17 15[8:0] 31[0], 30[7:0] tag_vlan_mask_1[8:0]. tag vlan 1 output port mask 9?h17f 16[8:0] 33[0], 32[7:0] tag_vlan_mask_2[8:0]. tag vlan 2 output port mask 9?h180 17[8:0] 35[0], 34[7:0] tag_vlan_mask_3[8:0]. tag vlan 3 output port mask 9?h1ff 18[8:0] 37[0], 36[7:0] tag_vlan_mask_4[8:0]. tag vlan 4 output port mask 9?h1ff 19[8:0] 39[0], 38[7:0] tag_vlan_mask_5[8:0]. tag vlan 5 output port mask 9?h1ff 20[8:0] 41[0], 40[7:0] tag_vlan_mask_6[8:0]. tag vlan 6 output port mask 9?h1ff 21[8:0] 43[0], 42[7:0] tag_vlan_mask_7[8:0]. tag vlan 7 output port mask 9?h1ff 22[8:0] 45[0], 44[7:0] tag_vlan_mask_8[8:0]. tag vlan 8 output port mask 9?h1ff 23[8:0] 47[0], 46[7:0] tag_vlan_mask_9[8:0]. tag vlan 9 output port mask 9?h1ff 24[8:0] 49[0], 48[7:0] tag_vlan_mask_a[8:0]. tag vlan a output port mask 9?h1ff 25[8:0] 51[0], 50[7:0] tag_vlan_mask_b[8:0]. tag vlan b output port mask 9?h1ff 26[8:0] 53[0], 52[7:0] tag_vlan_mask_c[8:0]. tag vlan c output port mask 9?h1ff 27[8:0] 55[0], 54[7:0] tag_vlan_mask_d[8:0]. tag vlan d output port mask 9?h1ff 28[8:0] 57[0], 56[7:0] tag_vlan_mask_e[8:0]. tag vlan e output port mask 9?h1ff 30 29[8:0] 59[0], 58[7:0] tag_vlan_mask_f[8:0]. tag vlan f output port mask 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 67/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default router control register 1 30[11] 61[3] router_en. enable router function at mii port 1: smart mac enabled. 0: smart mac disabled. 1?b0 30[10:8] 61[2:0] lan_groups[2:0]. number of vlan groups of lan ports in a router application it defines the vlans used by lan ports. each vlan should contain mii port. it is valid only if router_en is enabled. 000: unsupported value 001: 1 vlan group, (vlan 1) 010: 2 vlan groups, (vlan 1~vlan 2) 011: 3 vlan groups, (vlan 1~vlan 3) 100: 4 vlan groups, (vlan 1~vlan 4) 101: 5 vlan groups, (vlan 1~vlan 5) 110: 6 vlan groups, (vlan 1~vlan 6) 111: 7 vlan groups, (vlan 1~vlan 7) 3?b001 wan_ports[7:0]. wan ports for router application it is valid only if router_en is enabled. bit0 1: port 0 is a wan port 0: port 0 is not a wan port bit1 1: port 1 is a wan port 0: port 1 is not a wan port bit2 1: port 2 is a wan port 0: port 2 is not a wan port bit3 1: port 3 is a wan port 0: port 3 is not a wan port bit4 1: port 4 is a wan port 0: port 4 is not a wan port bit5 1: port 5 is a wan port 0: port 5 is not a wan port bit6 1: port 6 is a wan port 0: port 6 is not a wan port 30 30[7:0] 60[7:0] bit7 1: port 7 is a wan port 0: port 7 is not a wan port 8?h80
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 68/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default router control register 2 port_lock_en[8:0]. lock port mac address 1: enable 0: disable user has to turn off aging function when using the port locking function. aging function can be disabled by pulling low pin 76 aging or programming register 30.1[3:2]. bit0 1: port lock enabled in port 0 0: port lock disabled in port 0 bit1 1: port lock enabled in port 1 0: port lock disabled in port 1 bit2 1: port lock enabled in port 2 0: port lock disabled in port 2 bit3 1: port lock enabled in port 3 0: port lock disabled in port 3 bit4 1: port lock enabled in port 4 0: port lock disabled in port 4 bit5 1: port lock enabled in port 5 0: port lock disabled in port 5 bit6 1: port lock enabled in port 6 0: port lock disabled in port 6 bit7 1: port lock enabled in port 7 0: port lock disabled in port 7 30 31[8:0] 63[0], 62[7:0] bit8 1: port lock enabled in mii port 0: port lock disabled in mii port 9?b00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 69/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 0 0[10] 65[2] port0 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port0 are handled as high priority packets. 1?b0 0[9] 65[1] port0 set to be high priority port 1: enable, 0: disabled (default) packets received from port0 are handled as high priority packets. 1?b0 31 0[8:0] 65[0], 64[7:0] port0 vlan look up table the register defines the ports in the same vlan as port0. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port0 0: a port is not in the same vlan as port0 bit0, don?t care; bit1=1, port 1 and port0 are in the same vlan; bit2=1, port 2 and port0 are in the same vlan; bit3=1, port 3 and port0 are in the same vlan; bit4=1, port 4 and port0 are in the same vlan; bit5=1, port 5 and port0 are in the same vlan; bit6=1, port 6 and port0 are in the same vlan; bit7=1, port 7 and port0 are in the same vlan; bit8=1, mii port and port0 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 70/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 1 1[10] 67[2] port1 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port1 are handled as high priority packets. 1?b0 1[9] 67[1] port1 set to be high priority port 1: enable, 0: disabled (default) packets received from port1 are handled as high priority packets. 1?b0 31 1[8:0] 67[0], 66[7:0] port1 vlan look up table the register defines the ports in the same vlan as port1. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port1 0: a port is not in the same vlan as port1 bit0=1, port 0 and port1 are in the same vlan; bit1, don?t care; bit2=1, port 2 and port1 are in the same vlan; bit3=1, port 3 and port1 are in the same vlan; bit4=1, port 4 and port1 are in the same vlan; bit5=1, port 5 and port1 are in the same vlan; bit6=1, port 6 and port1 are in the same vlan; bit7=1, port 7 and port1 are in the same vlan; bit8=1, mii port and port1 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 71/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 2 2[10] 69[2] port2 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port2 are handled as high priority packets. 1?b0 2[9] 69[1] port2 set to be high priority port 1: enable, 0: disabled (default) packets received from port2 are handled as high priority packets. 1?b0 31 2[8:0] 69[0], 68[7:0] port2 vlan look up table the register defines the ports in the same vlan as port2. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port2 0: a port is not in the same vlan as port2 bit0=1, port 0 and port2 are in the same vlan; bit1=1, port 1 and port2 are in the same vlan; bit2=1, don?t care; bit3=1, port 3 and port2 are in the same vlan; bit4=1, port 4 and port2 are in the same vlan; bit5=1, port 5 and port2 are in the same vlan; bit6=1, port 6 and port2 are in the same vlan; bit7=1, port 7 and port2 are in the same vlan; bit8=1, mii port and port2 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 72/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 3 3[10] 71[2] port3 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port3 are handled as high priority packets. 1?b0 3[9] 71[1] port3 set to be high priority port 1: enable, 0: disabled (default) packets received from port3 are handled as high priority packets. 1?b0 31 3[8:0] 71[0], 70[7:0] port3 vlan look up table the register defines the ports in the same vlan as port3. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port3 0: a port is not in the same vlan as port3 bit0=1, port 0 and port3 are in the same vlan; bit1=1, port 3 and port3 are in the same vlan; bit2=1, port 2 and port3 are in the same vlan; bit3=1, don?t care; bit4=1, port 4 and port3 are in the same vlan; bit5=1, port 5 and port3 are in the same vlan; bit6=1, port 6 and port3 are in the same vlan; bit7=1, port 7 and port3 are in the same vlan; bit8=1, mii port and port3 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 73/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 4 4[10] 73[2] port4 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port4 are handled as high priority packets. 1?b0 4[9] 73[1] port4 set to be high priority port 1: enable, 0: disabled (default) packets received from port4 are handled as high priority packets. 1?b0 31 4[8:0] 73[0], 72[7:0] port4 vlan look up table the register defines the ports in the same vlan as port4. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port4 0: a port is not in the same vlan as port4 bit0=1, port 0 and port4 are in the same vlan; bit1=1, port 1 and port4 are in the same vlan; bit2=1, port 2 and port4 are in the same vlan; bit3=1, port 3 and port4 are in the same vlan; bit4=1, don?t care; bit5=1, port 5 and port4 are in the same vlan; bit6=1, port 6 and port4 are in the same vlan; bit7=1, port 7 and port4 are in the same vlan; bit8=1, mii port and port4 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 74/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 5 5[10] 75[2] port5 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port5 are handled as high priority packets. 1?b0 5[9] 75[1] port5 set to be high priority port 1: enable, 0: disabled (default) packets received from port5 are handled as high priority packets. 1?b0 31 5[8:0] 75[0], 74[7:0] port5 vlan look up table the register defines the ports in the same vlan as port5. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port5 0: a port is not in the same vlan as port5 bit0=1, port 0 and port5 are in the same vlan; bit1=1, port 1 and port5 are in the same vlan; bit2=1, port 2 and port5 are in the same vlan; bit3=1, port 3 and port5 are in the same vlan; bit4=1, port 4 and port5 are in the same vlan; bit5=1, don?t care; bit6=1, port 6 and port5 are in the same vlan; bit7=1, port 7 and port5 are in the same vlan; bit8=1, mii port and port5 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 75/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 6 6[10] 77[2] port6 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port6 are handled as high priority packets. 1?b0 6[9] 77[1] port6 set to be high priority port 1: enable, 0: disabled (default) packets received from port6 are handled as high priority packets. 1?b0 31 6[8:0] 77[0], 76[7:0] port6 vlan look up table the register defines the ports in the same vlan as port6. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port6 0: a port is not in the same vlan as port6 bit0=1, port 0 and port6 are in the same vlan; bit1=1, port 1 and port6 are in the same vlan; bit2=1, port 2 and port6 are in the same vlan; bit3=1, port 3 and port6 are in the same vlan; bit4=1, port 4 and port6 are in the same vlan; bit5=1, port 5 and port6 are in the same vlan; bit6=1, don?t care; bit7=1, port 7 and port6 are in the same vlan; bit8=1, mii port and port6 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 76/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 7 7[10] 79[2] port7 cl ass of service enable 1: enable, 0: disabled (default) packets with high priority tag from port7 are handled as high priority packets. 1?b0 7[9] 79[1] port7 set to be high priority port 1: enable, 0: disabled (default) packets received from port7 are handled as high priority packets. 1?b0 31 7[8:0] 79[0], 78[7:0] port7 vlan look up table the register defines the ports in the same vlan as port7. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as port7 0: a port is not in the same vlan as port7 bit0=1, port 0 and port7 are in the same vlan; bit1=1, port 1 and port7 are in the same vlan; bit2=1, port 2 and port7 are in the same vlan; bit3=1, port 3 and port7 are in the same vlan; bit4=1, port 4 and port7 are in the same vlan; bit5=1, port 5 and port7 are in the same vlan; bit6=1, port 6 and port7 are in the same vlan; bit7=1, don?t care; bit8=1, mii port and port7 are in the same vlan; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 77/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default cos and port base vlan register 8 8[10] 81[2] mii port class of service enable 1: enable, 0: disabled (default) packets with high priority tag from mii port are handled as high priority packets. 1?b0 8[9] 81[1] mii port set to be high priority port 1: enable, 0: disabled (default) packets received from mii port are handled as high priority packets. 1?b0 31 8[8:0] 81[0], 80[7:0] mii port vlan look up table the register defines the ports in the same vlan as port8. the bit 0~8 are corresponding to port 0~8. 1: a port is in the same vlan as mii port 0: a port is not in the same vlan as mi port bit0=1, port 0 and mii port are in the same vlan; bit1=1, port 1 and mii port are in the same vlan; bit2=1, port 2 and mii port are in the same vlan; bit3=1, port 3 and mii port are in the same vlan; bit4=1, port 4 and mii port are in the same vlan; bit5=1, port 5 and mii port are in the same vlan; bit6=1, port 6 and mii port are in the same vlan; bit7=1, port 7 and mii port are in the same vlan; bit8=1, don?t care; 9?h1ff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 78/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default switch control register 3 9[15:14] 83[7:6] bf_stm_thr_sel[1:0]. broadcast storm threshold selection 00: 159 packets/10ms for 100mbps port, or 159 packets/100ms for 10mbps port, 01: 127 packets/10ms for 100mbps port, or 127 packets/100ms for 10mbps port, 10: 63 packets/10ms for 100mbps port, or 63 packets/100ms for 10mbps port, 11: 31 packets/10ms for 100mbps port, or 31 packets/100ms for 10mbps port 2?b11 9[13:12] 83[5:4] share_full_thr_sel[1;0]. share buffer threshold selection 00: 160 units 01: 180 units 10: 140 units 11: 120 units 2?b00 9[11:10] 83[3:2] unit_default_thr_sel[1:0]. output queue minimum threshold selection 00: 40 units 01: 32 units 10: 48 units 11: 56 units 2?b00 9[9:8] 83[1:0] unit_low_thr_sel 2?b00 9[7:6] 82[7:6] unit_high_thr_sel[1;0]. output queue flow control on threshold selection if share buffer is over share buffe r full threshold, output queue flow control on threshold will be dynamic changed to 28. others, 00: 50 units 01: 70 units 10: 90 units 11: 110 units 2?b00 9[5] 82[5] reserved 9[4] 82[4] predrop_en 1: drop an incoming broadcast packet if any port is congested. 0: forward an incoming broadcast packet to un-congested ports instead of congested ports. 1 31 9[3:2] 82[3:2] pkt_low_thr_sel[1:0]. packet low water mark threshold selection 00: 40 units 01: 30 units 10: 20 units 11: 10 units 2?b00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 79/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default 9[1:0] 82[1:0] pkt_high_thr_sel[1:0]. packet high water mark threshold selection 00: 50 units 01: 40 units 10: 30 units 11: 20 units 2?b00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 80/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default reserved register (it is for testing only and is not released to users) 31 10[13:12] 85[5:4] drive[1:0] 31 10[11] 85[3] bf_stm_en_qm 0 31 10[10] 85[2] hp_dis_flow_en 0 31 10[9] 85[1] twopart 1 31 10[8] 85[0] allpass 0 31 10[7:5] 84[7:5] phy pin reserved[2:0] 0 31 10[4] 84[4] byscr_mode 0 31 10[3] 84[3] digital_lpbk 0 31 10[2] 84[2] digital_speed_up 0 31 10[1] 84[1] speed_up_10 0 31 10[0] 84[0] f_link_100 0 reserved register (it is for testing only and is not released to users) 31 11[15:0] 87[7:0], 86[7:0] phy_eeprom_setting_1[15:0] 16?h0000 31 12[15:0] 89[7:0], 88[7:0] phy_eeprom_setting_2[15:0] 16?h0000
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 81/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default spanning tree control registers 31 13[15:8] 91 forward_en 13[15]: 1: port7 forwarding enabled; 0: port7 forwarding disabled, 13[14]: 1: port6 forwarding enabled; 0: port6 forwarding disabled, 13[13]: 1: port5 forwarding enabled; 0: port5 forwarding disabled, 13[12]: 1: port4 forwarding enabled; 0: port4 forwarding disabled, 13[11]: 1: port3 forwarding enabled; 0: port3 forwarding disabled, 13[10]: 1: port2 forwarding enabled; 0: port2 forwarding disabled, 13[9]: 1: port1 forwarding enabled; 0: port1 forwarding disabled, 13[8]: 1: port0 forwarding enabled; 0: port0 forwarding disabled, 8?hff 31 13[7:0] 90 learning_en 13[7]: 1: port7 learning enabled; 0: port7 learning disabled, 13[6]: 1: port6 learning enabled; 0: port6 learning disabled, 13[5]: 1: port5 learning enabled; 0: port5 learning disabled, 13[4]: 1: port4 learning enabled; 0: port4 learning disabled, 13[3]: 1: port3 learning enabled; 0: port3 learning disabled, 13[2]: 1: port2 learning enabled; 0: port2 learning disabled, 13[1]: 1: port1 learning enabled; 0: port1 learning disabled, 13[0]: 1: port0 learning enabled; 0: port0 learning disabled 8?hff
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 82/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default spanning tree registers 31 14 93, 92 static_mac_0[15:0] 16?h0 31 15 95, 94 static_mac_0[31:16] 16?hc200 31 16 97, 96 static_mac_0[47:32] 8?h0180 31 17 99,98 [10]: static_overide_0 1: override the transmission, receiving and learning setting in mii register 31.13. 0: not override [9]: static_valid_0 1: the entry is valid 0: the entry is not valid [8:0]: static_port_mask_0 bit [8]: forward to port mii bit [7]: forward to port 7 bit [6]: forward to port 6 bit [5]: forward to port 5 bit [4]: forward to port 4 bit [3]: forward to port 3 bit [2]: forward to port 2 bit [1]: forward to port 1 bit [0]: forward to port 0 16?h0500
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 83/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default spanning tree registers 31 18 101,100 static_mac_1[15:0] 16?h0 31 19 103,102 static_mac_1[31:16] 16?h0 31 20 105 static_mac_1[47:32] 16?h0 31 21 107,106 [10]: static_overide_1 1: override the transmission, receiving and learning setting in mii register 31.13. 0: not override [9]: static_valid_1 1: the entry is valid 0: the entry is not valid [8:0]: static_port_mask_1 bit [8]: forward to port mii bit [7]: forward to port 7 bit [6]: forward to port 6 bit [5]: forward to port 5 bit [4]: forward to port 4 bit [3]: forward to port 3 bit [2]: forward to port 2 bit [1]: forward to port 1 bit [0]: forward to port 0 16?h0100 dscp register for ipv4/ipv6 diffserv 31 22 109,108 dscp[15:0] 16?h0 31 23 111,110 dscp[31:16] 16?h0 31 24 113,112 dscp[47:32] 16?h0 31 25 115,114 dscp[63:48] 16?h0
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 84/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default 31 26 117,116 [14:12]: bw_control_p1_tx [10:8]: bw_control_p1_rx [6:4]: bw_control_p0_tx [2:0]: bw_control_p0_rx bw control value setting, 000 : no limit 100 : 1m bit 001 : 128k bit 101 : 2m bit 010 : 256k bit 110 : 4m bit 011 : 512k bit 111 : 8m bi 16?h0 31 27 119,118 [14:12]: bw_control_p3_tx [10:8]: bw_control_p3_rx [6:4]: bw_control_p2_tx [2:0]: bw_control_p2_rx 16?h0 31 28 121,120 [14:12]: bw_control_p5_tx [10:8]: bw_control_p5_rx [6:4]: bw_control_p4_tx [2:0]: bw_control_p4_rx 16?h0 31 29 123,122 [14:12]: bw_control_p7_tx [10:8]: bw_control_p7_rx [6:4]: bw_control_p6_tx [2:0]: bw_control_p6_rx 16?h0 [15]: bw_en_qm [14]: stag_en [13]: diffserv_en [12]: bf_ffff _only, 1: broadcast da=ffffffff 0: broadcast da=ffffffff and multicast frame [11:8]: special_add_forward bit3 reserved mac address (0180c2000010-0180c20000ff) 1: forward (default), 0: discard. bit2 reserved mac address (0180c2000002- 0180c200000f) 1: forward (default), 0: discard. the default value is the inverted value of pin 78 filter_rsv_da. 31 30 125,124 bit1 reserved mac address (0180c2000001) 1: forward, 0: discard (default) 16?h8d00
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 85/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 phy mii rom r/w description default bit0 reserved mac address (0180c2000000) 1: forward (default), 0: discard default value extmii_en=1 extmii_en =0 1101 {1, inv of pin78 filter_rsv_da(0), 0, 1} [6:4]: bw_control_p8_tx [2:0]: bw_control_p8_rx 31 31 127,126 phy_eeprom_setting_3[15:0] 16? h0000
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 86/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 3 electrical characteristics 3.1 absolute maximum rating stresses exceed those values listed under absolute maximum ratings may cause permanent damage to the device. functional performance and device reliab ility are not guaranteed under these conditions. all voltages are specified with respect to gnd. supply voltage ?0.3v to 4.0v input voltage ?0.3v to 5.0v output voltage ?0.3v to 5.0v storage temperature -65 c to 150 c ambient operating temperature (ta) 0 c to 70 c 3.2 dc characteristic operating conditions parameter sym. min. typ. max. unit conditions supply voltage vcc 1.80 1.95 2.05 v all ports unlink supply voltage vcc_o 3.135 3.3 3.465 v 3.3v io supply voltage vcc_o 2.375 2.5 2.625 v 2.5v io power consumption 1.35 w 100 mbps full, vcc=1.95v input clock parameter sym. min. typ. max. unit conditions frequency 25 mhz frequency tolerance -50 +50 ppm i/o electrical characteristics parameter sym. min. typ. max. unit conditions input low voltage vil 0.8 v input high voltage vih 2.0 v x1 input low voltage vil 0.89 v x1 input high voltage vih 0.95 v output low voltage vol 0.4 v ioh=4ma, vcc_o_x=3.3v output high voltage voh 2.4 v iol=4ma, vcc_o_x=3.3v fxsdx input low voltage vil 0.3 v for ip178ch only fxsdx input high voltage vih 1 v for ip178ch only
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3.3 ac timing 3.3.1 phy mode mii timing a. tr ansmit timing requirements 87/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 symbol description min. typ. max. unit t transmit clock period 100 mbps mii t xclk - 40 - ns t stxclk txen, txd to txclk setup time 2 - - ns t htxclk txen, txd to txclk hold time 0.5 - - ns txclk txen, txd[3:0] t stxclk t htxclk t txclk b. receive timing symbol description min. typ. max. unit t rxclk receive clock period 100 mbps mii - 40 - ns t rxclk receive clock period 10 mbps mii - 400 - ns t drxclk rxclk falling edge to rxdv, rxd 1 - 4 ns t drxclk rxclk rxdv, rxd[3:0] t rxclk
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3.3.2 mac mode mii timing a. re ceive timing requirements 88/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 symbol description min. typ. max. unit t rxclk receive clock period 100 mbps mii - 40 - ns t srxclk rxdv, rxd to rxclk setup time 2 - - ns t hrxclk rxdv, rxd to rxclk hold time 0.5 - - ns rxclk rxdv, rxd[3:0] t srxclk t hrxclk t rxclk b. transmit timing symbol description min. typ. max. unit t transmit clock period 100 mbps mii t xclk - 40 - ns t dtxclk txclk rising edge to txen, txd 1 - 4 ns t dtxclk txclk txen, txd[3:0] t txclk
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3.3.3 rmii timing a. re ceive timing requirements 89/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 symbol description min. typ. max. unit t clk clock period - 20 - ns t srxclk rxdv, rxd to rmii_clk_in setup time 2 - - ns t hrxclk rxdv, rxd to rmii_clk_in hold time 0.5 - - ns rmii_clk_in rxdv, rxd[1:0] t srxclk t hrxclk t clk b. transmit timing symbol description min. typ. max. unit t clk clock period - 20 - ns t dtxclk rmii_clk_in rising edge to txen, txd 1 - 4 ns t dtxclk rmii_clk_in txen, txd[1:0] t clk
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3.3.4 smi timing a. md c/mdio timing 90/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 symbol description min. typ. max. unit t ch mdc high time 40 - - ns t cl mdc low time 40 - - ns t cm mdc period 80 - - ns t md mdio output delay - - 5 ns t mh mdio setup time 10 - - ns t ms mdio hold time 10 - - ns mdc mdio t ms t mh w rite cycle t cl t ch t cm t md mdc mdio read cycle
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 3.3.5 eeprom timing a. symbol description min. typ. max. unit t scl receive clock period - 20480 - ns t sscl sda to scl setup time 2 - - ns t hscl sda to scl hold time 0.5 - - ns read data cycle scl sda t sscl t hscl t scl b. 91/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 symbol description min. typ. max. unit t scl transmit clock period - 20480 - ns t dscl scl falling edge to sda - - 5200 ns comand cycle t dscl scl sda t scl 3.4 thermal data theta ja theta jc conditions units 29.1~30.4 9.3~10.7 2 layer pcb o c/w
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 92/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12 4 order information part no. package notice ip178c 128-pin pqfp - ip178c lf 128-pin pqfp lead free ip178ch 128-pin pqfp for fiber application - ip178ch lf 128-pin pqfp for fiber application lead free
ip178c/ip178c lf/ip178ch/ip178ch lf datasheet 5 package detail 1 28 pqfp outline dimensions note: 1. dimension d & e do not include mold protrusion. 2. dimension b does not include dambar protrusion. total in excess of the b dimension at maximum material condition. dambar cannot be located on the lower radius of the foot. symbol min. nom. max. nom. max. min. dimensions in inches dimensions in mm 0.010 0.35 0.45 0.014 0.018 0.25 a1 0.107 2.85 2.97 0.112 0.117 2.73 a2 0.007 0.22 0.27 0.009 0.011 0.17 b 0.004 0.15 0.20 0.006 0.008 0.09 c 0.669 17.20 17.40 0.677 0.685 17.00 hd 0.547 14.00 14.10 0.551 0.555 13.90 d 0.906 23.20 23.40 0.913 0.921 23.00 he 0.783 20.00 20.10 0.787 0.791 19.90 e - 0.50 - 0.020 - - e 0.025 0.88 1.03 0.035 0.041 0.65 l - 1.60 - 0.063 - - l1 - - 0.10 - 0.004 - y 0 - 12 - 12 0 65 102 e b e 39 64 1 38 103 128 d l l 1 c a 2 a 1 gage plane h d h e d y ic plus corp. headquarters sales office 10f, no.47, lane 2, kwang-fu road, sec. 2, 4f, no. 106, hsin-tai-wu road, sec.1, hsin-chu city, taiwan 300, r.o.c. hsi-ch ih, taipei hsien, taiwan 221, r.o.c. tel : 886-3-575-0275 fax : 886-3-575-0475 tel : 886-2-2696-1669 fax : 886-2-2696-2220 website : www.icplus.com.tw 93/93 june 21, 2007 copyright ? 2004, ic plus corp. ip 178cx-ds-r12


▲Up To Search▲   

 
Price & Availability of IP178C-DS-R09

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