Transcription of USB-2-MDIO Software Tool - TI.com
1 USB-2-MDIOS oftwareToolUser's GuideLiteratureNumber:SNLU197 February20162 SNLU197 February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedTableof February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's GuideLaunchPadis a trademarkof 's GuideSNLU197 February2016 USB-2-MDIOUser's GuideThe USB-2-MDIO softwaretool allowsusersof TexasInstruments'EthernetPHYsto accessMDIO statusand consistsof an MSP430 LaunchPad LaunchPadimplementsan MDIObus controllerthat can manipulateregistersonPHYsattachedto the is usedto configurethe registersof a PHYusingthe developmenttool allowsfor simplehardwaresetupand softwaresupportfor customersthat do all TexasInstruments
2 EthernetPHYsthat supportMDIObus read,write,scriptregisterread/writetrans actionsand log datacomingfromthe UseAn MSP430 LaunchPadis requiredfor use with this GUI and can be purchasedat the TI eStore( ).The MSP430F5529variantof the LaunchPadsupportsa rangeof VDDIO levelsallowingcommunicationswith PHY'sat ( ).MSP430driversare requiredto properlyconnectthe MSP430 LaunchPadto a user s be downloadedat LaunchPadshouldbe set for HW settingis enabledby configuringthe jumpersatJ3. Figure1 showsthe properjumperconfigurationto enableHW February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's GuideFigure1.
3 HW UARTC onfigurationFigure2 showsthe necessaryconnectionsto configurationsare as follows: MDIO(EVM)Connectto (LaunchPad) MDC(EVM)Connectto (LaunchPad) GND(EVM)Connectto GND(LaunchPad)Figure2. MSP430G2 LaunchPadConnections,MDC(RedWire, ),MDIO(BlueWire, ),and GND(BlackWire) Use5 SNLU197 February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's MSP430F5 SeriesLaunchPadis an upgradedversionof the capableof interfacingwith a rangeof I/O voltages( V to V). To properlyconfiguretheF5 Series,the userwill needto removethe 3V3 jumperlocatedbetweenthe 5V and desiredI/O voltageto the 3V3 headerlocatedat MSP430F5 SeriesLaunchPadMSP430F5 SeriesLaunchPadpin configurationsare as follows: MDIO(EVM)Connectto (LaunchPad) MDC(EVM)Connectto (LaunchPad) GND(EVM)Connectto GND(LaunchPad)USB-2-MDIOToolSetupand February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's GuideFigure4.
4 MSP430F5 LaunchPadConnections,MDC(GreenWire, ),MDIO(BrownWire, ),and GND(BlackWire) Use7 SNLU197 February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's USB-2-MDIOGUI allowscommunicationto 32 differentPHYIDs, registeraccessto bothextendedregisterand standardregisters,and abilityto savedatareadand run scripttext the GUI to properlyworkwith the MSP430 LaunchPad, USB-2-MDIO softwarewill needto be installedon the Greenand Red LEDswill be fully illuminatedwithoutblinkingif it has the deviceis alreadyflashed.
5 You may skip the the MSP430 LaunchPadrequiresthe MSP430 Flashertool whichcan be MSP430 Flashertool shouldbe extractedinto a foldercalledMSP430 Flasherinsideof the foldercontainingthe batchscriptexecutedin step 3 properlyflashthe MSP430G2 SeriesLaunchPad,use the followingsteps:1. ConnectMSP430 LaunchPadto user s computerusinga In the directorywherethe USB-2-MDIO tool was installed, \MSP430 Firmware\anddoubleclickto doubleclickto run the The batchfile will executeand a commandwindowwill Afterthe programsuccessfullyexecutes,the MSP430 LaunchPadGreenand Red LEDswill be they are not in this state,the MSP430 LaunchPadhas not Repeatsteps1 through5 for MSP430F5 SeriesLaunchPad,but :MSP430driversare requiredto properlyconnectthe MSP430 LaunchPadto a user be downloadedhere.
6 February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's USB-2-MDIOGUI1. Unzipand installthe WindowsStartmenuor the SelecttheSettingstab locatedin the SelectCOMP ortand pick the port that the LaunchPadis connectedto fromthe :To find whatport the LaunchPadis connectedto go to DeviceManageron yourcomputerand look underPorts. If the deviceis not foundunderPorts, pleaseensurethat the driversspecifiedaboveare installedon the user s SelectBaudRatefor ClickonPHYIDand selectPHYID desiredfromdropdownlist foundon the MainPagenext toPortStatus.
7 (a) If the PHYID is unknown,you may leavethis box unselectedand use theFindPHYID optionintheFiledrop-downmenuaftercomplet ingstep 7 FindPHYID Function7. ClickOpenPortto connectto the The statusbar underPort Statusshouldbe fully greenif the connectionis To end communicationwith the port, Use9 SNLU197 February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's GuideFigure6. a PHYID is not knownbeforeoperation,you can openthe communicationport and run theFindPHYID commandfromtheFilemenuusingthe followingsteps:1.
8 Ensurethe communicationport is openon the Navigateto theFilemenuand The GUI will attemptto ping the PHYconnectedby sweepingthroughall 32 A list will beginto appearin the dialogbox of eachPHYID and the statusof If a connectedPHYresponds,the dialogbox will indicatethat the PHYis If a PHYdoesnot respondat the pingedPHYID, the dialogbox will indicatethat the PHYID is ScriptFileA scriptfile can be run to readand writeto the allowsfor greaterflexibilityandimprovedefficiencys incemultiplereadsand writemay be an example,a scriptcan beusedto initiateand test 100 Mlink internallyin the performthe DP83867100 Mtest,performthe followingstepswith in the[installdir]
9 /USB2 NavigatetoFileand A dialogbox opensand allowsthe userto to Oncethe text file is selected,the scriptautomaticallyrunsand the resultsare printedin the Additionalscriptsmay be createdand executedusingsteps1 through3 abovefor all TexasInstruments' February2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedUSB-2-M DIOUser's an writtenin a txt file usingany basictext examplescriptcan also be foundin the USB-2-MDIOGUI in theHelpmenuoptiontitledExampleScript// Thisis how you makea scriptsmuststartwith'begin'begin// To reada register,writethe 16bitregisteraddressin hex (from0000to FFFF)// The scriptsare not casesensitive// Exampleto readregisters0x0001,0x000A,and 0x00170001000A0017// To writea register,writethe 16bitregisteraddressin hex (from0000to FFFF)
10 // followedby the 16bitvaluein HEX you desireto writeto the register(from0000to FFFF)// Exampleto write0x2100to 0x0000// Exampleto write0x0110to register0x00160000210000160110// As shownabove,the registeraddressdoesnot haveto be separatedby a spacefromthe// a spaceis desired,only1 spaceshouldby insertedbetween// registeraddressand the You mustend the scriptby adding'end'onceyou are be savedat any time usingthe followingsteps:1. ClickFileand A box opensto allowthe userto selectthe desiredlocationto savethe datain the dialogbox andnamethe ClicktheExtendedRegisterdrop-downmenuand selectYes.
