| Electronic Components Datasheet Search |
|
AN4101 Datasheet(PDF) 15 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4101 Datasheet(HTML) 15 Page - STMicroelectronics |
|
15 / 21 page ![]() 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. |
|
|
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 |
| 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 |