TheMCP2515easessoftwaredevelopmentand
shortensthelearningcurvefortheMCP2515by
providingthreePCsoftwaretemplateswithdifferent
functionsthatCANnodedesignerscanuseasneeded.
Byusingoneofthetemplates,theusercanread,
display,andmodifyalloftheregistersintheMCP2515
downtothebitlevel.Anothertemplatecan
demonstratebasicinput/outputfunctionalityby
allowingmessagestobetransmittedandreceivedon
theCANbus.Finally,thethirdtemplateisa
demonstrationtemplatethat,byusinga
preprogrammedPICmicro
®
microcontroller(MCU),
implementsatwonodeCANbusthatgetstheuser“on
thebus”intheshortestamountoftimeandeffort.
Thisapplicationnoteservesasathree-parttutorialfor
theMCP2515anddiscussesthethreesoftware
templatesindetailaswellastheimportantmenuitems.
Figure1isablockdiagramoftheMCP2515board.The
boardisatwonodeCANsystemthatcanbeused
togethertoimplementasimplebusorcanbe
connectedtoanexternalbususingtheoff-boardMAN873UsingtheMCP2515CANDeveloper’sKitconnector.Forthepurposesofthisapplicationnote,Author:PatRichardstheleftnodewillbereferredtoasthePCnodeandtheMicrochipTechnologyInc.rightnodewillbereferredtoasthePICmicronode.Bothnodesareidenticalexceptforthecontroll
暂无评论