Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN4067 Datasheet(PDF) 18 Page - STMicroelectronics

Part # AN4067
Description  Microcontrollers of STM32F0x1
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4067 Datasheet(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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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