Electronic Components Datasheet Search
  English  ▼

X  

AN4101 Datasheet(PDF) 15 Page - STMicroelectronics

Part # AN4101
Description  LIN communication with STM8A-DISCOVERY
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4101 Datasheet(HTML) 15 Page - STMicroelectronics

Back Button 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 AN4101 Datasheet HTML 17Page - STMicroelectronics AN4101 Datasheet HTML 18Page - STMicroelectronics AN4101 Datasheet HTML 19Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 21 page
background image
AN4101
LIN demonstration software
Doc ID 23127 Rev 1
15/21
lin
This module contains the LIN driver state machine described in Section 4.2.1: LIN state
machine.
adc
This module contains the ADC initialization routine, and the function for reading a converted
value on the ADC channel 8, mapped on the PE7 port.
can
This module contains the CAN communication functions which are used only by a hidden
test mode, and are not used in this demonstration software.
stm8s_it
This module contains the following interrupt routines:
●
External interrupt of the port E routine, and update of the UserButton1/UserButton2
software flag, when a falling edge is detected on the PE2/PE1 ports
●
CAN receive interrupt routine, which is not activated in the demonstration software (test
mode only)
●
LINUART receive/error interrupt routine, which implements the algorithm described in
Section 4.2.2: LINUART interrupt
●
ADC2 interrupt routine, which reads the converted value and stores it in the
Conversion_Value variable
●
TIM4 interrupt routine, which sets timebase ticks for LIN, CAN (not used in the
demonstration software), application, and L99PM62GXP watchdog refresh
7.2.3
STM8S/A standard peripheral library modules
The demonstration software is based on the STM8S/A standard peripheral library version
2.1.0, dated November 2011.
The following driver modules are used:
●
stm8s_exti.c, for the external interrupts on port E (USER1 and USER2 buttons)
●
stm8s_adc2.c, for converting the RV1 trimmer value
●
stm8s_can.c, for the CAN test mode (not used in the demonstration software)
●
stm8s_clk.c, for configuring clocks and enabling HSE
●
stm8s_gpio.c, for initializing, reading and updating all ports
●
stm8s_spi.c, for SPI communication with the L99PM62GXP device
●
stm8s_tim4.c, for generating a 1 ms timebase
●
stm8s_uart3.c, for initializing LINUART
Note:
LINUART is described as UART3 in the RM0016 STM8S and STM8A reference manual.



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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