所需E币: 4
时间: 2019-12-24 21:19
大小: 378.45KB
TheMCP2515easessoftwaredevelopmentandshortensthelearningcurvefortheMCP2515byprovidingthreePCsoftwaretemplateswithdifferentfunctionsthatCANnodedesignerscanuseasneeded.Byusingoneofthetemplates,theusercanread,display,andmodifyalloftheregistersintheMCP2515downtothebitlevel.Anothertemplatecandemonstratebasicinput/outputfunctionalitybyallowingmessagestobetransmittedandreceivedontheCANbus.Finally,thethirdtemplateisademonstrationtemplatethat,byusingapreprogrammedPICmicro®microcontroller(MCU),implementsatwonodeCANbusthatgetstheuser“onthebus”intheshortestamountoftimeandeffort.Thisapplicationnoteservesasathree-parttutorialfortheMCP2515anddiscussesthethreesoftwaretemplatesindetailaswellastheimportantmenuitems.Figure1isablockdiagramoftheMCP2515board.TheboardisatwonodeCANsystemthatcanbeusedtogethertoimplementasimplebusorcanbeconnectedtoanexternalbususingtheoff-boardMAN873UsingtheMCP2515CANDeveloper’sKitconnector.Forthepurposesofthisapplicationnote,Author:PatRichardstheleftnodewillbereferredtoasthePCnodeandtheMicrochipTechnologyInc.rightnodewillbereferredtoasthePICmicronode.Bothnodesareidenticalexceptforthecontroll……