| Electronic Components Datasheet Search |
|
AN3258 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3258 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 16 page ![]() HSI calibration AN3258 8/16 Doc ID 17825 Rev 1 1.3 HSI calibration method This section explains how to calibrate the HSI oscillator using the LIN automatic resynchronization feature described above. The automatic resynchronization feature updates the LIN baud rate divider (LDIV) after each LIN sync field reception. The calibration method uses the updated LDIV factor to calculate the HSI frequency variation, under current conditions, using the equations below. Equation 1 Where, fHSI = nominal HSI frequency of 16 MHz and HSIDIV is the HSI prescaler factor programmed in the CLK_CKDIVR register. The LIN baud rate is programmed by software after writing the LDIV_NOM value into the BRR1 and BRR2 registers. Equation 2 As slave node uses the HSI clock as fMASTER, fMASTER = fHSIDIV. Equation 3 Equation 4 After the LIN sync field reception, the LIN baud rate divider is measured by the automatic resynchronization (LDIV_MEAS) and it is automatically loaded into the BRR1 and BRR2 registers. These actions keep the same baud rate under varying HSI oscillator frequency conditions. The LDIV_MEAS factor multiplied by the baud rate gives the current HSI frequency (fMEASURED). Where, LDIV_MEAS = LDIV measured after automatic resynchronization. The difference between the fREFERENCE and fMEASURED gives the variation of HSI oscillator frequency. Equation 5 Where, ΔFREQUENCY is the HSI oscillator frequency variation. f HSIDIV"" f HSI HSIDIV -------------------- = Baudrate f MASTER LDIV_NOM ------------------------------ = LDIV_NOM f MASTER Baudrate -------------------------- = f MESASURED LDIV_MEAS Baudrate = FREQUENCY f MASTER f MEASURED – = |
|
|
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 |