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

Resources

Technical Documentation

Product Specifications
Description Version Size
DB2711 DB2711: STM8AF and STM8S HSI oscillator calibration using LIN automatic resynchronization 1.0 114 KB

Legal

License Agreement
Description Version Size
SLA0048 SLA0048: Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT 3.0 104 KB

Get Software

Part Number Software Version Marketing Status Supplier Order from ST
STSW-STM8077 1.0.0 Active ST

 

Support & Community

×