2016-05-27 06:16 AM
Hello,
I'm calibrating my MSI clock when I'm switching frequencies, and I noticed that whenever I write a value to MSITRIM register, MSICAL automatically changes value too. The reference maual states that this is a readonly register, which is factory calibrated, and I would expect that it should have constant value, but it changes based on what I write in the MSITRIM. How is this working? I coudn't find any details in the ref manual.2016-05-27 08:16 AM
Hi stokic.srdjan,
This is aligned with MSICAL description in the STM32L4 reference manual (RM0351): These bits are initialized at startup with the factory-programmed MSI calibration trim value. When MSITRIM is written, MSICAL is updated with the sum of MSITRIM and the factory trim value.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2016-05-27 08:23 AM
This information is missing from RM0038 STM32L1 Reference manual.
Thank you for your quick reply!2016-05-30 10:20 AM
Hi stokic.srdjan,
Please note that RM0038 will be updated in order to align MSICAL (and HSICAL) description with the one in RM0351.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.