1. 首页
  2. 课程学习
  3. 嵌入式
  4. 基于中断的PIC18主LIN驱动器,在C增强型USART

基于中断的PIC18主LIN驱动器,在C增强型USART

上传者: 2022-10-22 07:48:01上传 PDF文件 355.61 KB 热度 8次

TheLINprotocolwasoriginallydesignedbyagroupof

Europeancarmakerstobeusedasalow-cost,shortdis-

tance,low-speednetworkforautomotiveapplications

(seeAppendixC:“References”).

ThemaincharacteristicsoftheLINprotocolare:

•Serialcommunication

•Singlemaster,multipleslaveconcept

•Low-cost,one-wireimplementation

•Speedupto20Kbit/s

•Self-synchronization(ontheslaveside)

•Ensuredlatencytimeintransmission

ThisapplicationnotepresentsaMicrochipApplication

Maestro™compatibleinterruptdrivenimplementation

oftheMasterSideDriveroftheLINprotocolina

PIC18FdeviceinClanguage(MicrochipandHI-TECH

‘C’compatible),whichtakesadvantageofthenew

featuresprovidedbythePIC18EnhancedUSART

module.AN891Interrupt-basedPIC18MasterLINDriverinCforEnhancedUSARTAuthor:CaioGübelFILESMicrochipTechnologyInc.TheimplementationpresentedinthisapplicationnoteisbasedontheLINSpecificationPackageVersion1.3.ThisspecificationadherestoMicrochip’sApplicationTheLINprotocolwasoriginallydesignedbyagroupofMaestrostandardandcontainsthefollowingfiles:Europeancarmakerstobeusedasalow-cost,shortdis-ELINMInt.c

用户评论