基于中断的PIC18主LIN驱动器,在C增强型USART
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