Question
STM8S HSI Calibration errors
Posted on September 21, 2017 at 15:05
\ Trying to trim HSI I get 3 identical lowest frequencies verified on scope
\ eForth on STM8S103F running MINDEV
\
https://github.com/TG9541/stm8ef
\
http://forum.hobbycomponents.com/viewtopic.php?f=87&t=2180
\ my contrib under user barewires
\ initTIM1 and content from previous page 1
\ 1st try trim freq and confirm register readback at 4 kHz
\
FILENVM: CLK_HSITRIMR $50CC ;: f3 3 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 3.999 lowest freq ?: f2 2 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 3.999 ?: f1 1 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 3.999 ?: f0 0 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 4.04 kHz reset value: f7 7 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 4.087: f6 6 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 4.123: f5 5 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 4.18: f4 4 CLK_HSITRIMR C! CLK_HSITRIMR C@ . ; \ 4.229 highest freqRAMHANDinitTIM14000 Hzf3 3 ok