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)and RS-485 PHYASKOur E2E Experts 50-PinConnectorfor ExternalInterfaceWithMIIWEBENCH CalculatorToolsand RMIIE thernetPHY ExpansionConnectorsfor AccesstoCommunication,Analog-to-DigitalC onverter(ADC)
2 ,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: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)
3 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) 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).
4 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: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).
5 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, and speedSN65 HVD256 Turbo-CANtransceiverfor high dataratesandCANlargernetworks(meetsISO 11898-2requirements)RS485 Half duplextransceiverup to 250 kbpsPowersupplySinglesupply- V, interfaceconnector.
6 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,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.
7 10/100 Ethernetinterfacewith internalMACand PHY2. Optional10/100 Ethernetinterfacewith internalMACand externalPHY the externalPHYisinterfacedwith the boardis poweredfroman external, TPS62177(28-V, )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).
8 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: 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)
9 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,Tiva C Seriesmicrocontrollersofferthe advantagesof ARM'swidelyavailabledevelopmenttools,Sys tem-on-Chip(SoC)infrastructure,and a ,thesemicrocontrollersuse ARM'sThumb -compatibleThumb-2instructionset to reducememoryrequirementsand ,the TM4C129 XNCZAD microcontrolleris code-compatibleto all membersof theextensiveTiva C Series,providingflexibilityto fit the MCUare as follows: Performance ARMC ortex-M4 Fprocessorcore,120-MHzoperation;150-Dhry stonemillioninstructionspersecond(DMIPS) performance,1024-KBflashmemory 256-KBsingle-cyclesystemSRAM,6KB of electricallyerasableprogrammableread-onl ymemory(EEPROM) Communicationinterfaces Eightuniversalasynchronousreceiversand transmitters(UARTs);four quadsynchronousserialinterface(QSSI)modu leswith bi-, quad-,and advancedsynchronousserialinterface(SSI)s upport.
10 Ten Inter-IntegratedCircuit(I2C)moduleswith four transmissionspeeds,includinghigh-speedmo de; A maleto B male(A/B)controllers;10/100 EthernetMACand EthernetPHYwithIEEE1588 PTPhardwaresupport;and a with host,device,and OTGcompatibilitywith alow-pininterface(ULPI)optionand link powermanagement(LPM)support Analogsupport Two 12-bitADCmodules,eachwith a maximumsamplerate of one millionsamplesper second One JTAG modulewith an integratedARMserialwire debug(SWD) 212-Ballgrid array(BGA)package Operatingrange(ambient) Industrial( 40 C to 85 C) temperaturerange Extended( 40 C to 105 C) TM4C129 Xsupports10 boardis designedto connectdirectlytoan microcontrollercontainsa fully integratedEthernetMACand integrationcreatesa simple,elegant,and availablefor boththe unmanagedinternetprotocol(uIP)
