Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2021-02-19
HEFEI GEYI INTEGRATED CIRCUIT CO LTD +2
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the above problems, the purpose of the embodiments of the present invention is to provide a HSI clock frequency calibration method and a corresponding HSI clock frequency calibration device to solve the problem of the HSI clock frequency calibration method in the prior art. The problem of low calibration accuracy

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A calibration method and device for HSI clock frequency
  • A calibration method and device for HSI clock frequency
  • A calibration method and device for HSI clock frequency

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a method and device for calibrating HSI clock frequency. The method includes: within one clock cycle after HSI frequency division, counting the number of first clock cycles of the MCU external preset precision clock through the counter inside the MCU; Set the frequency calculation formula and the first clock cycle number to obtain the first frequency value of HSI; obtain the first step length calibration value according to the first calibration formula and the first frequency value to update the HSI clock frequency; within one clock cycle after HSI frequency division , the second clock cycle number of the preset precision clock is counted by the counter; the second frequency value of HSI is obtained according to the preset frequency calculation formula and the second clock cycle number; if the second frequency value is within the target frequency range, the HSI is completed Calibration of the clock frequency. The embodiments of the present invention greatly improve the calibration accuracy of the HSI clock frequency.

Description

technical field [0001] The invention relates to the field of chip technology, in particular to a method for calibrating the frequency of an HSI clock and a device for calibrating the frequency of the HSI clock. Background technique [0002] In recent years, with the development of the Internet of Things and automotive electronics, the application of 32-bit MCU (Microcontroller Unit, micro control unit) has become more and more extensive, and the types of 32-bit MCU application products have become more and more diverse. HSI (High Speed ​​Internal Clock Signal, high-speed internal clock) is a high-speed RC oscillator circuit inside a 32-bit MCU. HSI can provide a reference clock frequency for the MCU. However, the existing manufacturing process makes the HSI clock frequency of different MCU chips different, therefore, the HSI clock frequency needs to be calibrated. [0003] At present, the production test of 32-bit MCU (Microcontroller Unit, micro control unit) selects the A...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F1/08
CPCG06F1/08
Inventor 韩飞王南飞张金安王永成张箭
Owner HEFEI GEYI INTEGRATED CIRCUIT CO LTD