A calibration method and device for HSI clock frequency
A technology of clock frequency and calibration method, which is applied in the field of HSI clock frequency calibration and HSI clock frequency calibration device, can solve the problem of low calibration accuracy of HSI clock frequency and achieve the effect of improving calibration accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a method for calibrating an HSI clock frequency according to the present invention, which may specifically include the following steps:
[0054] S1, within one clock cycle after HSI frequency division, count the number of first clock cycles of the MCU external preset precision clock through the counter inside the MCU.
[0055] In an embodiment of the present invention, the MCU external preset precise clock may be provided by an ATE machine, wherein the frequency of the MCU external preset precise clock is determined by the target frequency of the HSI clock frequency. For example, if the target frequency of the HSI clock frequency is 8MHz, the frequency of the external precision clock of the MCU is 8MHz; if the target frequency of the HSI clock frequency is 14MHz, the frequency of the external precision clock of the MCU is 14MHz; if the frequency of the HSI clock The target frequency of the MC...
Embodiment 2
[0073] refer to figure 2 , which shows a flow chart of the steps of another HSI clock frequency calibration method embodiment of the present invention, which may specifically include the following steps:
[0074] S10, within one clock cycle after HSI frequency division, count the number of first clock cycles of the MCU external preset precision clock through the counter inside the MCU.
[0075] In an embodiment of the present invention, the MCU external preset precise clock may be provided by an ATE machine, wherein the frequency of the MCU external preset precise clock is determined by the target frequency of the HSI clock frequency. For example, if the target frequency of the HSI clock frequency is 8MHz, the frequency of the external precision clock of the MCU is 8MHz; if the target frequency of the HSI clock frequency is 14MHz, the frequency of the external precision clock of the MCU is 14MHz; if the frequency of the HSI clock The target frequency of the MCU is 28MHz, the...
Embodiment 3
[0126] refer to image 3 , which shows a structural block diagram of an embodiment of an HSI clock frequency calibration device according to the present invention, which may specifically include the following modules:
[0127] The first clock cycle number acquisition module 1 is used to count the first clock cycle number of the MCU external preset precision clock through the counter inside the MCU within one clock cycle after the HSI frequency division.
[0128] The first frequency value acquisition module 2 is configured to acquire the first frequency value of the HSI according to the preset frequency calculation formula and the first clock cycle number.
[0129] The first clock frequency update module 3 is configured to obtain a first-step length calibration value according to the first calibration formula and the first frequency value to update the HSI clock frequency.
[0130] The second clock cycle number acquisition module 4 is used for counting the second clock cycle n...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


