| Electronic Components Datasheet Search |
|
LXT9784 Datasheet(PDF) 13 Page - Intel Corporation |
|
|
|||||||||||||||||||||||||||||
LXT9784 Datasheet(HTML) 13 Page - Intel Corporation |
|
13 / 14 page ![]() LXT9784 Octal 10/100 Transceiver Hardware Integrity Function Overview Application Note 13 Log "----- Starting HWI test -----" Log "Writing 0x8000 to Reg 1D(H): HWI Enable" TB_BrdWrMii 0 $PHY 0x1d 0x8000 sleep 1 set ReadVal [format "%#x" [TB_BrdRdMii 0 $PHY 0x1d]] # check bits 14 and 15 are "1" if { [expr 0xc000 & $ReadVal] == 0xc000 } { Log [ format "Read $ReadVal from Register 1D(H) as expected" ] Log " " } else { Error [ format "# ERROR in reading Register 1D(H)" ] set returnVal FAIL return returnVal } Log [format "The Phy#%d" $PHY] for each mode {MDI MDIX} { Log " " Log "= The current mode is $mode " if {"$mode" == "MDI"} { TB_BrdWrMii 0 $PHY 0x1c 0 } else { TB_BrdWrMii 0 $PHY 0x1c 0x0040 } for {set j 1} {$j <= 5} {incr j } { TakeData } } # end of InitHWI procedure } proc TakeData {} { global PHY # set bit 13 & 15 - "1" sleep 1 TB_BrdWrMiM 0 $PHY 0x1d 0xa000 0xa000 sleep 1 set res [format "%#x" [TB_BrdRdMii 0 $PHY 0x1d]] set type [format "%#x" [expr $res & 0x0f00]] set distn [format "%d" [expr $res & 0x00ff]] switch -exact $type { 0x200 {set type "High Impedance" ; set dist [expr 0.915*${distn}*8/9.4]} 0x400 {set type "Low Impedance" ; set dist [expr 0.895*${distn}*8/9.4]} default {set type "100 ohm" ; set dist [expr 0.895*${distn}*8/9.4]} } Log [format "The HWI data is %#x; %s %5.2f m" $res $type $dist] # set bit 13 - "0" TB_BrdWrMiM 0 $PHY 0x1d 0x0000 0x2000 } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |