Transcription of Compact CAN-to-Ethernet Converter Using 32-Bit …
1 5 LEDsUSB50-Pin ConnectorDebug ConnectorMicrocontrollerTM4C129 XNCZADP ower V to VTPS62177 DQCCANSN65 HVD256 DRS485 ESDTPD4E1U06 EthernetConnector25-MHz CrystalMII/RMII/SPI/I2C/UART interfacesEMAC+PHYOsSpare 10-PinADC I/Ps and digital I/SN65 HVD72 DRTI DesignsCompactCAN-to-EthernetConverterUs ing32-BitARM Cortex -M4 FMCUTI DesignsDesignFeaturesTI Designsprovidethe foundationthat you need TM4C129 XNCZAD32-BitAdvancedRISC includingmethodology,testing,and designfiles toMachines(ARM)Cortex-M4 FMicrocontrollerquicklyevaluateand customizethe Designs(MCU)Basedhelpyouaccelerateyourti me to market. Integrated10/100 EthernetMediaAccessControl(MAC)and PhysicalInterfaceDevice(PHY)DesignResour ces 10/100 EthernetMACWithAdvancedIEEE1588 PrecisionTimeProtocol(PTP)Hardwareand BothToolFolderContainingDesignFilesTM4C1 29 XNCZADM ediaIndependentInterface(MII)and ReducedTPD4E1U06 ProductFolderMII (RMII)SupportSN65 HVD256 DProductFolder Provisionto Connectto ExternalBoardsforTPS62177 ProductFolderIsolatedCommunicationInterf aceand PowerOverSN65 HVD72 DRProductFolderEthernet(POE)INA196 AIDBVRP roductFolder On-BoardNon-IsolatedControllerAreaNetwor k(CAN)
2 And RS-485 PHYASKOur E2E Experts 50-PinConnectorfor ExternalInterfaceWithMIIWEBENCH CalculatorToolsand RMIIE thernetPHY ExpansionConnectorsfor AccesstoCommunication,Analog-to-DigitalC onverter(ADC),FeaturedApplicationsand GeneralPurposeInputand Output(GPIO)Interfaces IndustrialMotorDrivesand IndustrialAutomation 1024-KBFlashMemoryand 256-KBSingle-Cycle CircuitBreakers,ProtectionRelays,and PanelSystemSRAMM ountMulti-FunctionPowerand EnergyMeters SubstationAutomationProducts:RemoteTermi nalUnit (RTU),ProtectionRelay,IntelligentElectro nicDevices(IEDs),Converters,and Gateways IndustrialRemoteMonitoring.
3 RemoteI/O and DataLoggersAll trademarksare the propertyof January2015 RevisedFebruary2015 CompactCAN-to-EthernetConverterUsing32-B itARM Cortex -M4 FMCUS ubmitDocumentationFeedbackCopyright 2015, IMPORTANTNOTICEat the end of this TI referencedesignaddressesauthorizeduse, intellectualpropertymattersand otherimportantdisclaimersand simpleand effectivedesignmakesEthernetthe mostpopularnetworkingsolutionat the physicalanddatalink levelsof the OpenSystemsInterconnection(OSI) speedoptionsand a varietyof mediatypesto choosefrom,Ethernetis efficientand addition,the low cost of EthernethardwaremakesEthernetan attractiveoptionfor opportunityto useopenprotocolssuchas TCP/IPoverEthernetnetworksoffersa high levelof resulthas beenan ongoingshift to the use of Ethernetfor CAN-EthernetConverteris usefulin the field of industrialdrivesmonitoringand controlas well assupervisorycontroland dataacquisition(SCADA)
4 Samehardwarecan be usedeitheras aCAN-Ethernetgatewayor as a CAN-Ethernetbridgewith the changesin the CAN-Ethernetgatewayis usefulfor monitoringremoteCANnetworksoverEtherneto r localareanetwork(LAN).TheCAN-Ethernetbri dgeis usefulfor the transparentcouplingof CANnetworksthroughthe internetor referencedesignplatformdemonstratescapab ilitiesof the designsupports10/100 Base-Tand is compliantwith the singlepowersupply( an on-boardregulatorof V).CANstandard:The CANbus was developedby BOSCHas a multi-master,messagebroadcastsystemthat specifiesamaximumsignalingrate of 1 traditionalnetwork,suchas USBor ethernet ,CANdoesnotsendlargeblocksof datapoint-to-pointbetweenthe nodesunderthe supervisionof a centralbus a CANnetwork,manyshortmessagesare broadcastto the entirenetwork,whichprovidesdataconsisten cyin everynodeof the originallydesignedfor the automotiveindustry,CANhas becomea popularbus in industrialapplicationsas cableand termination.
5 The High-SpeedISO 11898standardspecificationsare givenfor a maximumsignalingrate of 1 Mbpswitha bus lengthof 40 metersand a maximumof 30 standardalso recommendsa maximumun-terminatedstub lengthof m. The cableis specifiedto be a shieldedor unshieldedtwisted-pairwitha 120- characteristicimpedance(ZO). The standarddefinesa singleline of twisted-paircablewith thenetworktopologyas shownin Figure1. The cableis terminatedat bothendswith 120- resistors,whichmatchthe characteristicimpedanceof the line to ISO 11898,avoidplacingRLon a nodebecausethe bus lineslose terminationif the nodeis disconnectedfromthe Detailsof a TypicalCANNode2 CompactCAN-to-EthernetConverterUsing32-B itARM Cortex -M4 FTIDU706A January2015 RevisedFebruary2015 MCUS ubmitDocumentationFeedbackCopyright 2015, Built-in10/100 EthernetMACand PHYE thernet Optionfor interfacingexternal10/100 EthernetPHYE thernetLEDsActivity,link.
6 And speedSN65 HVD256 Turbo-CANtransceiverfor high dataratesandCANlargernetworks(meetsISO 11898-2requirements)RS485 Half duplextransceiverup to 250 kbpsPowersupplySinglesupply- V, interfaceconnector:50-pinwith an optionfor powerinput3 TIDU706A January2015 RevisedFebruary2015 CompactCAN-to-EthernetConverterUsing32-B itARM Cortex -M4 FMCUS ubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporated5 LEDsUSB50-Pin ConnectorDebug ConnectorMicrocontrollerTM4C129 XNCZADP ower V to VTPS62177 DQCCANSN65 HVD256 DRS485 ESDTPD4E1U06 EthernetConnector25-MHz CrystalMII/RMII/SPI/I2C/UART interfacesEMAC+PHYOsSpare 10-PinADC I/Ps and digital systemblockdiagramof the designis shownin Tiva TM4C129 XNCZADis an ARMC ortex-M4-basedmicrocontrollerwith a 1024-KBflashprogrammemory,256-KBSRAM.
7 And 120-MHzoperation;USBhost,device,and on-the-go(OTG);Ethernetcontroller,integr atedEthernetPHY,and hibernationmodule;and a widerangeof TM4C129 XNCZAD microcontrollerdatasheetfor deviceoffers140 GPIO sand the internalmultiplexerallowsdifferentperiph eralfunctionsto be assignedto Tiva PinMuxUtilitycan be usedto quicklydeveloppin assignmentsand the TM4C129 XNCZAD devicesupportsthe followingEthernetinterfaces:1. 10/100 Ethernetinterfacewith internalMACand PHY2. Optional10/100 Ethernetinterfacewith internalMACand externalPHY the externalPHYisinterfacedwith the boardis poweredfroman external, TPS62177(28-V, )
8 Is usedin this designto V fromthe Cortex -M4 FTIDU706A January2015 RevisedFebruary2015 MCUS ubmitDocumentationFeedbackCopyright 2015, designusesthe SN65 HVD72 DRdeviceas the of devicesare half-duplextransceiversdesignedfor RS-485databus a ,the transceiversare fully compliantwith the devicefeaturesa widecommon-modevoltagerangemakingthe devicesuitablefor multi-pointapplicationsoverlong optimizedfor signalingratesup to 250 SN65 HVD256 Turbo-CANtransceiveris usedfor high dataratesand largenetworks(the devicemeetsthe requirementsof ISO 11898-2). furtheruse as PCBP hysicalLayoutThis referencedesignhas beendesignedin a small-formfactor,four-layerPCBwith a dedicatedgroundand microcontrollerssupportthe JointTestActionGroup(JTAG)interfacefor designercan placeheaderson the boardand connectthemto the JTAG pins on thechip (seethe datasheetfor pin out information).
9 The use of an externalJTAG programmeris requiredtoconnectthe PC to the Tiva LaunchPadcan also be usedas an Tiva C SeriesARMC ortex-M4microcontrollersprovidetop performanceand productfamilyis positionedfor cost-effectiveapplicationsrequiringsigni ficantcontrolprocessingandconnectivityca pabilitiessuchas: Networkappliances,gateways,and adapters Remoteconnectivityand monitoring Securityand accesssystems Human-machineinterface(HMI)controlpanels Factoryautomationcontrol Motioncontroland powerinversion Electronicpoint-of-sale(POS)displays Smartenergyand smartgrid solutions IntelligentlightingcontrolThe providedCANinterfacecan be usedfor the followingapplications.
10 Motorcontrol Powerinverters Industrialautomation Buildingautomationnetworks Automotiveapplications5 TIDU706A January2015 RevisedFebruary2015 CompactCAN-to-EthernetConverterUsing32-B itARM Cortex -M4 FMCUS ubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedCircuit Designand ComponentSelectionThe CAN-Ethernetconverteris basedon the TM4C129 XNCZAD device,a programthat runson this microcontrolleruseslwIP (lightweightIP) a widelyused,open-sourceTCP/IPstackdesigne dfor originallydevelopedby AdamDunkelsat the SwedishInstituteof ComputerScienceand is now developedandmaintainedby a worldwidenetworkof C Seriesmicrocontrollersintegratea largevarietyof rich communicationfeaturesto enablea newclassof highlyconnecteddesignswith the abilityto allowcritical,real-timecontrolbetweenper formanceand microcontrollersfeatureintegratedcommuni cationperipheralsalongwith otherhigh-performanceanalogand digitalfunctionsto offera strongfoundationfor manydifferenttargetuses,spanningfromHMI to addition.