所需E币: 4
时间: 2019-12-24 21:19
大小: 418KB
TheEnhancedControllerAreaNetwork(ECAN)mod-ule,offeredbymanyofthePIC18FfamilyofPICmicro®microcontrollers,isthelatestenhancementtotheexist-inglegacyCANmodule.DevicessuchasthePIC18C658/858andPIC18F248/258/448/458usethelegacyCANmodule.ECANoffersmanyenhancementsoverthelegacyCANmoduleintermsofmoretransmit/receivebuffers,acceptancefilters,andhardwareFIFOoperation.Atthesametime,theECANmoduleisfullybackwardcompatiblewiththelegacyCANmodule.ECANprovidesthreemodesofoperation–Mode0,Mode1andMode2.Mode0isfullybackwardcompat-iblewiththelegacyCANmodule.Applicationsdevel-opedforthelegacyCANmodulewouldcontinuetoworkwithoutanychangeusingECAN.Mode1istheEnhancedLegacymodewithincreasedbuffersandfil-ters.Mode2hasthesameresourcesasMode1,butwithahardwaremanagedreceiveFIFO.Givenitsfea-turesandflexibility,ECANwouldproveusefultomanyCAN-basedapplications.Thisapplicationnoteimplements‘C’routinestoaccessallfeaturesoftheECANmodule.ThisdocumentdoesnotdescribeECANandtherelatedPIC18Ffamilyindetail.ReadersareencouragedtoreadthePIC18F6585/6680/8585/8680devicedatasheet(DS30491)formoreinformation.AN878PIC18CECAN‘C’RoutinesAuthors:CaioGübelandNileshRajbhartiOVERVIEWOFECANMODULEMicrochipTechnology,Inc.FollowingarethemainfeaturesoftheECANmodule:FullybackwardcompatiblewiththelegacyCANINTRODUCTIONmoduleThreefunctionalmodes:TheEnhancedControllerAreaNetwork(ECAN)mod--Mode0……