cancel
Showing results for 
Search instead for 
Did you mean: 

HSI Calibration

mvi
Associate II
Posted on September 04, 2008 at 06:07

HSI Calibration

5 REPLIES 5
mvi
Associate II
Posted on May 17, 2011 at 12:30

Hi,

Is it possible to change the HSICAL bits on the fly while the HSI and PLL generated SYSCLK is running?

Because the PLL needs some time to lock on the frequency Im having doubts about it. Any confirmations?

''The trimming step is 40 kHz between two consecutive HSICAL steps.'' How accurate is this statement quoted from the reference manual?

Thanks.

-Mad

16-32micros
Associate III
Posted on May 17, 2011 at 12:30

Hi,

Note also that the HSI is already calibrated to 1% at 25°C and the maximum deviation is 3%.

The HSI Frequency is based on an internal RC circuitry . Once calibrated at start-up the deviation of the ''R'' resistance at run-time will depend only when the temperature or VDD is changing. So basically in most of applications, VDD is constant except when powered from a battery, thus make us to say that only the temperature will affect the HSI Frequency. However the temperature variation in most of application is not varying suddenly each 1s. Taking into account all of these parameters, we can from time to time re-calibrate again ( using an Input capture of one timer if you have a reference frequency or for example using the LSE output pin if yoy are using a 32.768Khz RTC quartz) The HSI if the temperature or VDD is changing.

Back to your question, to perform a calibration while PLL is Running and locked is not safe and may cause a PLL unlock if the input Jitter created by the HSICAL variation is not acceptable even only by one step.

Regards,

STOne-32.

lanchon
Associate III
Posted on May 17, 2011 at 12:30

> How accurate?

if it's not speced, you probably won't get an answer to that.

I'd expect that tolerance to be similar to the HSI tolerance *before factory calibration*, which I guess is not speced either, but if I had to guess I'd say around +/-30%.

I believe that to expect the step to be in the 20 to 80KHz range would be reasonable.

benedwards19
Associate II
Posted on May 17, 2011 at 12:30

I am interested to know if you tried changing the HSICAL bits on the fly. STOne-32, do you know if this will work?

We have a system with a high quality 1-second tick generated by another device, and we'd like to use this to calibrate the HSI. We don't want to shut off the PLL every second to adjust the HSI frequency, so if changing HSICAL causes the PLL to lose lock, we won't use this method.

Note: We want to adjust HSICAL up or down by only 1 step at a time.

Thanks in advance,

Ben

hg-chen
Associate II
Posted on May 17, 2011 at 12:30

How about LSI? % of accuracy? deviation versus temperature?