STSW-STM8077:STM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization (AN3258)

This document provides a firmware example (STSW-STM8077), showing a way to calibrate the STM8AF or STM8S high-speed internal oscillator (HSI), when the STM8 is used as a LIN bus slave node.

The LINUART automatic resynchronization feature allows to compensate any possible HSI frequency deviation. It allows to maintain the LIN communication on the complete voltage and temperature range. On top of that, this example shows how to calibrate the HSI, thanks to the value updated by the automatic resynchronization in the LINUART baudrate registers.

Key Features

  • HSI calibration from the LIN frame sync field
  • HSI calibrated after few frames received
  • HSI frequency maintained in spite of temperature and voltage variation
产品规格
DescriptionVersionSize
DB2711: STM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization1.0114 KB
许可协议
DescriptionVersionSize
SLA0048: Mix Liberty + OSS + 3rd- party V1 - SOFTWARE LICENSE AGREEMENT2.18112 KB
获取软件
型号Software VersionSupplier
STSW-STM80771.0.0ST
Mix Liberty + OSS + 3rd- party V1 - SOFTWARE LICENSE AGREEMENT STSW-STM32019