전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN3101 데이터시트(PDF) 10 Page - STMicroelectronics

부품명 AN3101
상세설명  internal RC oscillator calibration
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3101 데이터시트(HTML) 10 Page - STMicroelectronics

Back Button AN3101 Datasheet HTML 6Page - STMicroelectronics AN3101 Datasheet HTML 7Page - STMicroelectronics AN3101 Datasheet HTML 8Page - STMicroelectronics AN3101 Datasheet HTML 9Page - STMicroelectronics AN3101 Datasheet HTML 10Page - STMicroelectronics AN3101 Datasheet HTML 11Page - STMicroelectronics AN3101 Datasheet HTML 12Page - STMicroelectronics AN3101 Datasheet HTML 13Page - STMicroelectronics AN3101 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 24 page
background image
High speed internal oscillator calibration
AN3101
10/24
DocID16612 Rev 6
2.3
Description of the HSI clock calibration firmware
The HSI clock calibration firmware provided with this application note includes two major
functions:
•
uint32_t HSI_CalibrateMinError(void)
•
ErrorStatus HSI_CalibrateFixedError(uint32_t MaxAllowedError, uint32_t*
Freq)
2.3.1
HSI calibration with minimum error
The HSI_CalibrateMinError() function calibrates the HSI clock to have the nearest
frequency to 16 MHz.
It measures 21 frequencies for different calibration values and provides the HSITRIM value
that corresponds to the frequency with the minimum error. The resulting HSITRIM value is
the calibration value that is written in the HSITRIMR register. The frequency measurement
starts from HSITRIMR = HSICALR - 12 and ends with HSITRIMR = HSICALR + 8.
After calibration, the HSI_CalibrateMinError() function returns the HSI frequency value as
an unsigned 32-bit integer (uint32_t). This value can be helpful to reconfigure prescalers,
like the ones used for communication peripherals.
The flowchart in Figure 6 gives the algorithm for this function.
Example
uint32_t HSIFrequencyAfterCalib = HSI_VALUE;
{
......
/* Calibrate HSI clock and return its value after calibration
*/
HSIFrequencyAfterCalib = HSI_CalibrateMinError();
.........
}



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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