전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN4101 데이터시트(PDF) 12 Page - STMicroelectronics

부품명 AN4101
상세설명  LIN communication with STM8A-DISCOVERY
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4101 데이터시트(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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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