资料介绍
The LIN protocol was originally designed by a group of
European carmakers to be used as a low-cost, short dis-
tance, low-speed network for automotive applications
(see Appendix C: “References”).
The main characteristics of the LIN protocol are:
• Serial communication
• Single master, multiple slave concept
• Low-cost, one-wire implementation
• Speed up to 20 Kbit/s
• Self-synchronization (on the slave side)
• Ensured latency time in transmission
This application note presents a Microchip Application
Maestro™ compatible interrupt driven implementation
of the Master Side Driver of the LIN protocol in a
PIC18F device in C language (Microchip and HI-TECH
‘C’ compatible), which takes advantage of the new
features provided by the PIC18 Enhanced USART
module. AN891
Interrupt-based PIC18 Master LIN Driver in C
for Enhanced USART
Author: Caio Gübel FILES
Microchip Technology Inc. The implementation presented in this application note
is based on the LIN Specification Package Version 1.3.
This specification adheres to Microchip’s Application
The LIN protocol was originally designed by a group of Maestro standard and contains the following files:
European carmakers to be used as a low-cost, short dis- ELINMInt.c