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.
|
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 |