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

利用MCP2515的开发工具包

利用MCP2515的开发工具包