| Zakładka z wyszukiwarką danych komponentów |
|
AN4178 Arkusz danych(PDF) 4 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4178 Arkusz danych(HTML) 4 Page - STMicroelectronics |
|
4 / 13 page ![]() Implementing a LIN master node with STM8AF board AN4178 4/13 Doc ID 23745 Rev 1 2 Implementing a LIN master node with STM8AF board 2.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. 2.2 Software algorithm The software algorithm described below is implemented in the STM8AF master software. Refer to Section 4.2: STM8AF LIN master software description. 2.2.1 LIN state machine The LIN task is called regularly by the main routine. This task is a basic LIN master driver, implementing a state machine with the following states: ● Idle ● Break ● SynchField ● Identifier ● DataReception ● DataTransmission 2.2.2 LINUART interrupt The LINUART interrupt reads and clears the hardware flags in the LINUART registers, and sets 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 ● 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 |
|
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| 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 |