công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN4101 bảng dữ liệu(PDF) 9 Page - STMicroelectronics

tên linh kiện AN4101
Giải thích chi tiết về linh kiện  LIN communication with STM8A-DISCOVERY
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4101 bảng dữ liệu(HTML) 9 Page - STMicroelectronics

Back Button AN4101 Datasheet HTML 5Page - STMicroelectronics AN4101 Datasheet HTML 6Page - STMicroelectronics AN4101 Datasheet HTML 7Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 21 page
background image
AN4101
Implementing a LIN master node with STM8AF board
Doc ID 23127 Rev 1
9/21
4
Implementing a LIN master node with STM8AF board
4.1
STM8AF microcontroller LINUART and USART features for
LIN master
The LINUART and USART inside the STM8AF microcontroller implement both generation
and detection of LIN Breaks.
LIN Break generation allows sending of 13-bit Breaks on the TX pin, thanks to the LIN
protocol requirement.
LIN Break detection allows detection of feedback from the LIN transceiver, before the Synch
Field (55h data byte) transmission is requested on the TX pin. There is a dedicated flag,
LBDF, which may or may not trigger the receive interrupt depending on the LBDIE bit
configuration.
4.2
Software algorithm
The software algorithm described below is implemented in the demonstration software of
the STM8A-DISCOVERY (STM8AF microcontroller). Refer to Section 7.2: STM8AF
software description for details.
4.2.1
LIN state machine
The LIN task is called regularly by the main routine. This task is a basic LIN master driver
that implements a state machine with the following states:
●
Idle
●
Break
●
SynchField
●
Identifier
●
DataReception
●
DataTransmission
4.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 the break detection flag (LBDF) is set in the interrupt
routine
●
DataReceived, which is set if the RXNE flag is set
●
ReceptionError, which is set if the case 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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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