Design Win

使用LIN自动再同步功能校准STM8AF和STM8S HSI振荡器(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.

  • 所有功能

    • HSI calibration from the LIN frame sync field
    • HSI calibrated after few frames received
    • HSI frequency maintained in spite of temperature and voltage variation