CN111736570A - Controller clock frequency detection method, device, computer equipment and storage medium - Google Patents
Controller clock frequency detection method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111736570A CN111736570A CN202010488638.XA CN202010488638A CN111736570A CN 111736570 A CN111736570 A CN 111736570A CN 202010488638 A CN202010488638 A CN 202010488638A CN 111736570 A CN111736570 A CN 111736570A
- Authority
- CN
- China
- Prior art keywords
- timing
- controller
- module
- clock frequency
- count value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 20
- 230000006870 function Effects 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 101000836873 Homo sapiens Nucleotide exchange factor SIL1 Proteins 0.000 description 1
- 102100027096 Nucleotide exchange factor SIL1 Human genes 0.000 description 1
- 101000880156 Streptomyces cacaoi Subtilisin inhibitor-like protein 1 Proteins 0.000 description 1
- 101000879675 Streptomyces lavendulae Subtilisin inhibitor-like protein 4 Proteins 0.000 description 1
- 101000880160 Streptomyces rochei Subtilisin inhibitor-like protein 2 Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0267—Fault communication, e.g. human machine interface [HMI]
- G05B23/027—Alarm generation, e.g. communication protocol; Forms of alarm
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manipulation Of Pulses (AREA)
Abstract
本申请涉及一种控制器时钟频率检测方法、装置、计算机设备及存储介质。控制器时钟频率检测方法,包括:获取参考计数值;控制定时模块根据预设时间进行定时工作;控制计数模块在定时模块进行定时工作时对固定周期脉冲进行计数,且在定时模块完成定时工作时中断计数,从而得到工作计数值;根据工作计数值相对于参考计数值的偏差计算控制器的时钟漂移量;根据时钟漂移量判断控制器时钟频率是否正常。本申请可以使得控制器时钟频率检测结果更加精准。
The present application relates to a controller clock frequency detection method, device, computer equipment and storage medium. A method for detecting a clock frequency of a controller includes: obtaining a reference count value; controlling a timing module to perform timing work according to a preset time; controlling a counting module to count fixed-period pulses when the timing module performs the timing work, and when the timing module completes the timing work Interrupt the counting to obtain the working count value; calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value; judge whether the clock frequency of the controller is normal according to the clock drift amount. The present application can make the detection result of the clock frequency of the controller more accurate.
Description
技术领域technical field
本申请涉及控制器技术领域,特别是涉及一种控制器时钟频率检测方法、装置、计算机设备及存储介质。The present application relates to the technical field of controllers, and in particular, to a method, device, computer equipment and storage medium for detecting a clock frequency of a controller.
背景技术Background technique
控制器是指挥计算机的各个部件按照指令的功能要求协调工作的部件,是计算机的神经中枢和指挥中心。控制器的时钟频率正常与否会对系统软件程序运行的安全性造成影响。因此,需要对其进行检测。The controller is the component that directs the various components of the computer to coordinate work according to the functional requirements of the instruction, and is the nerve center and command center of the computer. Whether the clock frequency of the controller is normal or not will affect the security of the system software program. Therefore, it needs to be detected.
现行的检测方法是在控制器外加装独立时隙的时钟芯片,通过将外部独立时钟芯片的时钟频率与控制器自身的时钟频率进行比较,当发现二者的出现时间差时,则判断时钟频率出现错误。The current detection method is to install a clock chip with an independent time slot outside the controller. By comparing the clock frequency of the external independent clock chip with the clock frequency of the controller itself, when the time difference between the two is found, the clock frequency is judged. An error occurred.
但是,使用该方法时,若参考的时钟芯片自身出现频率漂移时,检测就会出现误报或漏报,进而使得检测不准。However, when this method is used, if the frequency of the reference clock chip itself drifts, false alarms or false alarms will occur in the detection, thus making the detection inaccurate.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种控制器时钟频率检测方法、装置、计算机设备以及存储介质。Based on this, it is necessary to provide a controller clock frequency detection method, apparatus, computer equipment and storage medium for the above technical problems.
一种控制器时钟频率检测方法,包括:A controller clock frequency detection method, comprising:
获取参考计数值,所述参考计数值为计数模块在预设时间内对固定周期脉冲的计数;obtaining a reference count value, where the reference count value is the count of fixed-period pulses by the counting module within a preset time;
控制定时模块根据所述预设时间进行定时工作,所述定时模块的计时频率由所述控制器时钟频率分频获得;The timing module is controlled to perform timing work according to the preset time, and the timing frequency of the timing module is obtained by dividing the frequency of the controller clock;
控制所述计数模块在所述定时模块进行所述定时工作时对所述固定周期脉冲进行计数,且在所述定时模块完成所述定时工作时中断计数,从而得到工作计数值;Controlling the counting module to count the fixed period pulses when the timing module performs the timing work, and to interrupt the counting when the timing module completes the timing work, thereby obtaining a work count value;
根据所述工作计数值相对于所述参考计数值的偏差计算所述控制器的时钟漂移量;Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value;
根据所述时钟漂移量判断所述控制器时钟频率是否正常。It is judged whether the clock frequency of the controller is normal according to the clock drift amount.
在其中一个实施例中,所述获取参考计数值包括:In one of the embodiments, the obtaining the reference count value includes:
控制所述定时模块根据所述预设时间进行初始定时,所述初始定时为所述定时模块在所述控制器处于初始状态下进行的首次定时;Controlling the timing module to perform initial timing according to the preset time, and the initial timing is the first timing performed by the timing module when the controller is in an initial state;
控制所述计数模块在定时模块进行所述初始定时时对所述固定周期脉冲进行计数,且在所述定时模块完成所述初始定时时中断计数,从而得到所述参考计数值。Controlling the counting module to count the fixed period pulses when the timing module performs the initial timing, and to interrupt the counting when the timing module completes the initial timing, so as to obtain the reference count value.
在其中一个实施例中,还包括:设置所述中断的优先级为最高等级。In one of the embodiments, the method further includes: setting the priority of the interrupt to the highest level.
在其中一个实施例中,所述根据所述时钟漂移量判断所述控制器时钟频率是否正常之后,还包括:In one embodiment, after judging whether the clock frequency of the controller is normal according to the clock drift amount, the method further includes:
如果所述控制器时钟频率异常,则进行时钟频率故障处理操作;If the clock frequency of the controller is abnormal, perform a clock frequency fault processing operation;
如果所述控制器时钟频率正常,则执行其他功能且继续检测所述控制器的时钟频率是否正常。If the controller clock frequency is normal, perform other functions and continue to detect whether the controller clock frequency is normal.
在其中一个实施例中,所述进行时钟频率故障处理操作包括发出告警信息。In one of the embodiments, performing the clock frequency failure processing operation includes sending out alarm information.
在其中一个实施例中,所述根据所述时钟漂移量判断所述控制器时钟频率是否正常之后,还包括:In one embodiment, after judging whether the clock frequency of the controller is normal according to the clock drift amount, the method further includes:
将所述计数模块的计数清零。Clear the count of the counting module to zero.
一种控制器时钟频率检测装置,包括:A controller clock frequency detection device, comprising:
脉冲发生模块,用于发射固定周期脉冲;Pulse generation module for transmitting fixed period pulses;
定时模块,计时频率由所述控制器时钟频率分频获得,用于根据预设时间进行定时工作;a timing module, the timing frequency is obtained by dividing the clock frequency of the controller, and is used for timing work according to a preset time;
计数模块,连接所述脉冲发生模块,用于在所述定时模块进行所述定时工作时对所述脉冲发生模块发射的脉冲进行计数,且在所述定时模块完成所述定时工作时中断计数,从而得到工作计数值;a counting module, connected to the pulse generating module, for counting the pulses emitted by the pulse generating module when the timing module performs the timing work, and interrupting the counting when the timing module completes the timing work, So as to get the work count value;
获取模块,用于获取参考计数值,所述参考计数值为所述计数模块在所述预设时间内对固定周期脉冲的计数;an acquisition module, configured to acquire a reference count value, where the reference count value is the count of fixed-period pulses by the counting module within the preset time;
计算模块,用于根据所述工作计数值与参考计数值计算所述控制器的时钟漂移量;a calculation module, configured to calculate the clock drift amount of the controller according to the work count value and the reference count value;
判断模块,根据所述时钟漂移量判断所述控制器时钟频率是否正常。A judging module, for judging whether the clock frequency of the controller is normal according to the clock drift amount.
在其中一个实施例中,所述定时模块为所述控制器内的定时器,和/或所述计数模块为所述控制器内的计数器。In one embodiment, the timing module is a timer in the controller, and/or the counting module is a counter in the controller.
在其中一个实施例中,所述获取模块包括所述定时模块与所述计数模块,且通过所述计数模块在定时模块根据预设时间进行初始定时时对所述固定周期脉冲的计数而得到所述参考计数值,所述初始定时为所述定时模块在所述控制器处于初始状态下进行的首次定时。In one embodiment, the obtaining module includes the timing module and the counting module, and the obtained module is obtained by the counting module counting the fixed period pulses when the timing module performs initial timing according to a preset time. the reference count value, and the initial timing is the first timing performed by the timing module when the controller is in an initial state.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the following steps when executing the computer program:
获取参考计数值,所述参考计数值为计数模块在预设时间内对固定周期脉冲的计数;obtaining a reference count value, where the reference count value is the count of fixed-period pulses by the counting module within a preset time;
控制定时模块根据所述预设时间进行定时工作,所述定时模块的计时频率由所述控制器时钟频率分频获得;The timing module is controlled to perform timing work according to the preset time, and the timing frequency of the timing module is obtained by dividing the frequency of the controller clock;
控制所述计数模块在所述定时模块进行所述定时工作时对所述固定周期脉冲进行计数,且在所述定时模块完成所述定时工作时中断计数,从而得到工作计数值;Controlling the counting module to count the fixed period pulses when the timing module performs the timing work, and to interrupt the counting when the timing module completes the timing work, thereby obtaining a work count value;
根据所述工作计数值相对于所述参考计数值的偏差计算所述控制器的时钟漂移量;Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value;
根据所述时钟漂移量判断所述控制器时钟频率是否正常。It is judged whether the clock frequency of the controller is normal according to the clock drift amount.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取参考计数值,所述参考计数值为计数模块在预设时间内对固定周期脉冲的计数;obtaining a reference count value, where the reference count value is the count of fixed-period pulses by the counting module within a preset time;
控制定时模块根据所述预设时间进行定时工作,所述定时模块的计时频率由所述控制器时钟频率分频获得;The timing module is controlled to perform timing work according to the preset time, and the timing frequency of the timing module is obtained by dividing the frequency of the controller clock;
控制所述计数模块在所述定时模块进行所述定时工作时对所述固定周期脉冲进行计数,且在所述定时模块完成所述定时工作时中断计数,从而得到工作计数值;Controlling the counting module to count the fixed period pulses when the timing module performs the timing work, and to interrupt the counting when the timing module completes the timing work, thereby obtaining a work count value;
根据所述工作计数值相对于所述参考计数值的偏差计算所述控制器的时钟漂移量;Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value;
根据所述时钟漂移量判断所述控制器时钟频率是否正常。It is judged whether the clock frequency of the controller is normal according to the clock drift amount.
上述控制器时钟频率检测方法、装置、计算机设备及存储介质,计数模块在定时模块根据预设时间进行定时工作时,对固定周期脉冲进行计数,进而通过计数模块的计数偏差计算定时模块的计时偏差,从而反应时钟频率的漂移情况。固定周期脉冲的周期固定,因此本实施例检测结果更加精准。In the above controller clock frequency detection method, device, computer equipment and storage medium, the counting module counts fixed period pulses when the timing module performs timing work according to the preset time, and then calculates the timing deviation of the timing module through the counting deviation of the counting module , so as to reflect the drift of the clock frequency. The period of the fixed-period pulse is fixed, so the detection result in this embodiment is more accurate.
附图说明Description of drawings
为了更清楚地说明本申请实施例或传统技术中的技术方案,下面将对实施例或传统技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or in the traditional technology, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or the traditional technology. Obviously, the drawings in the following description are only the For some embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为一个实施例中控制器时钟频率检测方法的流程示意图;1 is a schematic flowchart of a method for detecting a clock frequency of a controller in one embodiment;
图2为一个实施例中获取参考计数值的流程示意图;FIG. 2 is a schematic flowchart of obtaining a reference count value in one embodiment;
图3为一个实施例中据时钟漂移量判断控制器时钟频率是否正常之后的流程示意图;3 is a schematic flow chart of judging whether the clock frequency of the controller is normal according to the amount of clock drift in one embodiment;
图4为一个实施例中控制器时钟频率检测装置的结构框图。FIG. 4 is a structural block diagram of an apparatus for detecting a clock frequency of a controller in an embodiment.
具体实施方式Detailed ways
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使本申请的公开内容更加透彻全面。In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the related drawings. Embodiments of the present application are presented in the accompanying drawings. However, the application may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are for the purpose of describing specific embodiments only, and are not intended to limit the application.
需要说明的是,当一个元件被认为是“连接”另一个元件时,它可以是直接连接到另一个元件,或者通过居中元件连接另一个元件。此外,以下实施例中的“连接”,如果被连接的对象之间具有电信号或数据的传递,则应理解为“电连接”、“通信连接”等。It should be noted that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or connected to the other element through intervening elements. In addition, the "connection" in the following embodiments should be understood as "electrical connection", "communication connection" and the like if there is transmission of electrical signals or data between the objects to be connected.
在此使用时,单数形式的“一”、“一个”和“/该”也可以包括复数形式,除非上下文清楚指出另外的方式。还应当理解的是,术语“包括/包含”或“具有”等指定所陈述的特征、整体、步骤、操作、组件、部分或它们的组合的存在,但是不排除存在或添加一个或更多个其他特征、整体、步骤、操作、组件、部分或它们的组合的可能性。同时,在本说明书中使用的术语“和/或”包括相关所列项目的任何及所有组合。As used herein, the singular forms "a," "an," and "/the" can include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "comprising/comprising" or "having" etc. designate the presence of stated features, integers, steps, operations, components, parts or combinations thereof, but do not preclude the presence or addition of one or more Possibilities of other features, integers, steps, operations, components, parts or combinations thereof. Also, as used in this specification, the term "and/or" includes any and all combinations of the associated listed items.
随着信息技术的发展,嵌入式系统软件已广泛应用与航空航天、轨道交通、核电、汽车电子等关键领域的装备。如何保障嵌入式软件的安全性,防止重大人身、财产、环境损失,是该类产品软件研发关注的核心问题。With the development of information technology, embedded system software has been widely used in equipment in key fields such as aerospace, rail transit, nuclear power, and automotive electronics. How to ensure the security of embedded software and prevent major personal, property and environmental losses is the core issue of software research and development of such products.
欧美国家发布了IEC61508、IEC62279、IEC60880等功能安全标准,用于规定高安全软件需要强制或推荐采用的功能安全技术要求,但如何设计有效技术途径以满足该类标准一直是工业界的重大挑战。European and American countries have released functional safety standards such as IEC61508, IEC62279, and IEC60880, which are used to specify the functional safety technical requirements that high-safety software needs to be mandatory or recommended. However, how to design effective technical approaches to meet such standards has always been a major challenge for the industry.
在IEC 61508.1-2010《电气/电子可编程电子控制器第1部分:通用要求》标准中,将使用嵌入式控制器按照其潜在的安全性隐患分为SIL1~SIL4类控制器,并规定了相关控制器必须采取的安全性措施。其中,控制器时钟频率监测是SIL2级以上控制器都必须采取的安全措施。本申请的控制器时钟频率检测方法可以(但并不限于)应用于该类控制器的时钟频率正常与否的检测。In the IEC 61508.1-2010 "Electrical/Electronic Programmable Electronic Controllers Part 1: General Requirements" standard, the use of embedded controllers is divided into SIL1 to SIL4 types of controllers according to their potential safety hazards, and specifies the relevant Safety measures that the controller must take. Among them, controller clock frequency monitoring is a safety measure that must be taken by controllers above SIL2. The method for detecting the clock frequency of a controller of the present application can be (but is not limited to) applied to the detection of whether the clock frequency of this type of controller is normal or not.
在一个实施例中,如图1所示,提供了一种控制器时钟频率检测方法,包括:In one embodiment, as shown in FIG. 1, a method for detecting a clock frequency of a controller is provided, including:
步骤S1,获取参考计数值。Step S1, obtaining a reference count value.
这里的参考计数值为计数模块在预设时间内对固定周期脉冲的计数。预设时间可以根据实际情况进行设定,例如其可以设置为1毫秒。参考计数值可以记为Cref。The reference count value here is the count of fixed-cycle pulses by the counting module within a preset time. The preset time can be set according to the actual situation, for example, it can be set to 1 millisecond. The reference count value can be denoted as C ref .
步骤S2,控制定时模块根据预设时间进行定时工作。Step S2, the timing module is controlled to perform timing work according to the preset time.
定时模块的计时频率是由控制器的时钟频率分频获得,二者成线形关系。具体地,定时模块可以控制器内的定时器。当然,本申请并不以此为限制,其也可以为外部的定时器等。The timing frequency of the timing module is obtained by dividing the clock frequency of the controller, and the two are in a linear relationship. Specifically, the timing module may be a timer within the controller. Of course, the present application is not limited to this, and it may also be an external timer or the like.
步骤S3,控制计数模块在定时模块进行定时工作时对固定周期脉冲进行计数,且在定时模块完成定时工作时中断计数,从而得到工作计数值。In step S3, the counting module is controlled to count the fixed period pulses when the timing module performs the timing work, and interrupt the counting when the timing module completes the timing work, thereby obtaining the work count value.
计数模块可以控制器内的计数器。当然,本申请也不以此为限制,其也可以为外部的计数器等。定时模块完成定时工作而中断计数后,读取该计数即可得到工作计数值。The counting module can be a counter within the controller. Of course, this application is not limited by this, and it can also be an external counter or the like. After the timing module completes the timing work and interrupts the count, the work count value can be obtained by reading the count.
这里的“中断”的优先级可以设置为最高等级。此时,可以有效防止计数模块的计数受其他中断事件的影响,进而使得工作计数值的计数准确无误。The priority of "interrupt" here can be set to the highest level. At this time, the counting of the counting module can be effectively prevented from being affected by other interrupt events, so that the counting of the working count value is accurate.
步骤S4,根据工作计数值相对于参考计数值的偏差计算控制器的时钟漂移量。Step S4: Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value.
由于定时模块的计时频率是由时钟频率分频获得。因此,当控制器的时钟频率产生漂移时,定时模块的计时频率也会产生漂移。相应地,此时定时模块进行定时工作的定时时间实际上会与预设时间产生偏差。Because the timing frequency of the timing module is obtained by dividing the clock frequency. Therefore, when the clock frequency of the controller drifts, the timing frequency of the timing module also drifts. Correspondingly, at this time, the timing time when the timing module performs the timing work will actually deviate from the preset time.
计数模块对固定周期脉冲进行计数。因此,假如两次计计数的时间相同,则计数模块的计数应该也是相同的。如果两次计数的计数时间实际不同,则计数模块的计数也会不同。The counting module counts fixed period pulses. Therefore, if the time of the two counts is the same, the count of the counting module should also be the same. If the count times of the two counts are actually different, the count of the counting module will also be different.
因此,计数模块在定时模块进行定时工作的定时时间内得到的工作计数值会与参考计数值之间产生偏差。因此,根据工作计数值相对于参考计数值的偏差可以计算出控制器的时钟漂移量。Therefore, the working count value obtained by the counting module within the timing time when the timing module performs the timing work will produce a deviation between the reference count value and the working count value. Therefore, the clock drift amount of the controller can be calculated according to the deviation of the working count value relative to the reference count value.
这里的时钟漂移量可以表示为;The amount of clock drift here can be expressed as;
Fwarp=(|Creal-Cref|/Cref)*Fosc F warp = (|C real -C ref |/C ref )*F osc
其中,Fwarp为频率漂移量,Creal为工作计数值,Cref为参考计数值,Fosc为控制器正常时钟频率。Among them, F warp is the frequency drift amount, C real is the working count value, C ref is the reference count value, and F osc is the normal clock frequency of the controller.
步骤S5,根据时钟漂移量判断控制器时钟频率是否正常。Step S5, it is judged whether the clock frequency of the controller is normal according to the clock drift amount.
具体地判断过程例如可以为:判断时钟漂移量是否小于偏移阈值。当时钟漂移量小于偏移阈值时,判定控制器时钟频率正常。当时钟漂移量不小于偏移阈值时,判定控制器时钟频率异常。偏移阈值可以根据实际要求进行设置,例如其可以为0.707Fosc The specific judgment process may be, for example, judging whether the clock drift amount is less than the offset threshold. When the amount of clock drift is less than the offset threshold, it is determined that the clock frequency of the controller is normal. When the amount of clock drift is not less than the offset threshold, it is determined that the clock frequency of the controller is abnormal. The offset threshold can be set according to actual requirements, for example, it can be 0.707F osc
本实施例控制器时钟频率检测方法,控制计数模块在定时模块根据预设时间进行定时工作时,对固定周期脉冲进行计数,进而通过计数模块的计数偏差计算定时模块的计时偏差,从而反应时钟频率的漂移情况。固定周期脉冲的周期固定,因此本实施例检测结果更加精准。In the method for detecting the clock frequency of the controller in this embodiment, the control counting module counts the fixed-period pulses when the timing module performs timing work according to the preset time, and then calculates the timing deviation of the timing module through the counting deviation of the counting module, so as to reflect the clock frequency of drift. The period of the fixed-period pulse is fixed, so the detection result in this embodiment is more accurate.
在一个实施例中,如图2所示,步骤S1(获取参考计数值)包括:In one embodiment, as shown in FIG. 2 , step S1 (obtaining the reference count value) includes:
步骤S11,控制定时模块根据预设时间进行初始定时。Step S11, the timing module is controlled to perform initial timing according to the preset time.
这里的“初始定时”为定时模块在控制器处于初始状态下进行的首次定时。控制器处于初始状态下,即控制器为全新使用的状态下。The "initial timing" here is the first timing performed by the timing module when the controller is in the initial state. The controller is in the initial state, that is, the controller is in a brand-new state.
步骤S12,控制计数模块在定时模块进行初始定时时对固定周期脉冲进行计数,且在定时模块完成初始定时时中断计数,从而得到参考计数值。In step S12, the counting module is controlled to count the fixed period pulses when the timing module performs the initial timing, and interrupt the counting when the timing module completes the initial timing, so as to obtain the reference count value.
这里的“中断”的优先级也可以设置为最高等级。此时,可以有效防止计数模块的计数受其他中断事件的影响,进而使得参数计数值的计数准确无误。在得到参考计数值后,可以将计数模块的计数清零。The priority of "interrupt" here can also be set to the highest level. At this time, the counting of the counting module can be effectively prevented from being affected by other interrupt events, thereby making the counting of the parameter count value accurate. After the reference count value is obtained, the count of the counting module can be cleared.
由于定时模块进行初始定时时,控制器处于全新使用的初始状态,此时控制器时钟频率几乎未发生漂移。因此,可以以计数模块在定时模块进行初始定时时对固定周期脉冲进行的计数值作为参考计数值。定时模块完成初始定时而中断计数后,读取该计数即可得到参考计数值。本申请可以简便有效地获取参考计数值。Since the controller is in a brand-new initial state when the timing module performs initial timing, the clock frequency of the controller hardly drifts at this time. Therefore, the count value performed by the counting module on the fixed-period pulses when the timing module performs initial timing can be used as the reference count value. After the timing module completes the initial timing and interrupts the count, the reference count value can be obtained by reading the count. The present application can easily and efficiently obtain the reference count value.
当然,本申请并不以前为限制,在其他实施例中,参考计数值的获取过程也可以与此不同。例如,可以将参考计数值作为控制器的固有性能参数而存储在其存储器中。在使用时直接读取该值而获取参考计数值。Of course, the present application is not limited in the past, and in other embodiments, the acquisition process of the reference count value may also be different from this. For example, the reference count value may be stored in its memory as an inherent performance parameter of the controller. The reference count value is obtained by directly reading this value when in use.
在一个实施例中,参考图3,步骤S5(根据时钟漂移量判断控制器时钟频率是否正常)之后,还包括:In one embodiment, referring to FIG. 3 , after step S5 (judging whether the clock frequency of the controller is normal according to the amount of clock drift), it further includes:
S51,如果控制器时钟频率异常,则进行时钟频率故障处理操作。S51, if the clock frequency of the controller is abnormal, perform a clock frequency fault processing operation.
进行时钟频率故障处理操作具体可以包括发出告警信息而告知通知用户。用户获得告警信息后可以采取保护性措施,从而保证系统的安全性。进行时钟频率故障处理操作之后,可以执行其他功能且继续检测控制器的时钟频率是否正常。当然,为了进一步确保安全,故障处理操作之后也可以暂时不执行其他功能,而且先检测控制器的时钟频率是否正常,再确保正常后再执行其他功能。The processing operation of the clock frequency failure may specifically include sending out alarm information to notify the user. After obtaining the alarm information, the user can take protective measures to ensure the security of the system. After the clock frequency fault handling operation, you can perform other functions and continue to detect whether the clock frequency of the controller is normal. Of course, in order to further ensure safety, other functions may not be performed temporarily after the fault handling operation, and it is first detected whether the clock frequency of the controller is normal, and then other functions are performed after ensuring that it is normal.
S52,如果控制器时钟频率正常,则执行其他功能且继续检测控制器的时钟频率是否正常。S52, if the clock frequency of the controller is normal, perform other functions and continue to detect whether the clock frequency of the controller is normal.
在判断控制器时钟频率是否正常之后,继续检测控制器的时钟频率是否正常,从而可以持续对控制器时钟频率进行监控,进而保证执行其他功能时系统安全运行。After judging whether the clock frequency of the controller is normal, continue to detect whether the clock frequency of the controller is normal, so that the clock frequency of the controller can be continuously monitored, thereby ensuring the safe operation of the system when other functions are performed.
在一个实施例中,步骤S5,根据时钟漂移量判断控制器时钟频率是否正常之后,还包括:步骤S6,将计数模块的计数清零。In one embodiment, step S5, after judging whether the clock frequency of the controller is normal according to the clock drift amount, further includes: step S6, clearing the count of the counting module.
此时步骤S6与计数模块中断计数后的步骤可以构成一个中断服务,该中断服务可以由中断触发方式触发,从而便于后续计数模块从零开始计数。当然,本申请并不以此为限制,只要在计数模块进行下一次计数(例如计数模块在定时模块进行下一次定时工作时对固定周期脉冲进行计数)之前清零均可。At this time, step S6 and the step after the counting module interrupts counting can constitute an interrupt service, and the interrupt service can be triggered by an interrupt triggering manner, so that the subsequent counting module can start counting from zero. Of course, the present application is not limited to this, as long as the counting module performs the next counting (for example, the counting module counts fixed period pulses when the timing module performs the next timing operation), it can be cleared.
应该理解的是,虽然图1-图3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1-图3中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 1-3 are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 1 to FIG. 3 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages within the other steps.
在一个实施例中,参考图4,提供一种控制器时钟频率检测装置,包括脉冲发生模块100、定时模块200、计数模块300、获取模块400、计算模块500以及判断模块600。In one embodiment, referring to FIG. 4 , a controller clock frequency detection device is provided, including a
脉冲发生模块100具体可以为脉冲发生芯片或者脉冲发生器等。脉冲发生模块100可以发射固定周期脉冲给计数模块300。The
定时模块200的计时频率由控制器时钟频率分频获得,进而反应控制器时钟频率的偏移情况。定时模块200根据预设时间进行定时工作。预设时间可以根据实际情况进行设定,例如其可以设置为1毫秒。定时模块200可以控制器内的定时器。当然,本申请并不以此为限制,其也可以为外部的定时器等.The timing frequency of the
计数模块300连接脉冲发生模块100,可以接受脉冲发生模块100发射的固定周期脉冲信号。计数模块300可以控制器内的计数器。此时,控制器上可以设有相应引脚,进而接受脉冲发生模块100发射的脉冲信号。当然,本申请也不以此为限制,其也可以为外部的计数器等。The
当定时模块200可以为控制器内的定时器,且计数模块300为控制器内的计数器时,不需要再控制器外再增加额外器件,从而降低产品成本。When the
计数模块300在定时模块进行定时工作时对脉冲发生模块发射的脉冲进行计数,且在定时模块完成定时工作时中断计数,从而得到工作计数值。The
获取模块400用于获取参考计数值。参考计数值为计数模块在预设时间内对固定周期脉冲的计数。The obtaining
计算模块500用于根据工作计数值与参考计数值计算控制器的时钟漂移量。The
计数模块300对固定周期脉冲进行计数。因此,假如两次计计数的时间相同,则计数模块300的计数应该也是相同的。如果两次计数的计数时间实际不同,则计数模块300的计数也会不同。The
由于定时模块200的计时频率是由时钟频率分频获得。因此,当控制器的时钟频率产生漂移时,定时模块200的计时频率也会产生漂移。相应地,此时定时模块200进行定时工作的定时时间实际上会与预设时间产生偏差。Because the timing frequency of the
因此,计数模块300在定时模块200进行定时工作的定时时间内得到的工作计数值会与参考计数值之间产生偏差。因此,根据工作计数值相对于参考计数值的偏差可以计算出控制器的时钟漂移量。Therefore, the working count value obtained by the
这里的时钟漂移量可以表示为;The amount of clock drift here can be expressed as;
Fwarp=(|Creal-Cref|/Cref)*Fosc F warp = (|C real -C ref |/C ref )*F osc
其中,Fwarp为频率漂移量,Creal为工作计数值,Cref为参考计数值,Fosc为控制器正常时钟频率。Among them, F warp is the frequency drift amount, C real is the working count value, C ref is the reference count value, and F osc is the normal clock frequency of the controller.
判断模块600根据时钟漂移量判断控制器时钟频率是否正常。判断模块具体地判断过程例如可以为:判断时钟漂移量是否小于偏移阈值。当时钟漂移量小于偏移阈值时,判定控制器时钟频率正常。当时钟漂移量不小于偏移阈值时,判定控制器时钟频率异常。偏移阈值可以根据实际要求进行设置,例如其可以为0.707Fosc The
本实施例控制器时钟频率检测装置,计数模块在定时模块根据预设时间进行定时工作时,对固定周期脉冲进行计数,进而通过计数模块的计数偏差计算定时模块的计时偏差,从而反应时钟频率的漂移情况。固定周期脉冲的周期固定,因此本实施例检测结果更加精准。In this embodiment of the controller clock frequency detection device, the counting module counts the fixed period pulses when the timing module performs timing work according to the preset time, and then calculates the timing deviation of the timing module through the counting deviation of the counting module, so as to reflect the variation of the clock frequency. Drift situation. The period of the fixed-period pulse is fixed, so the detection result in this embodiment is more accurate.
在一个实施例中,获取模块400包括定时模块200与计数模块300。获取模块400通过计数模块200与定时模块300获取参考计数值。In one embodiment, the obtaining
计数模块300在定时模块200根据预设时间进行初始定时时对固定周期脉冲的计数而得到参考计数值。初始定时为定时模块在控制器处于初始状态下进行的首次定时。控制器处于初始状态下,即控制器为全新使用的状态下。此时控制器时钟频率几乎未发生漂移。The
因此,本实施例可以以计数模块300在定时模块200进行初始定时时对固定周期脉冲进行的计数值作为参考计数值,进而简便有效地获取参考计数值。Therefore, in this embodiment, the counting value of the fixed-period pulses performed by the
关于控制器时钟频率检测装置的具体限定可以参见上文中对于控制器时钟频率检测方法的限定,在此不再赘述。上述控制器时钟频率检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。For the specific limitation of the controller clock frequency detection device, reference may be made to the above limitation on the controller clock frequency detection method, which will not be repeated here. Each module in the above-mentioned controller clock frequency detection device may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
步骤S1,获取参考计数值,参考计数值为计数模块在预设时间内对固定周期脉冲的计数。In step S1, a reference count value is obtained, where the reference count value is counted by a counting module within a preset time period of pulses of a fixed period.
步骤S2,控制定时模块根据预设时间进行定时工作,定时模块的计时频率由控制器时钟频率分频获得。Step S2, the timing module is controlled to perform timing work according to the preset time, and the timing frequency of the timing module is obtained by dividing the frequency of the controller clock frequency.
步骤S3,控制计数模块在定时模块进行定时工作时对固定周期脉冲进行计数,且在定时模块完成定时工作时中断计数,从而得到工作计数值。In step S3, the counting module is controlled to count the fixed period pulses when the timing module performs the timing work, and interrupt the counting when the timing module completes the timing work, thereby obtaining the work count value.
步骤S4,根据工作计数值相对于参考计数值的偏差计算控制器的时钟漂移量。Step S4: Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value.
步骤S5,根据时钟漂移量判断控制器时钟频率是否正常。Step S5, it is judged whether the clock frequency of the controller is normal according to the clock drift amount.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:步骤S11,控制定时模块根据预设时间进行初始定时,初始定时为定时模块在控制器处于初始状态下进行的首次定时。步骤S12,控制计数模块在定时模块进行初始定时时对固定周期脉冲进行计数,且在定时模块完成初始定时时中断计数,从而得到参考计数值。In one embodiment, the processor also implements the following steps when executing the computer program: Step S11 , controlling the timing module to perform initial timing according to a preset time, and the initial timing is the first timing performed by the timing module when the controller is in an initial state. In step S12, the counting module is controlled to count the fixed period pulses when the timing module performs the initial timing, and interrupt the counting when the timing module completes the initial timing, so as to obtain the reference count value.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:步骤S51,如果控制器时钟频率异常,则进行时钟频率故障处理操作。步骤S52,如果控制器时钟频率正常,则执行其他功能且继续检测控制器的时钟频率是否正常。In one embodiment, the processor further implements the following steps when executing the computer program: Step S51, if the clock frequency of the controller is abnormal, perform a clock frequency fault processing operation. Step S52, if the clock frequency of the controller is normal, execute other functions and continue to detect whether the clock frequency of the controller is normal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:步骤S6,将计数模块的计数清零。In one embodiment, the processor further implements the following steps when executing the computer program: Step S6, clearing the count of the counting module.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤S1,获取参考计数值,参考计数值为计数模块在预设时间内对固定周期脉冲的计数。In step S1, a reference count value is obtained, where the reference count value is counted by a counting module within a preset time period of pulses of a fixed period.
步骤S2,控制定时模块根据预设时间进行定时工作,定时模块的计时频率由控制器时钟频率分频获得。Step S2, the timing module is controlled to perform timing work according to the preset time, and the timing frequency of the timing module is obtained by dividing the frequency of the controller clock frequency.
步骤S3,控制计数模块在定时模块进行定时工作时对固定周期脉冲进行计数,且在定时模块完成定时工作时中断计数,从而得到工作计数值。In step S3, the counting module is controlled to count the fixed period pulses when the timing module performs the timing work, and interrupt the counting when the timing module completes the timing work, thereby obtaining the work count value.
步骤S4,根据工作计数值相对于参考计数值的偏差计算控制器的时钟漂移量。Step S4: Calculate the clock drift amount of the controller according to the deviation of the working count value relative to the reference count value.
步骤S5,根据时钟漂移量判断控制器时钟频率是否正常。Step S5, it is judged whether the clock frequency of the controller is normal according to the clock drift amount.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:步骤S11,控制定时模块根据预设时间进行初始定时,初始定时为定时模块在控制器处于初始状态下进行的首次定时。步骤S12,控制计数模块在定时模块进行初始定时时对固定周期脉冲进行计数,且在定时模块完成初始定时时中断计数,从而得到参考计数值。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: Step S11, the timing module is controlled to perform initial timing according to a preset time, and the initial timing is the first timing performed by the timing module when the controller is in an initial state. In step S12, the counting module is controlled to count the fixed period pulses when the timing module performs the initial timing, and interrupt the counting when the timing module completes the initial timing, so as to obtain the reference count value.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:步骤S51,如果控制器时钟频率异常,则进行时钟频率故障处理操作。步骤S52,如果控制器时钟频率正常,则执行其他功能且继续检测控制器的时钟频率是否正常。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: Step S51, if the clock frequency of the controller is abnormal, a clock frequency fault processing operation is performed. Step S52, if the clock frequency of the controller is normal, execute other functions and continue to detect whether the clock frequency of the controller is normal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:步骤S6,将计数模块的计数清零。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: Step S6, clearing the count of the counting module.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).
在本说明书的描述中,参考术语“一个实施例”、“其他实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特征包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性描述不一定指的是相同的实施例或示例。In the description of this specification, description with reference to the terms "one embodiment," "other embodiment," etc. means that a particular feature, structure, material, or feature described in connection with that embodiment or example is included in at least one embodiment of the present invention or in the example. In this specification, schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010488638.XA CN111736570A (en) | 2020-06-02 | 2020-06-02 | Controller clock frequency detection method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010488638.XA CN111736570A (en) | 2020-06-02 | 2020-06-02 | Controller clock frequency detection method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111736570A true CN111736570A (en) | 2020-10-02 |
Family
ID=72648087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010488638.XA Pending CN111736570A (en) | 2020-06-02 | 2020-06-02 | Controller clock frequency detection method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111736570A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014010704A (en) * | 2012-06-29 | 2014-01-20 | Renesas Electronics Corp | Clock correction circuit and clock correction method |
CN103853081A (en) * | 2012-12-06 | 2014-06-11 | 海尔集团公司 | MCU internal clock calibration system and method and PCB |
CN104679098A (en) * | 2013-11-29 | 2015-06-03 | 上海华虹集成电路有限责任公司 | Automatic calibration circuit for clock frequency of microcontroller |
CN106549655A (en) * | 2015-09-21 | 2017-03-29 | 深圳市博巨兴实业发展有限公司 | A kind of self-alignment method and system of IC clock frequencies |
CN109283967A (en) * | 2018-11-20 | 2019-01-29 | 深圳芯邦科技股份有限公司 | A micro-control unit MCU clock calibration method and related equipment |
CN110887992A (en) * | 2019-11-11 | 2020-03-17 | 上海华虹集成电路有限责任公司 | Clock frequency detection circuit |
-
2020
- 2020-06-02 CN CN202010488638.XA patent/CN111736570A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014010704A (en) * | 2012-06-29 | 2014-01-20 | Renesas Electronics Corp | Clock correction circuit and clock correction method |
CN103853081A (en) * | 2012-12-06 | 2014-06-11 | 海尔集团公司 | MCU internal clock calibration system and method and PCB |
CN104679098A (en) * | 2013-11-29 | 2015-06-03 | 上海华虹集成电路有限责任公司 | Automatic calibration circuit for clock frequency of microcontroller |
CN106549655A (en) * | 2015-09-21 | 2017-03-29 | 深圳市博巨兴实业发展有限公司 | A kind of self-alignment method and system of IC clock frequencies |
CN109283967A (en) * | 2018-11-20 | 2019-01-29 | 深圳芯邦科技股份有限公司 | A micro-control unit MCU clock calibration method and related equipment |
CN110887992A (en) * | 2019-11-11 | 2020-03-17 | 上海华虹集成电路有限责任公司 | Clock frequency detection circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6015178B2 (en) | Safety system | |
CN104426696B (en) | A kind of method of troubleshooting, server and system | |
US9335183B2 (en) | Method for reliably operating a sensor | |
CN108986418A (en) | intelligent alarm method, device, equipment and storage medium | |
CN107368058A (en) | It is a kind of for the fault monitoring method of equipment, equipment and computer-readable medium | |
CN111736570A (en) | Controller clock frequency detection method, device, computer equipment and storage medium | |
JP4638916B2 (en) | Method and apparatus for monitoring process execution | |
JP3991782B2 (en) | Electronic control unit | |
CN112418505A (en) | Self-adaptive data acquisition method and monitoring system | |
WO2020090715A1 (en) | Process management device, process management method, and process management program storage medium | |
CN116872784A (en) | Verification method and device of battery monitoring mechanism, electronic equipment and storage medium | |
CN106354635B (en) | A kind of the program code segments self checking method and device of embedded device | |
CN105320029A (en) | Constant period signal monitoring circuit and load control backup signal generating circuit | |
CN100542076C (en) | A kind of watchdog circuit input pulse time interval monitoring | |
US20220206482A1 (en) | Substation equipment monitoring using a scada system | |
CN112230127A (en) | Circuit interference detection method and device, terminal equipment and storage medium | |
CN103425543A (en) | Program execution monitoring system | |
JP2811343B2 (en) | Fan alarm detection device | |
KR20120046956A (en) | Event information control module | |
JPS6051141B2 (en) | Program runaway detection method | |
CN119022860A (en) | A coating film thickness gauge system control method, system, equipment and medium | |
CN106406230A (en) | Control method for numerical control system and numerical control system | |
JP2022161488A (en) | Building management system and control method | |
JP2600499B2 (en) | Fault alarm output method and circuit for peripheral control device | |
EP3321764A1 (en) | Clock frequency detection method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201002 |