We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!

AN891

Title
Title
Interrupt-based PIC18 Master LIN Driver in C for Enhanced USART
Name
Name
AN891
Date
Date
06/24/2015
Application Categories
Application Categories
Automotive / Network Systems - LIN
Peripheral / LIN
Product Categories
Product Categories
8-bit MCU
Description
Description
The LIN protocol was originally designed by a group of European carmakers to be used as a low-cost, short distance, 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.

Files

Title Title Download Date Size
AN891 Source Code - Interrupt-based PIC18 Master LIN Driver in C for Enhanced USART 23.5 KB 06/23/2015 AN891 Source Code - Interrupt-based PIC18 Master LIN Driver in C for Enhanced USART Download 06/23/2015 23.5 KB

Silicon Products

Title Product Title
MCP201
LIN Transceiver
MCP201 LIN Transceiver