CN114710257A - Frequency adjusting method and device and slave - Google Patents
Frequency adjusting method and device and slave Download PDFInfo
- Publication number
- CN114710257A CN114710257A CN202210498769.5A CN202210498769A CN114710257A CN 114710257 A CN114710257 A CN 114710257A CN 202210498769 A CN202210498769 A CN 202210498769A CN 114710257 A CN114710257 A CN 114710257A
- Authority
- CN
- China
- Prior art keywords
- frequency
- slave
- working
- control signal
- operating
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/02—Speed or phase control by the received code signals, the signals containing no special synchronisation information
- H04L7/033—Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
- H03L7/099—Details of the phase-locked loop concerning mainly the controlled oscillator of the loop
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
本公开提供了一种频率调整方法、装置及从机,该方法包括:确定主机发送的检测包的发送间隔;根据发送间隔,确定主机的第一工作频率;在第一工作频率与从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号;将频率控制信号发送至振荡装置,以供振荡装置根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率。根据本公开的实施例能够降低从机的成本,同时保障从机的工作频率与主机的工作频率相匹配。
The present disclosure provides a frequency adjustment method, device and slave. The method includes: determining a sending interval of detection packets sent by a host; determining a first working frequency of the host according to the sending interval; When the frequency matching conditions are not met between the second operating frequencies, a frequency control signal is generated; the frequency control signal is sent to the oscillating device, so that the oscillating device can adjust the operating parameters according to the frequency control signal, so that the slave is adjusted by the second operating frequency to the third operating frequency. According to the embodiments of the present disclosure, the cost of the slave machine can be reduced, and at the same time, the working frequency of the slave machine can be guaranteed to match the working frequency of the master machine.
Description
技术领域technical field
本公开涉及通信技术领域,特别涉及一种频率调整方法、装置及从机。The present disclosure relates to the field of communication technologies, and in particular, to a frequency adjustment method, device and slave.
背景技术Background technique
基于通用串行总线(Universal Serial Bus,USB)的主从设备之间采用异步方式传输数据,其对频率或时钟的精度有较高的要求。在从机设备中,为了产生与主机匹配的高精度频率,通常使用外部晶振作为频率输入源,并通过锁相环(Phase-locked loop,PLL)倍频等方式获得最终的频率。由于采用了成本较高的晶振作为频率输入源,因此,导致USB从机设备的成本较高。The master and slave devices based on Universal Serial Bus (Universal Serial Bus, USB) transmit data in an asynchronous manner, which has higher requirements on the precision of frequency or clock. In a slave device, in order to generate a high-precision frequency that matches the master, an external crystal oscillator is usually used as the frequency input source, and the final frequency is obtained through a phase-locked loop (PLL) frequency multiplication and other methods. Since a high-cost crystal oscillator is used as the frequency input source, the cost of the USB slave device is high.
发明内容SUMMARY OF THE INVENTION
本公开提供一种频率调整方法、装置及从机。The present disclosure provides a frequency adjustment method, device and slave.
第一方面,本公开提供了一种频率调整方法,应用于从机的振荡控制装置,所述从机包括与所述振荡控制装置连接的振荡装置,该频率调整方法包括:确定主机发送的检测包的发送间隔;根据所述发送间隔,确定所述主机的第一工作频率;在所述第一工作频率与所述从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号;将所述频率控制信号发送至所述振荡装置,以供所述振荡装置根据所述频率控制信号调整工作参数,使所述从机由所述第二工作频率调整至第三工作频率,所述第三工作频率与所述第一工作频率之间满足所述频率匹配条件。In a first aspect, the present disclosure provides a frequency adjustment method, which is applied to an oscillation control device of a slave machine, the slave machine includes an oscillation device connected to the oscillation control device, and the frequency adjustment method includes: determining the detection sent by the master machine. packet sending interval; according to the sending interval, determine the first working frequency of the master; when the frequency matching condition is not satisfied between the first working frequency and the second working frequency of the slave, generate frequency control signal; send the frequency control signal to the oscillating device, so that the oscillating device can adjust the working parameters according to the frequency control signal, so that the slave machine can be adjusted from the second working frequency to the third working frequency frequency, the frequency matching condition is satisfied between the third operating frequency and the first operating frequency.
第二方面,本公开提供了一种频率调整方法,应用于从机的振荡装置,所述从机包括与所述振荡装置连接的振荡控制装置,该频率调整方法包括:接收所述振荡控制装置发送的频率控制信号;其中,所述频率控制信号为所述振荡控制装置在主机的第一工作频率和所述从机的第二工作频率之间不满足频率匹配条件的情况下发送的信号,所述第一工作频率为所述振荡控制装置根据所述主机发送的检测包的发送间隔确定的频率;根据所述频率控制信号调整工作参数,使所述从机由所述第二工作频率调整至第三工作频率,所述第三工作频率与所述第一工作频率满足所述频率匹配条件。In a second aspect, the present disclosure provides a frequency adjustment method, which is applied to an oscillation device of a slave machine, the slave machine includes an oscillation control device connected to the oscillation device, and the frequency adjustment method includes: receiving the oscillation control device The frequency control signal sent; wherein, the frequency control signal is a signal sent by the oscillation control device when the frequency matching condition is not satisfied between the first operating frequency of the master and the second operating frequency of the slave, The first working frequency is the frequency determined by the oscillation control device according to the sending interval of the detection packets sent by the host; the working parameters are adjusted according to the frequency control signal, so that the slave is adjusted by the second working frequency to a third operating frequency, where the third operating frequency and the first operating frequency satisfy the frequency matching condition.
第三方面,本公开提供了一种振荡控制装置,所述振荡控制装置设置于从机中,所述从机还包括与所述振荡控制装置连接的振荡装置,该振荡控制装置包括:间隔确定单元,用于确定主机发送的检测包的发送间隔;频率确定单元,用于根据所述发送间隔,确定所述主机的第一工作频率;生成单元,用于在所述第一工作频率与所述从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号;发送单元,用于将所述频率控制信号发送至所述振荡装置,以供所述振荡装置根据所述频率控制信号调整工作参数,使所述从机由所述第二工作频率调整至第三工作频率,所述第三工作频率与所述第一工作频率之间满足所述频率匹配条件。In a third aspect, the present disclosure provides an oscillation control device, the oscillation control device is provided in a slave machine, the slave machine further includes an oscillation device connected to the oscillation control device, and the oscillation control device includes: an interval determination a unit for determining the sending interval of the detection packets sent by the host; a frequency determining unit for determining the first working frequency of the host according to the sending interval; a generating unit for determining the first working frequency between the first working frequency and the In the case where the frequency matching condition is not satisfied between the second operating frequencies of the slaves, a frequency control signal is generated; the sending unit is configured to send the frequency control signal to the oscillating device, so that the oscillating device can send the frequency control signal to the oscillating device according to the selected frequency The frequency control signal adjusts working parameters, so that the slave is adjusted from the second working frequency to a third working frequency, and the frequency matching condition is satisfied between the third working frequency and the first working frequency.
第四方面,本公开提供了一种振荡装置,所述振荡装置设置于从机中,所述从机还包括与所述振荡装置连接的振荡控制装置,该振荡装置包括:接收单元,用于接收所述振荡控制装置发送的频率控制信号;其中,所述频率控制信号为所述振荡控制装置在主机的第一工作频率和所述从机的第二工作频率之间不满足频率匹配条件的情况下发送的信号,所述第一工作频率为所述振荡控制装置根据所述主机发送的检测包的发送间隔确定的频率;调整单元,用于根据所述频率控制信号调整工作参数,使所述从机由所述第二工作频率调整至第三工作频率,所述第三工作频率与所述第一工作频率之间满足所述频率匹配条件。In a fourth aspect, the present disclosure provides an oscillating device, the oscillating device is provided in a slave machine, the slave machine further includes an oscillating control device connected to the oscillating device, the oscillating device includes: a receiving unit for Receive the frequency control signal sent by the oscillation control device; wherein, the frequency control signal is the frequency control signal that the oscillation control device does not satisfy the frequency matching condition between the first working frequency of the master and the second working frequency of the slave The first working frequency is the frequency determined by the oscillation control device according to the sending interval of the detection packets sent by the host; the adjustment unit is used to adjust the working parameters according to the frequency control signal, so that the The slave is adjusted from the second working frequency to a third working frequency, and the frequency matching condition is satisfied between the third working frequency and the first working frequency.
第五方面,本公开提供了一种从机,该从机包括:至少一个振荡装置;以及与所述至少一个振荡装置连接的振荡控制装置;其中,所述振荡控制装置用于实现本公开实施例任一项所述的频率调整方法;所述振荡装置用于实现本公开实施例任一项所述的频率调整方法。In a fifth aspect, the present disclosure provides a slave machine, the slave machine comprising: at least one oscillation device; and an oscillation control device connected to the at least one oscillation device; wherein, the oscillation control device is used to implement the present disclosure The frequency adjustment method described in any one of the embodiments; the oscillation device is used to implement the frequency adjustment method described in any one of the embodiments of the present disclosure.
第六方面,本公开提供了一种电子设备,该电子设备包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的一个或多个计算机程序,一个或多个所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的频率调整方法。In a sixth aspect, the present disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores data that can be processed by the at least one processor One or more computer programs executed by a processor, one or more of the computer programs being executed by the at least one processor, to enable the at least one processor to perform the above-described frequency adjustment method.
第七方面,本公开提供了一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序在被处理器/处理核执行时实现上述的频率调整方法。In a seventh aspect, the present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned frequency adjustment method when executed by a processor/processing core.
本公开所提供的实施例,在从机内部设置成本较低的振荡装置和振荡控制装置代替外部晶振,可以有效降低从机成本,而且,由振荡控制装置负责检测从机的工作频率与主机的工作频率之间是否满足频率匹配条件,并在不满足该频率匹配条件的情况下,向振荡装置发送频率控制信号,振荡装置根据频率控制信号调整工作参数,使从机的工作频率与主机的工作频率符合该频率匹配条件,从而可以及时准确地调整从机的工作频率,保障主机与从机之间的正常通信。In the embodiment provided by the present disclosure, a low-cost oscillation device and an oscillation control device are set inside the slave to replace the external crystal oscillator, which can effectively reduce the cost of the slave. Moreover, the oscillation control device is responsible for detecting the working frequency of the slave and the host's operating frequency. Whether the frequency matching conditions are met between the working frequencies, and if the frequency matching conditions are not met, the frequency control signal is sent to the oscillating device. The frequency meets the frequency matching conditions, so that the working frequency of the slave can be adjusted in time and accurately, and the normal communication between the master and the slave can be guaranteed.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用来提供对本公开的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其他特征和优点对本领域技术人员将变得更加显而易见。The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification, and together with the embodiments of the present disclosure, they are used to explain the present disclosure, and are not intended to limit the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art from the description of detailed example embodiments with reference to the accompanying drawings.
图1为本公开实施例提供的一种从机的示意图。FIG. 1 is a schematic diagram of a slave according to an embodiment of the present disclosure.
图2为本公开实施例提供的一种频率调整方法的流程图。FIG. 2 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure.
图3为本公开实施例提供的一种频率调整方法的流程图。FIG. 3 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure.
图4为本公开实施例提供的一种频率调整方法的流程图。FIG. 4 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure.
图5为本公开实施例提供的一种频率调整方法的流程图。FIG. 5 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure.
图6为本公开实施例提供的一种从机的示意图。FIG. 6 is a schematic diagram of a slave according to an embodiment of the present disclosure.
图7为本公开实施例提供的一种频率调整方法的工作过程示意图。FIG. 7 is a schematic diagram of a working process of a frequency adjustment method provided by an embodiment of the present disclosure.
图8为本公开实施例提供的一种振荡控制装置的框图。FIG. 8 is a block diagram of an oscillation control apparatus according to an embodiment of the present disclosure.
图9为本公开实施例提供的一种振荡装置的框图。FIG. 9 is a block diagram of an oscillating device according to an embodiment of the present disclosure.
图10为本公开实施例提供的一种从机的框图。FIG. 10 is a block diagram of a slave provided by an embodiment of the present disclosure.
图11为本公开实施例提供的一种电子设备的框图。FIG. 11 is a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本领域的技术人员更好地理解本公开的技术方案,以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。In order for those skilled in the art to better understand the technical solutions of the present disclosure, the exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, and they should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。Various embodiments of the present disclosure and various features of the embodiments may be combined with each other without conflict.
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。The terminology used herein is used to describe particular embodiments only and is not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that when the terms "comprising" and/or "made of" are used in this specification, the stated features, integers, steps, operations, elements and/or components are specified to be present, but not precluded or Add one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Words like "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in common dictionaries should be construed as having meanings consistent with their meanings in the context of the related art and the present disclosure, and will not be construed as having idealized or over-formal meanings, unless expressly so limited herein.
从机是相对于主机而言的设备,通常情况下,从机与主机之间可按照约定的通信协议进行数据传输。例如,基于USB连接方式的两台设备之间通过USB通信协议传输数据,根据两台设备的主次关系,可将两者划分为USB主机和USB从机。The slave is a device relative to the host. Usually, data transmission can be performed between the slave and the host according to the agreed communication protocol. For example, data is transmitted between two devices based on the USB connection method through the USB communication protocol. According to the primary and secondary relationship of the two devices, the two devices can be divided into a USB host and a USB slave.
USB通信属于异步串行通信,采用不归零码进行传输,通信时钟由主机和从机各自产生。收发双方在握手时可以协商好USB版本,从而确定通信速度。但是,主机与从机没有同源时钟,在误差的累积下,必然会出现通信失步的问题。为了解决这一问题,在相关技术中,通常在从机外部设置晶振,从机根据晶振的频率与主机完成信息传输。USB communication belongs to asynchronous serial communication, which adopts non-return-to-zero code for transmission, and the communication clock is generated by the master and the slave respectively. The sending and receiving parties can negotiate the USB version during handshake to determine the communication speed. However, the master and the slave do not have the same source clock. Under the accumulation of errors, the problem of communication loss will inevitably occur. In order to solve this problem, in the related art, a crystal oscillator is usually set outside the slave machine, and the slave machine completes information transmission with the host according to the frequency of the crystal oscillator.
图1为本公开实施例提供的一种从机的示意图。参照图1,从机外部设置有晶振101,从机内设置有与主机连接的USB接口102、锁相环模块103、时钟相位调节模块104、数据收发模块105以及数据处理及协议解析模块106。外部晶振101产生高精度的初始时钟信号,并输入从机的锁相环模块103,锁相环模块103通过对初始时钟信号进行倍频操作获得倍频时钟,并将倍频时钟输入时钟相位调节模块104,从而获得高精度的时钟。时钟相位调节模块104将时钟输入数据收发模块105,以控制从机与主机之间的信息传输,并且,数据处理及协议解析模块106可以对相关数据进行进一步的处理操作。此外,数据收发模块105与从机接口102通过差分运算可以获得USB差分数据,该USB差分数据可以反映从机时钟与主机时钟之间的相位偏差,基于此,时钟相位调节模块104可以根据USB差分数据调整从机时钟,以保障从机与主机的时钟相位保持一致。FIG. 1 is a schematic diagram of a slave according to an embodiment of the present disclosure. 1, a crystal oscillator 101 is provided outside the slave, and a
在图1所示的从机中,虽然可以获得较高精度的时钟,但是,由于外部晶振成本较高,因此,导致USB系统成本也相应较高。In the slave shown in FIG. 1 , although a higher-precision clock can be obtained, the cost of the external crystal oscillator is relatively high, so the cost of the USB system is correspondingly high.
有鉴于此,本公开实施例中,在从机内部设置振荡装置和振荡控制装置代替外部晶振,其中,振荡装置可以采用电阻电容振荡单元或者电感振荡单元等,从而有效降低成本;同时,由振荡控制装置对振荡装置进行有效控制,使从机的工作频率使之与主机工作频率保持在预设的误差范围内,并且,在主机或从机的工作频率发生变化的情况下,即时对从机的工作频率进行相应调整,使从机工作在高精度的频率(时钟),从而保障从机与主机之间的正常通信。In view of this, in the embodiment of the present disclosure, an oscillation device and an oscillation control device are provided inside the slave to replace the external crystal oscillator, wherein the oscillation device can use a resistance-capacitor oscillation unit or an inductance oscillation unit, etc., thereby effectively reducing costs; The control device effectively controls the oscillating device to keep the working frequency of the slave and the master within the preset error range, and, when the working frequency of the master or slave changes, immediately The operating frequency of the slave machine is adjusted accordingly, so that the slave machine works at a high-precision frequency (clock), so as to ensure the normal communication between the slave machine and the master machine.
根据本公开实施例的频率调整方法可以由振荡控制装置或者振荡装置执行。其中,振荡控制装置与振荡装置为设置于从机内的功能模块,从机与主机之间通过USB接口连接以进行数据传输。主机可以是终端设备或服务器等电子设备,终端设备可以为车载设备、用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。The frequency adjustment method according to the embodiment of the present disclosure may be performed by an oscillation control device or an oscillation device. The oscillation control device and the oscillation device are functional modules arranged in the slave machine, and the slave machine and the host machine are connected through a USB interface for data transmission. The host can be an electronic device such as a terminal device or a server, and the terminal device can be a vehicle-mounted device, a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA) ), handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
图2为本公开实施例提供的一种频率调整方法的流程图,应用于从机的振荡控制装置,从机还包括与该振荡控制装置连接的振荡装置。参照图2,该方法包括如下步骤。FIG. 2 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure, which is applied to an oscillation control device of a slave machine, and the slave machine further includes an oscillation device connected to the oscillation control device. 2, the method includes the following steps.
在步骤S21中,确定主机发送的检测包的发送间隔。In step S21, the transmission interval of detection packets sent by the host is determined.
在步骤S22中,根据发送间隔,确定主机的第一工作频率。In step S22, the first operating frequency of the host is determined according to the sending interval.
在步骤S23中,在第一工作频率与从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号。In step S23, if the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency of the slave, a frequency control signal is generated.
在步骤S24中,将频率控制信号发送至振荡装置,以供振荡装置根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率,第三工作频率与第一工作频率之间满足频率匹配条件。In step S24, the frequency control signal is sent to the oscillating device, so that the oscillating device can adjust the working parameters according to the frequency control signal, so that the slave machine can be adjusted from the second working frequency to the third working frequency, and the third working frequency is the same as the first working frequency. meet the frequency matching conditions.
在一些可能的实现方式中,从机与主机之间通过USB接口建立连接。In some possible implementations, a connection is established between the slave and the host through a USB interface.
例如,个人计算机与移动硬盘采用USB方式连接,则个人计算机为主机,移动硬盘为从机。又如,智能车辆控制器通过USB方式与车载联网终端连接,则智能车辆控制器为USB主机,车载联网终端为USB从机。For example, if the personal computer and the mobile hard disk are connected by USB, the personal computer is the host computer and the mobile hard disk is the slave computer. For another example, if the intelligent vehicle controller is connected to the in-vehicle networking terminal through USB, the intelligent vehicle controller is a USB host, and the in-vehicle networking terminal is a USB slave.
在一些可能的实现方式中,从机中还包括数据收发模块,其可用于接收主机传输的数据,或者向主机传输数据。在步骤S21中,振荡控制装置根据数据收发模块接收到的、主机发送的检测包,确定检测包的发送间隔。In some possible implementations, the slave further includes a data transceiver module, which can be used to receive data transmitted by the host, or transmit data to the host. In step S21, the oscillation control device determines the sending interval of the detection packets according to the detection packets received by the data transceiver module and sent by the host.
在一些可能的实现方式中,确定主机发送的检测包的发送间隔,包括:在接收到当前检测包的情况下,确定当前检测包与前一检测包的发送时间之间的间隔,获得发送间隔。其中,当前检测包为从机当前接收到的检测包,前一检测包为与当前检测包相邻的前一时刻接收到的检测包。换言之,每当从机接收一个检测包,则振荡控制装置确定当前检测包与前一检测包的发送时间之间的间隔,从而获得发送间隔。In some possible implementation manners, determining the sending interval of the detection packet sent by the host includes: in the case of receiving the current detection packet, determining the interval between the sending time of the current detection packet and the previous detection packet, and obtaining the transmission interval . The current detection packet is the detection packet currently received by the slave, and the previous detection packet is the detection packet received at the previous moment adjacent to the current detection packet. In other words, every time the slave receives a detection packet, the oscillation control means determines the interval between the transmission times of the current detection packet and the previous detection packet, thereby obtaining the transmission interval.
在一些可能的实现方式中,检测包可以是帧首包(Start of Frame,SOF)或心跳包。In some possible implementations, the detection packet may be a Start of Frame (SOF) packet or a heartbeat packet.
在一个示例中,SOF包内包括PID域(用于表征USB传输包的类型)、帧号域和CRC5域(Cyclic Redundancy Check 5,表示5位循环冗余校验)等信息,并由USB主机控制器以全速总线的标称速率每1.00ms±0.0005ms发出一次(对于高速总线则为125μs±0.0625μs)。当从机检测到SOF包之后,即获知主机控制器开始启动一个帧(微帧),从而根据相邻的两个SOF包之间的发送间隔,获得主机的第一工作频率。In one example, the SOF packet includes information such as the PID field (used to characterize the type of the USB transmission packet), the frame number field, and the CRC5 field (Cyclic Redundancy Check 5, which represents a 5-bit cyclic redundancy check), and is sent by the USB host. The controller issues every 1.00ms±0.0005ms at the nominal rate of the full-speed bus (125μs±0.0625μs for the high-speed bus). After the slave detects the SOF packet, it knows that the host controller starts to start a frame (micro frame), so as to obtain the first operating frequency of the host according to the transmission interval between two adjacent SOF packets.
在获得主机的第一工作频率之后,在步骤S23中,当确定第一工作频率与第二工作频率之间不满足频率匹配条件时,则生成频率控制信号。其中,第二工作频率为从机当前的工作频率,频率匹配条件是用来判断第一工作频率与第二工作频率之间的关系是否可以保障主机与从机正常通信的条件。After obtaining the first operating frequency of the host, in step S23, when it is determined that the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency, a frequency control signal is generated. The second operating frequency is the current operating frequency of the slave, and the frequency matching condition is a condition used to determine whether the relationship between the first operating frequency and the second operating frequency can ensure normal communication between the master and the slave.
在一些可能的实现方式中,频率匹配条件包括频率误差阈值。其中,频率误差阈值可以是绝对误差(例如,0.0005ms),也可以是相对误差(例如,频率误差阈值为150ppm,ppm表示标称频率的偏差),本公开实施例对此不作限制。In some possible implementations, the frequency matching condition includes a frequency error threshold. The frequency error threshold may be an absolute error (for example, 0.0005ms) or a relative error (for example, the frequency error threshold is 150ppm, and ppm represents the deviation of the nominal frequency), which is not limited in this embodiment of the present disclosure.
在频率匹配条件包括频率误差阈值的情况下,在步骤S23之前,还包括:振荡控制装置计算第一工作频率与第二工作频率的差值,根据该差值和频率误差阈值确定第一工作频率与第二工作频率之间是否满足频率匹配条件。In the case where the frequency matching condition includes a frequency error threshold, before step S23, the method further includes: the oscillation control device calculates the difference between the first operating frequency and the second operating frequency, and determines the first operating frequency according to the difference and the frequency error threshold Whether the frequency matching condition is satisfied with the second operating frequency.
由于频率误差阈值可以是绝对阈值,也可以是相对阈值,因此,根据差值和频率误差阈值确定第一工作频率与第二工作频率之间是否满足频率匹配条件包括:在频率误差阈值为绝对阈值的情况下,确定第一工作频率与第二工作频率的差值,比较该差值的绝对值与频率误差阈值的大小,当该差值的绝对值大于或等于频率误差阈值时,确定第一工作频率与第二工作频率之间不满足频率匹配条件,当该差值的绝对值小于频率误差阈值时,确定第一工作频率与第二工作频率之间满足频率匹配条件。Since the frequency error threshold can be an absolute threshold or a relative threshold, determining whether the frequency matching condition is satisfied between the first operating frequency and the second operating frequency according to the difference and the frequency error threshold includes: when the frequency error threshold is the absolute threshold In the case of , determine the difference between the first operating frequency and the second operating frequency, compare the absolute value of the difference with the frequency error threshold, when the absolute value of the difference is greater than or equal to the frequency error threshold, determine the first The frequency matching condition is not satisfied between the operating frequency and the second operating frequency, and when the absolute value of the difference is less than the frequency error threshold, it is determined that the frequency matching condition is satisfied between the first operating frequency and the second operating frequency.
在频率误差阈值为相对阈值的情况下,确定第一工作频率与第二工作频率的差值,并计算该差值的绝对值占第一工作频率的百分比,当该百分比大于或等于频率误差阈值时,确定第一工作频率与第二工作频率之间不满足频率匹配条件,当该百分比小于频率误差阈值时,确定第一工作频率与第二工作频率之间满足频率匹配条件。When the frequency error threshold is a relative threshold, determine the difference between the first operating frequency and the second operating frequency, and calculate the percentage of the absolute value of the difference to the first operating frequency, when the percentage is greater than or equal to the frequency error threshold When , it is determined that the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency, and when the percentage is less than the frequency error threshold, it is determined that the frequency matching condition is satisfied between the first operating frequency and the second operating frequency.
在一些可能的实现方式中,频率控制信号包括用于调整振荡装置工作参数的指示信息。In some possible implementations, the frequency control signal includes indication information for adjusting the operating parameters of the oscillating device.
在一些可能的实现方式中,在步骤S24中,振荡控制装置将频率控制信息发送到振荡装置,振荡装置根据该频率控制信息调整其工作参数,使从机由第二工作频率调整至第三工作频率,其中,第三工作频率与第一工作频率之间满足频率匹配条件。In some possible implementations, in step S24, the oscillation control device sends frequency control information to the oscillation device, and the oscillation device adjusts its operating parameters according to the frequency control information, so that the slave machine is adjusted from the second operating frequency to the third operating frequency frequency, wherein the frequency matching condition is satisfied between the third operating frequency and the first operating frequency.
在一个示例中,振荡装置包括电阻电容(Resistor-Capacitor,RC)振荡单元和锁相环(PLL)单元,振荡装置的工作参数包括电阻电容振荡单元的输出频率和锁相环单元的倍频调节参数,从机的工作频率等于输出频率与倍频调节参数的乘积。基于此,频率控制信号中的指示信息可以是指示电阻电容振荡单元调节输出频率的信息,和/或,指示锁相环单元调节倍频调节参数的信息。换言之,通过调整输出频率和倍频调节参数中的至少一者,以获得满足需求的第三工作频率。In one example, the oscillating device includes a Resistor-Capacitor (RC) oscillating unit and a phase-locked loop (PLL) unit, and the operating parameters of the oscillating device include an output frequency of the resistance-capacitor oscillating unit and frequency multiplication adjustment of the PLL unit parameter, the operating frequency of the slave is equal to the product of the output frequency and the frequency multiplier adjustment parameter. Based on this, the indication information in the frequency control signal may be information that instructs the resistance-capacitor oscillating unit to adjust the output frequency, and/or information that instructs the phase-locked loop unit to adjust the frequency multiplication adjustment parameter. In other words, by adjusting at least one of the output frequency and the frequency multiplier adjustment parameter, the third operating frequency that meets the requirements is obtained.
需要说明的是,本公开实施例提供的频率调整方法既适用于从机由初始启动到正常工作阶段的频率调整,也适用于从机在正常工作阶段的频率调整。换言之,第三工作频率可能并非从机的最终工作频率,在步骤S24之后,当从机和/或主机由于温度、电压等外部因素导致两者的工作频率之间不满足频率匹配条件时,从机中的振荡控制装置即可检测出来,并即时对从机的工作频率进行调整,使从机与主机的工作频率符合频率匹配条件。应当理解,无论处于何种阶段,频率调整方法的本质不会发生变化,本公开实施例对频率调整方法的使用阶段不作限制。It should be noted that the frequency adjustment method provided by the embodiments of the present disclosure is applicable to both the frequency adjustment of the slave machine from the initial startup to the normal working stage, and the frequency adjustment of the slave machine during the normal working stage. In other words, the third operating frequency may not be the final operating frequency of the slave. After step S24, when the operating frequencies of the slave and/or the master do not meet the frequency matching condition due to external factors such as temperature and voltage, the slave The oscillation control device in the machine can detect it and adjust the working frequency of the slave machine in real time, so that the working frequency of the slave machine and the master machine meet the frequency matching conditions. It should be understood that no matter what stage it is in, the essence of the frequency adjustment method will not change, and the embodiment of the present disclosure does not limit the use stage of the frequency adjustment method.
图3为本公开实施例提供的一种频率调整方法的流程图,应用于从机的振荡控制装置,从机还包括与该振荡控制装置连接的振荡装置。参照图3,该方法包括如下步骤。3 is a flowchart of a frequency adjustment method provided in an embodiment of the present disclosure, which is applied to an oscillation control device of a slave machine, and the slave machine further includes an oscillation device connected to the oscillation control device. 3, the method includes the following steps.
在步骤S31中,确定主机发送的检测包的发送间隔。In step S31, the transmission interval of the detection packets sent by the host is determined.
在步骤S32中,根据发送间隔,确定主机的第一工作频率。In step S32, the first operating frequency of the host is determined according to the sending interval.
本公开实施例中的步骤S31~S32与本公开上一实施例中步骤S21~S22的内容相同,在此不再赘述。The contents of steps S31 to S32 in the embodiment of the present disclosure are the same as the contents of steps S21 to S22 in the previous embodiment of the present disclosure, and are not repeated here.
在步骤S33中,根据输出频率和倍频调节参数,确定从机的第二工作频率。In step S33, the second operating frequency of the slave is determined according to the output frequency and the frequency multiplication adjustment parameter.
在一些可能的实现方式中,振荡装置包括RC振荡单元和锁相环单元,其中,RC振荡单元用于提供初始的输出频率,锁相环单元具有倍频功能,其可以通过倍频调节参数对RC振荡单元的输出频率进行倍频操作,从而使从机获得合适的工作频率。In some possible implementations, the oscillating device includes an RC oscillating unit and a phase-locked loop unit, wherein the RC oscillating unit is used to provide an initial output frequency, and the phase-locked loop unit has a frequency multiplication function, which can be adjusted by frequency multiplication parameters. The output frequency of the RC oscillator unit is multiplied, so that the slave can obtain a suitable working frequency.
在一些可能的实现方式中,在步骤S33中,将输出频率与倍频调节参数相乘,获得的乘积即为从机的第二工作频率。In some possible implementations, in step S33, the output frequency is multiplied by the frequency multiplication adjustment parameter, and the obtained product is the second operating frequency of the slave.
在步骤S34中,确定第一工作频率与第二工作频率的差值。In step S34, the difference between the first operating frequency and the second operating frequency is determined.
在步骤S35中,根据差值和频率误差阈值确定第一工作频率与第二工作频率之间是否满足频率匹配条件。In step S35, it is determined whether the frequency matching condition is satisfied between the first operating frequency and the second operating frequency according to the difference value and the frequency error threshold.
在步骤S36中,在第一工作频率与从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号。In step S36, if the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency of the slave, a frequency control signal is generated.
在步骤S37中,将频率控制信号发送至振荡装置,以供振荡装置根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率。In step S37, the frequency control signal is sent to the oscillating device, so that the oscillating device can adjust the working parameters according to the frequency control signal, so that the slave device can be adjusted from the second working frequency to the third working frequency.
需要说明的是,在步骤S35之后,如果确定第一工作频率与第二工作频率之间满足频率匹配条件,则振荡控制装置根据新接收到的检测包开始新一轮的检测,以确保可以及时检测到从机的工作频率与主机的工作频率之间不满足频率匹配条件的情况,并及时进行调整,保障从机与主机的正常通信。It should be noted that, after step S35, if it is determined that the frequency matching condition is satisfied between the first working frequency and the second working frequency, the oscillation control device starts a new round of detection according to the newly received detection packet, so as to ensure timely detection. It is detected that the working frequency of the slave machine and the working frequency of the host machine do not meet the frequency matching conditions, and the adjustment is made in time to ensure the normal communication between the slave machine and the host machine.
图4为本公开实施例提供的一种频率调整方法的流程图,应用于从机的振荡装置,从机还包括与该振荡装置连接的振荡控制装置。参照图4,该方法包括如下步骤。4 is a flowchart of a frequency adjustment method provided in an embodiment of the present disclosure, which is applied to an oscillation device of a slave machine, and the slave machine further includes an oscillation control device connected to the oscillation device. 4, the method includes the following steps.
在步骤S41中,接收振荡控制装置发送的频率控制信号。In step S41, the frequency control signal sent by the oscillation control device is received.
其中,频率控制信号为振荡控制装置在主机的第一工作频率和从机的第二工作频率之间不满足频率匹配条件的情况下发送的信号,第一工作频率为振荡控制装置根据主机发送的检测包的发送间隔确定的频率。The frequency control signal is a signal sent by the oscillation control device when the frequency matching condition is not satisfied between the first operating frequency of the master and the second operating frequency of the slave, and the first operating frequency is a signal sent by the oscillation control device according to the master. The frequency determined by the sending interval of the detection packet.
在步骤S42中,根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率,第三工作频率与第一工作频率之间满足频率匹配条件。In step S42, the working parameters are adjusted according to the frequency control signal, so that the slave is adjusted from the second working frequency to the third working frequency, and the frequency matching condition is satisfied between the third working frequency and the first working frequency.
在一些可能的实现方式中,频率控制信号包括用于调整振荡装置工作参数的指示信息。In some possible implementations, the frequency control signal includes indication information for adjusting the operating parameters of the oscillating device.
在一个示例中,振荡装置包括电阻电容(RC)振荡单元和锁相环(PLL)单元,振荡装置的工作参数包括电阻电容振荡单元的输出频率和锁相环单元的倍频调节参数,从机的工作频率等于输出频率与倍频调节参数的乘积。基于此,频率控制信号中的指示信息可以是指示电阻电容振荡单元调节输出频率的信息,和/或,指示锁相环单元调节倍频调节参数的信息。振荡装置接收频率控制信号之后,通过调整输出频率和倍频调节参数中的至少一者,从而使从机获得满足需求的第三工作频率。In one example, the oscillation device includes a resistance-capacitor (RC) oscillation unit and a phase-locked loop (PLL) unit, and the operating parameters of the oscillation device include an output frequency of the resistance-capacitor oscillation unit and a frequency multiplication adjustment parameter of the phase-locked loop unit, and the slave The operating frequency is equal to the product of the output frequency and the frequency multiplier adjustment parameter. Based on this, the indication information in the frequency control signal may be information that instructs the resistance-capacitor oscillating unit to adjust the output frequency, and/or information that instructs the phase-locked loop unit to adjust the frequency multiplication adjustment parameter. After receiving the frequency control signal, the oscillating device adjusts at least one of the output frequency and the frequency multiplication adjustment parameter, so that the slave obtains a third working frequency that meets the requirements.
图5为本公开实施例提供的一种频率调整方法的流程图,应用于从机的振荡装置,从机还包括与该振荡装置连接的振荡控制装置。参照图5,该方法包括如下步骤。5 is a flowchart of a frequency adjustment method provided by an embodiment of the present disclosure, which is applied to an oscillation device of a slave machine, and the slave machine further includes an oscillation control device connected to the oscillation device. 5, the method includes the following steps.
在步骤S51中,响应于启动指令,根据初始配置信息确定工作参数。In step S51, in response to the start-up instruction, the working parameters are determined according to the initial configuration information.
在步骤S52中,根据工作参数确定第二工作频率,以使从机基于第二工作频率进行工作。In step S52, the second working frequency is determined according to the working parameters, so that the slave machine works based on the second working frequency.
需要说明的是,由于上述第二工作频率是基于初始配置信息确定的工作参数而获得的频率,未经频率校准等操作,因此,该第二工作频率的精度通常较低。在后续操作中,振荡装置根据振荡控制装置发送的频率控制信号,对第二工作频率进行调整,从而可以获得精度较高的频率,使从机工作在与主机匹配的工作频率,保障从机与主机之间的正常通信。It should be noted that, because the above-mentioned second operating frequency is obtained based on the operating parameters determined by the initial configuration information, and is not operated such as frequency calibration, the accuracy of the second operating frequency is usually low. In the subsequent operation, the oscillation device adjusts the second operating frequency according to the frequency control signal sent by the oscillation control device, so that a frequency with higher precision can be obtained, so that the slave machine works at the operating frequency matching the master machine, so as to ensure that the slave machine and the Normal communication between hosts.
在步骤S53中,接收振荡控制装置发送的频率控制信号。In step S53, the frequency control signal sent by the oscillation control device is received.
在步骤S54中,根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率。In step S54, the operating parameters are adjusted according to the frequency control signal, so that the slave machine is adjusted from the second operating frequency to the third operating frequency.
其中,第三工作频率与第一工作频率之间满足频率匹配条件。Wherein, the frequency matching condition is satisfied between the third operating frequency and the first operating frequency.
本公开实施例中的步骤S53~S54与本公开上一实施例中步骤S41~S42的内容相同,在此不再赘述。Steps S53 to S54 in this embodiment of the present disclosure have the same contents as steps S41 to S42 in the previous embodiment of the present disclosure, and are not repeated here.
图6为本公开实施例提供的一种从机的示意图。参照图6,该从机包括:USB接口601、振荡装置602、振荡控制装置603、时钟相位调节模块604、数据收发模块605以及数据处理及协议解析模块606。其与图1所示的从机之间最大的区别之处在于,在从机内部增设振荡装置602和振荡控制装置603代替外部晶振。FIG. 6 is a schematic diagram of a slave according to an embodiment of the present disclosure. 6 , the slave includes: a
在一些可能的实现方式中,振荡装置602包括电容电阻振荡单元6021和锁相环单元6022。在从机的启动阶段,振荡装置602根据初始配置信息确定的工作参数进行初始化,生成精度较低的频率信号,此时从机以第二工作频率进行工作。数据收发模块605接收主机发送的SOF包,振荡控制装置603确定SOF包的发送间隔,根据发送间隔确定主机的第一工作频率,并比较第一工作频率和第二工作频率,根据比较结果和频率误差阈值确定是否需要调整从机的第二工作频率。当确定需要调整时,振荡控制装置603向振荡装置602发送频率控制信号。振荡装置602根据频率控制信号调整工作参数,使从机由第二工作频率调整到第三工作频率,其中,第三工作频率与第一工作频率之间满足频率匹配条件。In some possible implementations, the oscillation device 602 includes a capacitance-resistance oscillation unit 6021 and a phase-locked loop unit 6022 . In the start-up stage of the slave machine, the oscillation device 602 is initialized according to the working parameters determined by the initial configuration information to generate a frequency signal with lower precision. At this time, the slave machine works at the second working frequency. The data transceiver module 605 receives the SOF packet sent by the host, and the oscillation control device 603 determines the sending interval of the SOF packet, determines the first operating frequency of the host according to the sending interval, and compares the first operating frequency and the second operating frequency, and according to the comparison result and the frequency The error threshold determines whether the second operating frequency of the slave needs to be adjusted. When it is determined that adjustment is required, the oscillation control device 603 sends a frequency control signal to the oscillation device 602 . The oscillating device 602 adjusts the working parameters according to the frequency control signal, so that the slave machine is adjusted from the second working frequency to the third working frequency, wherein the third working frequency and the first working frequency satisfy the frequency matching condition.
在从机基于第三工作频率进行正常工作的过程中,振荡控制装置603会基于SOF包持续地检测从机的工作频率与主机的工作频率之间是否满足频率匹配条件,并在不满足该条件的情况下,即时地对振荡装置进行调整,以保障主机与从机的正常通信。During the normal operation of the slave based on the third operating frequency, the oscillation control device 603 will continuously detect whether the operating frequency of the slave and the operating frequency of the master satisfy the frequency matching condition based on the SOF packet, and if the condition is not satisfied Under the circumstance, adjust the oscillation device in real time to ensure the normal communication between the master and the slave.
时钟相位调节模块604和数据处理及协议解析模块606与图1所示的时钟相位调节模块104和数据处理及协议解析模块106基本相同,在此不再重复描述。The clock phase adjustment module 604 and the data processing and protocol analysis module 606 are basically the same as the clock phase adjustment module 104 and the data processing and protocol analysis module 106 shown in FIG. 1 , and the description is not repeated here.
图7为本公开实施例提供的一种频率调整方法的工作过程示意图。参照图7,该频率调整方法的工作过程包括如下步骤。FIG. 7 is a schematic diagram of a working process of a frequency adjustment method provided by an embodiment of the present disclosure. Referring to FIG. 7 , the working process of the frequency adjustment method includes the following steps.
步骤S701,从机进行初始化,配置RC振荡单元及PLL单元,产生低精度的高速时钟。Step S701, the slave is initialized, the RC oscillator unit and the PLL unit are configured, and a low-precision high-speed clock is generated.
步骤S702,主机发起USB握手,与从机协商USB协议,确认与从机之间的通信速率。Step S702, the host initiates a USB handshake, negotiates a USB protocol with the slave, and confirms the communication rate with the slave.
在一些可能的实现方式中,USB协议为USB2.0通信协议或USB3.0通信协议。相应的,USB接口也是支持USB2.0通信协议或USB3.0通信协议的接口。本公开对USB通信协议的版本不作限制。In some possible implementations, the USB protocol is a USB2.0 communication protocol or a USB3.0 communication protocol. Correspondingly, the USB interface is also an interface supporting the USB2.0 communication protocol or the USB3.0 communication protocol. The present disclosure does not limit the version of the USB communication protocol.
步骤S703,主机与从机均进入正常工作状态。In step S703, both the master and the slave enter a normal working state.
步骤S704,主机根据USB协议,按照规定的时间间隔向从机发送SOF包。Step S704, the host sends SOF packets to the slave according to the USB protocol at a specified time interval.
步骤S705,在接收到当前检测包的情况下,从机的振荡控制装置确定当前检测包与前一检测包的发送时间之间的间隔,获得发送间隔。Step S705, in the case of receiving the current detection packet, the oscillation control device of the slave determines the interval between the transmission time of the current detection packet and the previous detection packet, and obtains the transmission interval.
步骤S706,振荡控制装置根据SOF包的发送间隔确定主机的第一工作频率,并计算第一工作频率与从机的第二工作频率之间的差值。Step S706, the oscillation control device determines the first working frequency of the master according to the sending interval of the SOF packet, and calculates the difference between the first working frequency and the second working frequency of the slave.
步骤S707,当根据差值和频率阈值确定第一工作频率与第二工作频率之间不满足频率匹配条件的情况下,振荡控制装置向振荡装置发送频率控制信号。Step S707, when it is determined according to the difference value and the frequency threshold that the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency, the oscillation control device sends a frequency control signal to the oscillation device.
步骤S708,振荡装置根据频率控制信号调整RC振荡单元的输出频率和/或PLL单元的倍频调节参数,获得第三工作频率。Step S708, the oscillating device adjusts the output frequency of the RC oscillating unit and/or the frequency multiplication adjustment parameter of the PLL unit according to the frequency control signal to obtain a third operating frequency.
其中,第三工作频率与第一工作频率之间的差值小于频率误差阈值。Wherein, the difference between the third operating frequency and the first operating frequency is less than the frequency error threshold.
步骤S709,主机向从机发送数据包,两者正常进行通信。Step S709, the master sends a data packet to the slave, and the two communicate normally.
步骤S710,在工作过程中,振荡控制装置持续对SOF包的发送间隔进行检测,并在确定第三工作频率与第一工作频率之间的差值大于或等于频率误差阈值的情况下,对振荡装置进行即时调整。Step S710, during the working process, the oscillation control device continues to detect the sending interval of the SOF packet, and when it is determined that the difference between the third working frequency and the first working frequency is greater than or equal to the frequency error threshold The device makes instant adjustments.
由此可知,本公开实施例提供的频率调整方法既适用于从机由启动到正常工作状态的调整,也适用于从机在正常工作过程中的调整,通过不间断的、持续性的频率调整,可以保障从机与主机之间进行正常的信息传输。It can be seen from this that the frequency adjustment method provided by the embodiment of the present disclosure is not only applicable to the adjustment of the slave machine from startup to the normal working state, but also to the adjustment of the slave machine during the normal working process. Through uninterrupted and continuous frequency adjustment , which can ensure normal information transmission between the slave and the host.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the specific embodiment, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开还提供了振荡控制装置、振荡装置、从机、电子设备、计算机可读存储介质,上述均可用来实现本公开提供的任一种频率调整方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides an oscillation control device, an oscillation device, a slave machine, an electronic device, and a computer-readable storage medium, all of which can be used to implement any frequency adjustment method provided by the present disclosure, and the corresponding technical solutions and descriptions are referred to the method. Some of the corresponding records will not be repeated.
图8为本公开实施例提供的一种振荡控制装置的框图。FIG. 8 is a block diagram of an oscillation control apparatus according to an embodiment of the present disclosure.
参照图8,本公开实施例提供了一种振荡控制装置,该振荡控制装置包括如下单元。Referring to FIG. 8 , an embodiment of the present disclosure provides an oscillation control apparatus, and the oscillation control apparatus includes the following units.
间隔确定单元801,用于确定主机发送的检测包的发送间隔。The
频率确定单元802,用于根据发送间隔,确定主机的第一工作频率。The
生成单元803,用于在第一工作频率与从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号。The generating
发送单元804,用于将频率控制信号发送至振荡装置,以供振荡装置根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率,第三工作频率与第一工作频率之间满足频率匹配条件。The sending unit 804 is used for sending the frequency control signal to the oscillating device, so that the oscillating device can adjust the working parameters according to the frequency control signal, so that the slave is adjusted from the second working frequency to the third working frequency, and the third working frequency is the same as the first working frequency. The frequency matching conditions are satisfied between the frequencies.
在一些可能的实现方式中,检测包可以是主机根据与从机预先约定的传输协议发送的帧首包。In some possible implementations, the detection packet may be a frame header packet sent by the master according to a transmission protocol pre-agreed with the slave.
在一些可能的实现方式中,间隔确定单元801,用于在接收到当前检测包的情况下,确定当前检测包与前一检测包的发送时间之间的间隔,获得发送间隔。In some possible implementations, the
在一些可能的实现方式中,振荡装置包括电阻电容振荡单元和锁相环单元,振荡装置的工作参数包括电阻电容振荡单元的输出频率和锁相环单元的倍频调节参数。相应的,振荡控制装置还包括确定单元,用于在第一工作频率与从机的第二工作频率之间不满足频率匹配条件的情况下,生成频率控制信号之前,根据输出频率和倍频调节参数,确定从机的第二工作频率。In some possible implementations, the oscillating device includes a resistor-capacitor oscillating unit and a phase-locked loop unit, and the operating parameters of the oscillating device include an output frequency of the resistor-capacitor oscillating unit and a frequency multiplication adjustment parameter of the phase-locked loop unit. Correspondingly, the oscillation control device further includes a determination unit, which is used to adjust the frequency according to the output frequency and frequency multiplication before generating the frequency control signal under the condition that the frequency matching condition is not satisfied between the first operating frequency and the second operating frequency of the slave. parameter to determine the second operating frequency of the slave.
在一些可能的实现方式中,频率匹配条件包括频率误差阈值。相应的,振荡控制装置还包括差值计算单元和条件匹配单元。其中,差值计算单元用于确定第一工作频率与第二工作频率的差值;条件匹配单元用于根据差值和频率误差阈值确定第一工作频率与第二工作频率之间是否满足频率匹配条件。In some possible implementations, the frequency matching condition includes a frequency error threshold. Correspondingly, the oscillation control device further includes a difference calculation unit and a condition matching unit. Wherein, the difference calculation unit is used to determine the difference between the first operating frequency and the second operating frequency; the condition matching unit is used to determine whether frequency matching is satisfied between the first operating frequency and the second operating frequency according to the difference and the frequency error threshold condition.
根据本公开实施例,振荡控制装置能够对振荡装置进行及时有效的调整,使从机的工作频率与主机的工作频率之间满足频率匹配条件,从而确保从机与主机之间可以进行正常通信。According to the embodiment of the present disclosure, the oscillation control device can adjust the oscillation device in a timely and effective manner, so that the operating frequency of the slave machine and the operating frequency of the master machine satisfy the frequency matching condition, thereby ensuring normal communication between the slave machine and the master machine.
图9为本公开实施例提供的一种振荡装置的框图。FIG. 9 is a block diagram of an oscillating device according to an embodiment of the present disclosure.
参照图9,本公开实施例提供了一种振荡装置,该振荡装置包括如下单元。Referring to FIG. 9 , an embodiment of the present disclosure provides an oscillating device, and the oscillating device includes the following units.
接收单元901,用于接收振荡控制装置发送的频率控制信号。The receiving
其中,频率控制信号为振荡控制装置在主机的第一工作频率和从机的第二工作频率之间不满足频率匹配条件的情况下发送的信号,第一工作频率为振荡控制装置根据主机发送的检测包的发送间隔确定的频率。The frequency control signal is a signal sent by the oscillation control device when the frequency matching condition is not satisfied between the first operating frequency of the master and the second operating frequency of the slave, and the first operating frequency is a signal sent by the oscillation control device according to the master. The frequency determined by the sending interval of the detection packet.
调整单元902,用于根据频率控制信号调整工作参数,使从机由第二工作频率调整至第三工作频率,第三工作频率与第一工作频率之间满足频率匹配条件。The
在一些可能的实现方式中,振荡装置还包括参数确定单元和初始化单元。其中,参数确定单元用于响应于启动指令,根据初始配置信息确定工作参数;初始化单元,用于根据工作参数确定第二工作频率,以使从机基于第二工作频率进行工作。In some possible implementations, the oscillation device further includes a parameter determination unit and an initialization unit. Wherein, the parameter determination unit is used for determining the working parameter according to the initial configuration information in response to the start instruction; the initialization unit is used for determining the second working frequency according to the working parameter, so that the slave machine works based on the second working frequency.
根据本公开实施例,振荡装置能够代替外部晶振为从机提供频率信号,从而降低成本,并且,振荡装置可以根据振荡控制装置的指示及时准确地调整频率,确保从机的工作频率与主机的工作频率之间满足频率匹配条件,保障了从机与主机之间的正常通信。According to the embodiment of the present disclosure, the oscillating device can replace the external crystal oscillator to provide the frequency signal for the slave, thereby reducing the cost, and the oscillating device can timely and accurately adjust the frequency according to the instruction of the oscillation control device, so as to ensure the working frequency of the slave and the working frequency of the host. The frequency matching conditions are met between the frequencies, which ensures the normal communication between the slave and the master.
图10为本公开实施例提供的一种从机的框图。FIG. 10 is a block diagram of a slave provided by an embodiment of the present disclosure.
参照图10,本公开实施例提供了一种从机,该从机包括:至少一个振荡装置1001;以及与至少一个振荡装置1001连接的振荡控制装置10012。10 , an embodiment of the present disclosure provides a slave machine, the slave machine includes: at least one
其中,振荡控制装置用于实现本公开实施例任一项的频率调整方法;振荡装置用于实现本公开实施例任一项的频率调整方法。The oscillation control device is used to implement the frequency adjustment method of any one of the embodiments of the present disclosure; the oscillation device is used to implement the frequency adjustment method of any one of the embodiments of the present disclosure.
根据本公开实施例,在从机内部设置成本较低的振荡装置和振荡控制装置代替外部晶振,可以有效降低从机成本,而且,由振荡控制装置负责检测从机的工作频率与主机的工作频率之间是否满足频率匹配条件,并在不满足该频率匹配条件的情况下,向振荡装置发送频率控制信号,振荡装置根据频率控制信号调整工作参数,使从机的工作频率与主机的工作频率符合该频率匹配条件,从而可以及时准确地调整从机的工作频率,保障主机与从机之间的正常通信。According to the embodiments of the present disclosure, a low-cost oscillation device and an oscillation control device are provided inside the slave to replace the external crystal oscillator, which can effectively reduce the cost of the slave. Moreover, the oscillation control device is responsible for detecting the operating frequency of the slave and the operating frequency of the host. Whether the frequency matching conditions are met, and if the frequency matching conditions are not met, a frequency control signal is sent to the oscillating device, and the oscillating device adjusts the working parameters according to the frequency control signal, so that the working frequency of the slave is consistent with the working frequency of the host. The frequency matches the condition, so that the working frequency of the slave can be adjusted timely and accurately, and the normal communication between the master and the slave can be guaranteed.
图11为本公开实施例提供的一种电子设备的框图。FIG. 11 is a block diagram of an electronic device according to an embodiment of the present disclosure.
参照图11,本公开实施例提供了一种电子设备,该电子设备包括:至少一个处理器1101;至少一个存储器1102,以及一个或多个I/O接口1103,连接在处理器1101与存储器1102之间;其中,存储器1102存储有可被至少一个处理器1101执行的一个或多个计算机程序,一个或多个计算机程序被至少一个处理器1101执行,以使至少一个处理器1101能够执行上述的频率调整方法。11 , an embodiment of the present disclosure provides an electronic device, the electronic device includes: at least one
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序在被处理器/处理核执行时实现上述的频率调整方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned frequency adjustment method when executed by a processor/processing core. Computer-readable storage media can be volatile or non-volatile computer-readable storage media.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述频率调整方法。Embodiments of the present disclosure also provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device During operation in the electronic device, the processor in the electronic device executes the above-mentioned frequency adjustment method.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读存储介质上,计算机可读存储介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, functional modules/units in the system, and the apparatus can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable storage media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读程序指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM)、静态随机存取存储器(SRAM)、闪存或其他存储器技术、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读程序指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。As is known to those of ordinary skill in the art, the term computer storage media includes both volatile and non-volatile memory media implemented in any method or technology for storage of information, such as computer readable program instructions, data structures, program modules or other data. volatile, removable and non-removable media. Computer storage media include, but are not limited to, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or which can be used to store desired information and which can be accessed by a computer any other medium. In addition, communication media typically embodies computer readable program instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery, as is well known to those of ordinary skill in the art medium.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions for carrying out the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.
这里所描述的计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software DevelopmentKit,SDK)等等。The computer program product described herein may be embodied in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. .
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should only be construed in a general descriptive sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with other embodiments, unless expressly stated otherwise. Features and/or elements are used in combination. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the scope of the present disclosure as set forth in the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210498769.5A CN114710257A (en) | 2022-05-09 | 2022-05-09 | Frequency adjusting method and device and slave |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210498769.5A CN114710257A (en) | 2022-05-09 | 2022-05-09 | Frequency adjusting method and device and slave |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114710257A true CN114710257A (en) | 2022-07-05 |
Family
ID=82176257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210498769.5A Pending CN114710257A (en) | 2022-05-09 | 2022-05-09 | Frequency adjusting method and device and slave |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114710257A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117234137A (en) * | 2023-11-08 | 2023-12-15 | 深圳市航顺芯片技术研发有限公司 | MCU clock frequency switching circuit, MCU and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604182A (en) * | 2008-06-13 | 2009-12-16 | 原相科技股份有限公司 | Method for automatically adjusting clock frequency and clock frequency adjusting circuit |
CN102571080A (en) * | 2010-12-27 | 2012-07-11 | 北京中电华大电子设计有限责任公司 | clock recovery method and circuit supporting dynamic calibration |
US20160380759A1 (en) * | 2015-06-26 | 2016-12-29 | Kabushiki Kaisha Toshiba | Phase locked loop, wireless communication apparatus and wireless communication method |
-
2022
- 2022-05-09 CN CN202210498769.5A patent/CN114710257A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604182A (en) * | 2008-06-13 | 2009-12-16 | 原相科技股份有限公司 | Method for automatically adjusting clock frequency and clock frequency adjusting circuit |
CN102571080A (en) * | 2010-12-27 | 2012-07-11 | 北京中电华大电子设计有限责任公司 | clock recovery method and circuit supporting dynamic calibration |
US20160380759A1 (en) * | 2015-06-26 | 2016-12-29 | Kabushiki Kaisha Toshiba | Phase locked loop, wireless communication apparatus and wireless communication method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117234137A (en) * | 2023-11-08 | 2023-12-15 | 深圳市航顺芯片技术研发有限公司 | MCU clock frequency switching circuit, MCU and electronic equipment |
CN117234137B (en) * | 2023-11-08 | 2024-02-02 | 深圳市航顺芯片技术研发有限公司 | MCU clock frequency switching circuit, MCU and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI775988B (en) | Phase locked loop electronic circuit, electronic device using the same and method for correcting duty cycle | |
CN109547146B (en) | Wireless clock synchronization method and device based on ultra-wideband wireless communication | |
US9054821B2 (en) | Apparatus and method for frequency locking | |
US20070297553A1 (en) | Clock offset compensator | |
JP5696777B2 (en) | Clock generator and system including the same | |
CN104410410A (en) | Pulse signal source device | |
CN104516397A (en) | Method for electronic portable device to process data according to clock frequency extracted from host device | |
US9503108B2 (en) | Oscillation circuit, oscillator, electronic device, and moving object | |
CN114710257A (en) | Frequency adjusting method and device and slave | |
JP2025518436A (en) | Variable Capacitor Device Using Differential Voltage Control | |
US20130103969A1 (en) | Clock generation device for usb device | |
CN117097329A (en) | Digital signal processing method and system | |
TWI478501B (en) | Transceiver, voltage control oscillator thereof and control method thereof | |
US10152107B2 (en) | Multi-core dynamic frequency control system | |
WO2021259324A1 (en) | Clock sending apparatus and method, and clock receiving apparatus and method | |
CN101594143A (en) | Clock generation circuit, device for communicating with host, and communication system | |
CN105938330A (en) | Rebounding high-Q-value digital PLL simulation system | |
CN205563133U (en) | Digital PLL phase -locked loop simulation system of high Q value that rebounds | |
CN103455085A (en) | Circuit and method for generating USB host work clock | |
CN108809302A (en) | A kind of phase-locked loop frequency integrator and control method for frequency | |
JP2005086789A (en) | Clock data recovery circuit | |
US8332681B2 (en) | Automatic reference frequency compensation | |
US20200067516A1 (en) | Electronic circuit for adjusting phase of clock | |
CN111525975A (en) | Clock synchronization method, receiver, transmitter and system | |
US9571111B1 (en) | System and method to speed up PLL lock time on subsequent calibrations via stored band values |
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 |
Application publication date: 20220705 |
|
RJ01 | Rejection of invention patent application after publication |