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

X  

AN4067 데이터시트(PDF) 18 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) 18 Page - STMicroelectronics

Back Button 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 AN4067 Datasheet HTML 21Page - STMicroelectronics AN4067 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 27 page
background image
Internal RC oscillator calibration
AN4067
18/27
DocID022913 Rev 2
3.3.3
Internal oscillator frequency measurement
The internal oscillator frequency measurement is performed by Timer 14 capture interrupt.
In the timer TIM14 ISR, an entire period of internal oscillator frequency is computed. The
number of periods to be measured for each trimming value is configurable by the user in the
InternOscCalibration.h file, as follows:
#define NUMBER_OF_LOOPS 50
The averaging method is used to minimize frequency error measurements. So, if the
counter of loops reaches NUMBER_OF_LOOPS, the average of all measured frequencies is
computed.
Users can easily configure the frequency of the reference source. It is defined in the
InternOscCalibration.h header file, as follows:
If the LSE clock is used as the reference frequency, uncomment the line below to make
sure the LSE is configured and internally connected to Timer 14 channel 1:
#define USE_REFERENCE_LSE
If the reference frequency is an external signal equal to 50 Hz, then comment the line
above and define the reference frequency as shown below:
#define REFERENCE_FREQUENCY (uint32_t)50 /* The reference
frequency value in Hz */
The computation of the frequency measurements does not depend on the duty cycle of the
source reference signal. It depends on its frequency since the capture 1 interrupt is
configured to occur on every rising edge of the reference signal (refer to Figure 5).
Note:
Figure 3.3.4 provides the frequency measurement algorithm.



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



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