2011-06-23 05:43 AM
Dear,
The allowed tolerance of oscillator frequency in my planned application is 1%. I'd like to use HSI and periodically to calibrate it. There is an application note describing the process + SW code. The method applied there is to measure some referenced frequency and to compare the measured frequency vs the known value. The frequency reference should be generated by an external crystal. The method is OK, but in this way external crystal is required( = money, PCB place). I thought about another approach. I'd like to calibrate the HSI oscillator with temperature sensor. The best thing would be to build any linear(or another) function - Freq (temperature) but the Datasheet does not have Freq vs Temperature characteristic ( just a range of -2 to +2 %), so if I want this approach I could try to find the function by myself in experiment, Or slightly another method is to build a look-up table, also in experiment.
In the mentioned App. note I found a brief notice regarding this method, but I have a little doubt perhaps I'm missing something and I'm not paying attention to a potential problem that might exists with this approach ?
My application, as I see it now, will be in Active Halt mode with a wake-up period of 1 sec. Upon the wake-up it will be run during let's say 300us. During this run-mode or even one in 5sec I may turn on the temperature sensor that needs just 20us to be measured.
Any help would be highly
appreciated.
E.L.
2011-06-29 10:44 AM
Hi Yevpator,
Just one comment, the HSI frequency depends on the supply voltage (VDD) so your experiments should be done at the same voltage as the final application. If you are planning to power your STM8L by a battery so you should take care of it.MCU Lüfter2011-08-16 04:03 AM
From: lowpowermcu
Posted: Wednesday, June 29, 2011 7:44 PMSubject: STM8L15x internal RC oscillator calibrationHi Yevpator,
Just one comment, the HSI frequency depends on the supply voltage (VDD) so your experiments should be done at the same voltage as the final application. If you are planning to power your STM8L by a battery so you should take care of it.MCU Lüfter