English
Language : 

AN4101 Datasheet, PDF (1/21 Pages) STMicroelectronics – LIN communication with STM8A-DISCOVERY
AN4101
Application note
LIN communication with STM8A-DISCOVERY
Note:
Introduction
The purpose of this application note is to describe the LIN demonstration that is delivered
with the STM8A-DISCOVERY.
The software running in the STM8AF microcontroller configures the STM8AF board as a
basic LIN master node, while the software in the STM8AL microcontroller sets the STM8AL
board as a basic LIN slave node. Each board is connected through a single wire LIN bus,
thanks to the LIN transceivers embedded in the L99PM62GXP device.
This document is organized as follows:
■ Chapter 2 gives a short introduction to the LIN bus standard.
■ Chapter 3 briefly describes the LIN transceiver of the L99PM62GXP.
■ Chapter 4, Chapter 5 and Chapter 6 describe the different UART implementations found
in the STM8AL and STM8AF microcontroller families, and explain the principle of a basic
software LIN driver in master or slave mode.
■ Chapter 7 describes the demonstration software delivered with the STM8A-DISCOVERY,
which uses some of the basic LIN drivers from Chapter 4 and Chapter 5.
You can also refer to AN4178 for an example of the STM8AF board in slave mode, using the
driver described in Chapter 6.
All these examples can be used as references for understanding how to configure USART
and LINUART, and for implementing your own LIN driver in the STM8AF and STM8AL
microcontrollers.
A LIN Software Package and a J2602 Software Package are available for free from
STMicroelectronics, as detailed in Chapter 8.
Table 1.
Applicable products
Type
Microcontrollers
Part numbers
– STM8AF5xxx, STM8AF6x26/4x/66/68,
STM8AF6x69/7x/8x/9x/Ax
– STM8AL313x, STM8AL314x, STM8AL316x,
STM8AL3L4x, STM8AL3L6x
– STM8A-DISCOVERY
December 2012
Doc ID 23127 Rev 1
1/21
www.st.com