| Electronic Components Datasheet Search |
|
AN4631 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4631 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 30 page ![]() DocID027266 Rev 2 11/30 Internal RC oscillator calibration 29 Figure 5. Timing diagram of internal oscillator calibration After enabling the timer counter, when the first rising edge of the reference signal occurs, the timer counter value is captured and stored in IC1ReadValue1. At the second rising edge, the timer counter is captured again and stored in IC1ReadValue2. The elapsed time between two consecutive rising edges (IC1ReadValue2 - IC1ReadValue1) represents an entire period of the reference signal. Since the timer counter is clocked by the system clock (internal RC oscillator HSI16 or MSI), the real frequency generated by the internal RC oscillator versus the reference signal is given by: The error (in Hz) is computed as the absolute value of the difference between the measured frequency and the typical value. Hence the internal oscillator frequency error is expressed as: After calculating the error for each trimming value, the algorithm determines the optimum trimming value (that corresponds to the nearest frequency to typical value) to be programmed in the trimming bits (refer to Section 2.3: Description of the internal oscillator calibration firmware for more details). 2.2 Hardware implementation 2.2.1 Case where LSE is used as the reference frequency The STM32L0xx offers a useful feature, that is the ability to connect internally the Low- Speed External (LSE) oscillator to Timer 21 channel 1. Thus, the LSE clock can be used as the reference signal for internal oscillator calibration and no additional hardware connections are required. Only the LSE oscillator should be connected to OSC32_IN and OSC32_OUT. Figure 6 shows the hardware connections needed for internal oscillators calibration using LSE as an accurate frequency source for calibration. Measuredfrequency IC1ReadValue2 IC1ReadValue1 – () referencefrequency × = Error Hz () Measuredfrequency typicalvalue – = |
|
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 |
| 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 |