Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN4101 Scheda tecnica(PDF) 12 Page - STMicroelectronics

Il numero della parte AN4101
Spiegazioni elettronici  LIN communication with STM8A-DISCOVERY
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4101 Scheda tecnica(HTML) 12 Page - STMicroelectronics

Back Button AN4101 Datasheet HTML 8Page - STMicroelectronics AN4101 Datasheet HTML 9Page - STMicroelectronics AN4101 Datasheet HTML 10Page - STMicroelectronics AN4101 Datasheet HTML 11Page - STMicroelectronics AN4101 Datasheet HTML 12Page - STMicroelectronics AN4101 Datasheet HTML 13Page - STMicroelectronics AN4101 Datasheet HTML 14Page - STMicroelectronics AN4101 Datasheet HTML 15Page - STMicroelectronics AN4101 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 21 page
background image
Implementing a LIN slave node with STM8AL board
AN4101
12/21
Doc ID 23127 Rev 1
6
Implementing a LIN slave node with STM8AL board
6.1
STM8AL microcontroller USART features
USART does not embed any particular LIN features. A LIN slave node can be implemented
by building a break detection based on a 00h data reception with a framing error (FE flag).
An external resonator or crystal is required in order to meet the ±1.5% maximum clock
deviation allowed by the LIN standard.
6.2
Software algorithm
The software algorithm described below is implemented in the demonstration software of
the STM8A-DISCOVERY (STM8AL microcontroller).
6.2.1
LIN state machine
The LIN task is called regularly by the main routine. This task is a basic LIN slave driver that
implements a state machine with the following states:
●
Idle
●
Break
●
SynchField
●
Identifier
●
DataReception
●
DataTransmission
6.2.2
LINUART interrupt
The LINUART interrupt reads and clears the hardware flags in the LINUART registers, and
sets the appropriate software flags to allow transitions in the basic LIN driver state machine:
●
BreakReceived, which is set if both of the following conditions are met:
–
a data byte with the value 00h is in the data register (DR)
–
the framing error flag (FE) is set
●
DataReceived, which is set if the RXNE flag is set
●
ReceptionError, which is set if the framing error flag (FE) or the overrun flag (OR) is
set



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com