2023-05-13 12:53 AM - edited 2023-11-20 05:33 AM
The datasheet states two things about HSI16:
The questions are:
Solved! Go to Solution.
2023-05-14 12:08 AM
The negative steps are because the full range of adjustment is provided in (at least) two different ways. Perhaps by varying current in the charging/discharging current, and switching in extra capacitors. Or maybe a resistor of a different shape (so it might be affected to a different degree by variations in production such as overetch).
Because of this, the coarse adjustment steps aren’t an exact multiple of the fine adjustment steps.
To guarantee that there are no missing frequencies, ST chose to ensure overlap by those negative steps. By design the coarse steps are slightly less than 64 x the size of a fine step - to ensure that they never are larger than that.
2023-05-13 04:11 AM - edited 2023-11-20 05:34 AM
you need some neg. offset ! so you take the 64 -> - 4% and add (+1,5 - 4 = -2,5 ) 2,5/0,3 = 8 steps.
64+8 should make it close to perfect. so write : 64 for -4% and then 8 , to add 8 x 0,3 steps.
every write to HSITRIM is added to the actual trim value.
from rm :
(this is just, as I understand it )
2023-05-14 12:08 AM
The negative steps are because the full range of adjustment is provided in (at least) two different ways. Perhaps by varying current in the charging/discharging current, and switching in extra capacitors. Or maybe a resistor of a different shape (so it might be affected to a different degree by variations in production such as overetch).
Because of this, the coarse adjustment steps aren’t an exact multiple of the fine adjustment steps.
To guarantee that there are no missing frequencies, ST chose to ensure overlap by those negative steps. By design the coarse steps are slightly less than 64 x the size of a fine step - to ensure that they never are larger than that.
2023-05-14 06:48 PM
2023-05-14 06:50 PM
Makes sense, thanks! So these steps nature is solely technological (some STM32 products have fully linear dependency, so it confused me in the first place).