поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4067 датащи(PDF) 16 Page - STMicroelectronics

номер детали AN4067
подробное описание детали  Microcontrollers of STM32F0x1
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4067 датащи(HTML) 16 Page - STMicroelectronics

Back Button AN4067 Datasheet HTML 12Page - STMicroelectronics AN4067 Datasheet HTML 13Page - STMicroelectronics AN4067 Datasheet HTML 14Page - STMicroelectronics AN4067 Datasheet HTML 15Page - STMicroelectronics AN4067 Datasheet HTML 16Page - STMicroelectronics AN4067 Datasheet HTML 17Page - STMicroelectronics AN4067 Datasheet HTML 18Page - STMicroelectronics AN4067 Datasheet HTML 19Page - STMicroelectronics AN4067 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 27 page
background image
Internal RC oscillator calibration
AN4067
16/27
DocID022913 Rev 2
HSI_CalibrateMinError()
(refer to ErrorStatus
HSI14_CalibrateFixedError
(uint32_t MaxAllowedError, uint32_t* Freq)), but it
searches for the frequency that has an error (in absolute value) lower than or equal to
MaxAllowedError
.
If it finds this frequency, it stops searching and configures the trimming bits
HSITRIM[4:0] according to this frequency and returns SUCCESS, meaning that the
calibration operation has succeeded.
Otherwise, it continues searching for it until the HSITRIM bits = 31 (32nd frequency). It
then sets the trimming bits HSITRIM[4:0] to the default calibration value and returns
ERROR, meaning that the calibration has failed and did not find any frequency with an
error lower than or equal to MaxAllowedError.
The frequency measurement starts with HSTRIM = 16. The HSITRIM value is
computed in loops to find the next value. That is, the HSITRIM value starts from 16,
then goes to the next value to the left, then to the next to the right, then to the second to
the left and so on until it reaches 31, forming a “spring loop” (as shown in Figure 11).
This algorithm is based on the fact that the probability of finding the frequency that has
the minimum error increases when the HSITRIM[4:0] value tends to 16. This algorithm
is implemented so as to minimize the time consumed by the calibration process.
Figure 11. “Spring loop”
The second parameter is used to get the frequency (in Hertz) after calibration in the form of
an unsigned 32-bit integer (unit32_t).
In case of an HSI14 calibration, the HSI14_CalibrateFixedError() function should be used
instead of HSI_CalibrateFixedError().



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com