PIC18C ECAN ‘C’例程

上传:lecture69136 浏览: 14 推荐: 0 文件:pdf 大小:418.00 KB 上传时间:2022-10-21 22:33:26 版权申诉

TheEnhancedControllerAreaNetwork(ECAN)mod-

ule,offeredbymanyofthePIC18FfamilyofPICmicro

®

microcontrollers,isthelatestenhancementtotheexist-

inglegacyCANmodule.Devicessuchasthe

PIC18C658/858andPIC18F248/258/448/458usethe

legacyCANmodule.

ECANoffersmanyenhancementsoverthelegacy

CANmoduleintermsofmoretransmit/receivebuffers,

acceptancefilters,andhardwareFIFOoperation.At

thesametime,theECANmoduleisfullybackward

compatiblewiththelegacyCANmodule.

ECANprovidesthreemodesofoperation–Mode0,

Mode1andMode2.Mode0isfullybackwardcompat-

iblewiththelegacyCANmodule.Applicationsdevel-

opedforthelegacyCANmodulewouldcontinueto

workwithoutanychangeusingECAN.Mode1isthe

EnhancedLegacymodewithincreasedbuffersandfil-

ters.Mode2hasthesameresourcesasMode1,but

withahardwaremanagedreceiveFIFO.Givenitsfea-

turesandflexibility,ECANwouldproveusefultomany

CAN-basedapplications.

Thisapplicationnoteimplements‘C’routinestoaccess

allfeaturesoftheECANmodule.Thisdocumentdoes

notdescribeECANandtherelatedPIC18Ffamilyin

detail.Readersareencouragedtoreadthe

PIC18F6585/6680/8585/8680devicedatasheet

(DS30491)formoreinformation.AN878PIC18CECAN‘C’RoutinesAuthors:CaioGübelandNileshRajbhartiOVERVIEWOFECANMODULEMicrochipTechnology,Inc.FollowingarethemainfeaturesoftheECANmodule:FullybackwardcompatiblewiththelegacyCANINTRODUCTIONmoduleThreefunctionalmodes:TheEnhancedControllerAreaNetwork(ECAN)mod--Mode0

上传资源
用户评论