
Here is a app note from Atmel with a comprehensive reference for implementing the Local Interconnect Network on a ATmega, or ATtiny microcontroller.
LIN is a slow sub-network of the CAN bus used to integrate sensors, and devices, in modern-day cars. One master can interface with up to 16 slaves at a maximum bandwidth of 19.2 Kb/s. The basic functionality is as follows, a master starts communication and a per-scheduled slave responds. The scheduling is stored on tables inside both the master and slave.
This app note is a comprehensive guide on how to write firmware for ATmega32/64/M1/C1 or ATtiny167 devices with hardware LIN transceivers.
