实现与PIC18单片机的USART的LIN主节点驱动程序
Likemostnetworkprotocols,theLocalInterconnect
Network(LIN)asdescribedintheofficialspecification
isamulti-layeredsystem.Thelevelsvaryfromthe
physicalinterfaceuptothehighlevelapplication,with
logicaldataconnectionsbetweennodesatvariouslay-
ers.Thisapplicationnotefocusesontheimplementa-
tionofaninterfacebetweenthephysicalinterfaceand
higherlevelapplicationfirmware,essentiallyahard-
waredriver(theshadedblocksinFigure1).Specifi-
cally,thisdocumentpresentsaMasternodedriverthat
isdesignedforPIC18microcontrollerswithastandard
USARTmodule.AN235ImplementingaLINMasterNodeDriveronaPIC18MicrocontrollerwithUSARTAuthor:RossM.FoslerUsersinterestedintheimplementationofLINSlavenodes(notdiscussedinthisdocument)areMicrochipTechnologyInc.encouragedtovisittheMicrochipwebsite(www.microchip.com)foradditionalapplicationnotesINTRODUCTIONandotherinformation.Likemostnetworkprotocols