资料介绍
The Local Interconnect Network (LIN), as described in
the LIN v1.2 specification, is a multi-layered system. The
levels vary from the physical interface up to the high
level application. This application note focuses on the
implementation of a low level driver, essentially an inter-
face between the physical hardware connection and the
higher level application firmware. Specifically, this appli-
cation note presents a generic ‘bit banged’ LIN slave
driver for both the PIC16 and PIC18 family of PICmicro
®
microcontrollers.
There are many details to this firmware design; how-
ever, this application note focuses mainly on how to set
up and use the driver. Therefore, the LIN system
designer should be able to get an application running
on LIN quickly without spending significant time on the
details of LIN.
Some information about the firmware design is pro-
vided at the end of this document for the curious
designer who wants to learn a little more about LIN and
this driver implementation.
The reader should note information in this application
note is presented with the assumption that the reader
is familiar with LIN specification v1.2, the most current
specification available at the time this document was
written. Therefore, not all details about LIN are dis-
cussed. Refer to the References section for additional
information. AN239
Bit Banged LIN Slave Node for PIC16 & PIC18
Author: Ross Fosler Process Time
Microchip Technology Inc. Available process time is dictated predominately by bit
rate, clock frequency, and code execution. Since code
INTRODUCTION execution varies depending on the state within the LIN
driver and there being many states, generating a single
The Local Interconnect Network (LIN), as described in