IO pulse input high-speed counter

Through the combined use of GPIOTE, PPI and TIMER peripherals, the hardware-level pulse counting is realized without interruption, which solves the problems of inaccurate counting and MCU crash at high frequencies, and improves the stability and battery life of the counter .

CN222029916UActive Publication Date: 2024-11-19HANGZHOU LIERDA CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420567623.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-11-19
Estimated Expiration
2034-03-22

AI Technical Summary

Technical Problem

When the input frequency is high, existing IO pulse counters are prone to inaccurate counting, random counting values ​​lost, irregular MCU crashes and waste of CPU resources, which affects the continuous use of the counter.

Method used

A joint peripheral composed of GPIOTE, PPI and TIMER peripherals is used as the hardware input pulse counter to avoid the CPU participating in interrupt processing and achieve high-speed pulse counting without interruption.

Benefits of technology

Improves the stability and accuracy of the counter, reduces power consumption, extends the battery life of the device, and avoids MCU crashes and waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222029916U_ABST
    Figure CN222029916U_ABST
Patent Text Reader

Abstract

The utility model discloses an IO (input / output) pulse input high-speed counter, which overcomes the problems that an MCU (micro control unit) terminal is abnormal, normal operation of the counter is affected and the counter cannot be continuously used due to overhigh input frequency of the IO pulse counter in the prior art, and comprises a main control unit and a peripheral circuit connected with the main control unit, the combined peripheral equipment comprises a GPIOTE peripheral equipment, the GPIOTE peripheral equipment is connected with a PPI peripheral equipment, and the PPI peripheral equipment is connected with a TIMER peripheral equipment. And the counter can be continuously used when the input frequency of the counter is too high, the stability is high, the accuracy is high, high-speed pulse counting can be realized, the power consumption is low, and the endurance time is long.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of pulse counting, in particular to an IO pulse input high-speed counter. Background Art

[0002] A pulse counter is used to measure the number of pulse signals. It is usually used in applications such as counting, timing, measuring frequency and speed. It can count common types of electrical pulse signals. The working principle of a pulse counter is based on digital electronic technology and includes an input port for receiving pulse signals. When a pulse signal arrives at the input port, the counter will record a count value.

[0003] Most of the existing technical solutions count through the IO interrupt method. According to the program needs, an IO trigger mode is first set to be rising edge trigger or falling edge trigger, and then the IO interrupt function interface is set. Then a global variable is set and the variable is added according to the number of interrupts generated. In this way, the number of input pulses within a period of time can be obtained. If the value needs to be divided, the variable is directly divided; if the value needs to be multiplied, the variable is directly multiplied; if the count value needs to be cleared, it is also very convenient, and the variable can be directly assigned to 0.

[0004] However, as the input frequency increases, inaccurate counting may occur, and the number of lost counts is not a certain value, but random. As the frequency increases, the MCU may even freeze irregularly. This input frequency interruption exception is a waste of resources for the MCU CPU and may affect the operation of other functional logics of the MCU and cannot be used continuously. Summary of the invention

[0005] The purpose of the utility model is to overcome the problem in the prior art that the input frequency of the IO pulse counter is too high, which will cause the MCU terminal to be abnormal, affect the normal operation of the counter, and cannot be used continuously. An IO pulse input high-speed counter is provided, and a joint peripheral composed of a GPIOTE peripheral, a PPI peripheral and a TIMER peripheral is used as a hardware input pulse counter. There will be no interruption during the counting process, and the counter can be used continuously when the input frequency is too high. It has high stability and accuracy, can realize high-speed pulse counting, has low power consumption and long battery life.

[0006] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0007] An IO pulse input high-speed counter comprises a main control unit and a peripheral circuit connected to the main control unit, wherein a joint peripheral is installed inside the main control unit, wherein the joint peripheral comprises a GPIOTE peripheral, wherein the GPIOTE peripheral is connected to a PPI peripheral, and wherein the PPI peripheral is connected to a TIMER peripheral.

[0008] The IO pulse input high-speed counter in the utility model selects GPIOTE, PPI and TIMER peripherals as joint peripherals to complete the pulse input counting function. The CPU does not need to participate, so there is no interruption. Without the CPU's participation in frequent interrupt processing, the MCU will not freeze, and there is no situation where the MCU's computing resources are wasted. At the same time, since there is no need to frequently wake up the MCU, there is also a significant improvement in power consumption when in use, which can provide a longer battery life for low-power devices, bring more competitive products, and bring a better product experience. And the GPIOTE peripheral, PPI peripheral and TIMER peripheral are all existing hardware peripherals in the prior art. The utility model only combines these three peripherals in structure and does not involve the improvement of computer programs. The GPIOTE peripheral can capture pulse signals and generate events; the PPI peripheral is a programmable peripheral interconnection. The module peripheral can enable the peripheral peripherals to interact autonomously. After setting the interaction logic and channel, the peripheral peripheral can be independent of the CPU, and the peripheral linkage can be realized without the participation of the CPU. In the utility model, it can play the role of counting conduction.

[0009] Preferably, each channel of the GPIOTE peripheral is provided with an external GPIO pin.

[0010] The GPIOTE peripheral enables a GPIO to generate events when the pin changes state.

[0011] Preferably, the TIMER peripheral is a general counter, and the general counter includes a counting register.

[0012] The register can automatically save the count value.

[0013] Preferably, the main control unit is an nRF52x chip.

[0014] Preferably, the peripheral circuit includes a radio frequency coaxial connector, and the antenna interface of the nRF52x chip is connected to the antenna via the radio frequency coaxial connector.

[0015] Preferably, the peripheral circuit includes a first crystal oscillator circuit and a second crystal oscillator circuit.

[0016] The crystal oscillator circuit provides a stable clock signal for the counter.

[0017] Preferably, the PIN 0.02 pin of the nRF52x chip is a pulse input pin, which is connected to a signal generator.

[0018] Select PIN 0.02 as the pulse input pin. The signal generator provides a pulse signal to the PIN0.02 pin of nRF52840. The nRF52x chip can run and provide a hardware platform for the counter.

[0019] Preferably, a short-circuit bridge circuit is connected to the second crystal oscillator circuit.

[0020] Therefore, the utility model has the following beneficial effects:

[0021] A joint peripheral consisting of GPIOTE peripheral, PPI peripheral and TIMER peripheral is selected as the hardware input pulse counter to complete the pulse input counting function. The MCU's CPU does not need to participate in pulse counting, and no interruption will occur during the counter technology process. At the same time, since there is no CPU involved in frequent interrupt processing, the MCU will not crash, saving resources and making the technology more stable. There is no need to wake up the MCU frequently, and the power consumption is low. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the overall structure of the utility model.

[0023] Figure 2 It is a circuit structure diagram of the main control unit and the peripheral circuit in the utility model.

[0024] Figure 3 It is a circuit structure schematic diagram of the antenna circuit in the utility model.

[0025] Figure 4 It is a circuit structure schematic diagram of the second crystal oscillator circuit in the utility model.

[0026] Figure 5 It is a circuit structure diagram of part of the power supply circuit in the utility model.

[0027] In the figure: 1. Main control unit; 2. GPIOTE peripheral; 3. PPI peripheral; 4. TIMER peripheral; 5. Peripheral circuit; 6. Signal generator. DETAILED DESCRIPTION

[0028] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods:

[0029] Embodiment 1:

[0030] This embodiment is an IO pulse input high-speed counter, and its overall structure is as follows: Figure 1As shown, it includes a main control unit 1, a peripheral circuit 5 and a combined peripheral device. The main control unit is connected to the peripheral circuit, and the combined peripheral device is installed inside the main control unit.

[0031] Specifically, the joint peripherals include a GPIOTE peripheral 2, a PPI peripheral 3, and a TIMER peripheral 4. The GPIOTE peripheral is connected to the PPI peripheral, and the PPI peripheral is connected to the TIMER peripheral.

[0032] The IO pulse input high-speed counter provided in this embodiment preferably uses the nRF52 series chip as the main control. In this embodiment, the nRF52840 chip is selected. The nRF52840 chip is combined with a small amount of peripheral circuits composed of resistors, capacitors, inductors, crystal oscillators and other devices to form a minimum system. Select PIN 0.02 of the nRF52840 chip as the pulse input pin, connect the signal generator 6, and the signal generator provides a pulse signal input to the PIN0.02 pin of the nRF52840; an external battery or power supply provides 3.3V system power supply, and the minimum system can be run, providing a hardware platform for the counter to run.

[0033] The peripherals select GPIOTE peripheral, PPI peripheral and TIMER peripheral as joint peripherals to complete the pulse input counting function. The meaning of GPIOTE peripheral is GPIO task and event module. This module peripheral provides the use of task and event functions. Each channel of GPIOTE peripheral can be assigned to an external GPIO pin. GPIOTE peripheral enables GPIO to generate events when the pin state changes. These events can be used for PPI peripherals. Therefore, with GPIOTE peripheral, pulse signals can be captured and events can be generated.

[0034] The meaning of PPI peripheral is programmable peripheral interconnection. This module peripheral enables peripherals to interact autonomously. After setting the interaction logic and channels, the peripherals can be independent of the CPU and realize peripheral linkage without the participation of the CPU. It can play the role of counting conduction in the IO pulse input high-speed counter.

[0035] TIMER peripheral This peripheral is a general-purpose timer, which is used to perform timing or measure time within a time interval selected by the user. It can work in two modes: timer and counter. The TIMER peripheral in this embodiment works in counter mode. In counter mode, each time a task is received, the Counter register in the TIMER peripheral will increase a count value, and the register can automatically save the count value. Therefore, it is only necessary to read the value of the Counter register when the pulse count value is needed, and the frequency multiplication or division can be directly performed.

[0036] The IO pulse input high-speed counter provided in this embodiment solves the problems of count loss, MCU crash, interrupt input CPU resource waste and loss of the existing IO pulse counter, and uses the joint work of multiple peripherals to complete the pulse input counting at the peripheral level, so as to achieve the purpose of not requiring the MCU's CPU to participate in pulse counting, thereby releasing the MCU computing power. The count loss problem is caused by the MCU being under high load when the frequency is high or other high interrupt priorities interrupting the IO interrupt, resulting in count loss. Since the peripherals work together, the CPU does not need to participate, and there is no interruption, so this problem is solved; the MCU crash problem, since there is no CPU involved in frequent interrupt processing, the MCU will not crash, and there is no waste of MCU computing resources. At the same time, since there is no need to wake up the MCU frequently, there is also a significant improvement in power consumption during use, which can provide longer battery life for low-power devices, bring more competitive products, and bring a better product experience.

[0037] It should be noted that the IO pulse input high-speed counter provided in this embodiment mainly uses a joint peripheral composed of three hardware modules - GPIOTE peripheral, PPI peripheral and TIMER peripheral as a hardware input pulse counter to complete the pulse input counting at the peripheral level. The functions implemented by each module are already available in the prior art and do not involve improvements to computer programs.

[0038] Embodiment 2:

[0039] This embodiment is an IO pulse input high-speed counter. This embodiment is an IO pulse input high-speed counter. Its overall structure is as follows: Figure 1 As shown, it includes a main control unit, peripheral circuits and combined peripherals. The main control unit is connected to the peripheral circuits, and the combined peripherals are installed inside the main control unit.

[0040] Specifically, the joint peripherals include a GPIOTE peripheral, a PPI peripheral and a TIMER peripheral. The GPIOTE peripheral is connected to the PPI peripheral, and the PPI peripheral is connected to the TIMER peripheral.

[0041] Since the Nordic chip does not have a ready-made, single hardware input counting function that can be used directly, most of the traditional IO pulse input high-speed counters are counted by IO interruption, which has the problems of count loss, MCU crash, interrupt input CPU resource waste and loss. The IO pulse input high-speed counter provided in this embodiment uses a joint peripheral composed of multiple peripherals as a hardware input pulse counter to complete the pulse input counting at the peripheral level, thereby achieving the purpose of not requiring the MCU's CPU to participate in pulse counting, thereby releasing the MCU computing power. The count loss problem is caused by the MCU being under high load when the frequency is high or other high interrupt priorities interrupting the IO interrupt, resulting in count loss. Since the peripherals work together, the CPU does not need to participate, and there is no interruption, so this problem is solved; the MCU crash problem, since there is no CPU involved in frequent interrupt processing, the MCU will not crash, and there is no situation where the MCU's computing resources are wasted. At the same time, since there is no need to wake up the MCU frequently, there is also a significant improvement in power consumption when in use, which can provide a longer battery life for low-power devices, bring more competitive products, and bring a better product experience.

[0042] The main control unit adopts the nRF52 series chip. Specifically, in this embodiment, Figures 2 to 5 As shown, nRF52840 chip U1 is used as the main control unit; the peripheral circuit includes button switch SB1, button switch SB2, button switch SB3, button switch SB4, capacitor C1, capacitor C2, capacitor C3, capacitor C4, capacitor C5, capacitor C6, capacitor C7, capacitor C8, capacitor C9, capacitor C10, capacitor C11, capacitor C12, capacitor C13, capacitor C14, capacitor C15, capacitor C16, capacitor C17, capacitor C18, capacitor C19, capacitor C20, capacitor C21, capacitor C22, capacitor C23, inductor L1, inductor L2, inductor L3, inductor L4, crystal oscillator X1, crystal oscillator X2 and RF coaxial connector J1. Among them, capacitor C3, inductor L1, capacitor C4, capacitor C22, capacitor C23 and RF coaxial connector J1 constitute an antenna circuit; crystal oscillator X1, capacitor C1 and capacitor C2 constitute a first crystal oscillator circuit; crystal oscillator X2, capacitor X17 and capacitor C18 constitute a second crystal oscillator circuit; button switch SB1, button switch SB2, button switch SB3, button switch SB4 constitute a short-circuit bridge circuit, and the short-circuit bridge circuit is connected to the second crystal oscillator circuit.

[0043] Specifically, Figure 3As shown, in the antenna circuit, one end of the capacitor C3 is connected to the ANT end of the nRF52840 chip U1, and the other end of the capacitor C3 is connected to the VSS_PA end of the nRF52840 chip U1 and grounded; one end of the inductor L1 is connected to the ANT end of the nRF52840 chip U1, and the other end of the inductor L1 is respectively connected to one end of the capacitor C4 and one end of the capacitor C22, the other end of the capacitor C4 is grounded, one end of the capacitor C22 is connected to the RF coaxial connector J1, the other end of the capacitor C22 is grounded, one end of the capacitor C23 is grounded, and the other end of the capacitor C23 is respectively connected to the RF coaxial connector J1 and the antenna.

[0044] In this embodiment, the RF coaxial connector J1 adopts the MM8130-2600 model RF coaxial connector, which is used to realize signal transmission between the antenna and the nRF52840 chip U1, and can effectively shield external electromagnetic interference and prevent signal interference and attenuation.

[0045] In the first crystal oscillator circuit, one end of the crystal oscillator X1 is connected to one end of the capacitor C2 and the XC1 end of the nRF52840 chip U1 respectively, and the other end of the crystal oscillator X1 is connected to one end of the capacitor C3 and the XC2 end of the nRF52840 chip U1 respectively, and the other end of the capacitor C2 is grounded, and the other end of the capacitor C3 is grounded.

[0046] The first crystal oscillator circuit is an external crystal oscillator circuit. The crystal oscillator circuit acts as a main oscillator to generate a stable pulse signal and provide a stable clock signal to ensure that the electronic equipment can work according to a predetermined time sequence.

[0047] Capacitors C2 and C3 are load capacitors. To meet the resonance condition, the equivalent capacitance at both ends of the crystal oscillator X1 is equal to or close to the load capacitance. Only by connecting the appropriate capacitors can the crystal oscillator's start-up requirements be met and the crystal oscillator can work properly.

[0048] If the load capacitance cannot be met, the crystal frequency will generally deviate, and in serious cases, the crystal cannot oscillate. In circuit design, the load capacitance requirements of the crystal should be met as much as possible so that the crystal can work in the best state. The load capacitance calculation formula is as follows:

[0049] CL = C1*C2 / (C1+C2) + CS

[0050] CL is the load capacitance of the crystal oscillator, and CS is the parasitic capacitance of the circuit board, which is generally 3~5pF.

[0051] like Figure 4As shown, in the second crystal oscillator circuit and the short-circuit bridge circuit, one end of the crystal oscillator X2 is respectively connected to one end of the button switch SB1 and one end of the capacitor C18, the other end of the crystal oscillator X2 is respectively connected to one end of the button switch SB2 and one end of the capacitor C17, the other end of the capacitor C17 is grounded, and the other end of the capacitor C18 is grounded; the other end of the button switch SB2 is respectively connected to the button switch SB4 and the XL1 end of the nRF52840 chip U1, and the other end of the button switch SB1 is respectively connected to the button switch SB3 and the XL4 end of the nRF52840 chip U1.

[0052] The present embodiment also includes that the VDD terminal (W1) of the nRF52840 chip U1 is connected to the power supply VDD, and the VDD terminal (W1) of the nRF52840 chip U1 is connected to one end of the capacitor C6, and the other end of the capacitor C6 is grounded; one end of the inductor L4 is connected to the VDD terminal (W1) of the nRF52840 chip U1, and the other end of the inductor L4 is connected to the DCCH terminal of the nRF52840 chip U1; the VDDH terminal of the nRF52840 chip U1 is connected to one end of the capacitor C19, and the other end of the capacitor C19 is grounded; the DECUSB terminal of the nRF52840 chip U1 is connected to one end of the capacitor C20, and the other end of the capacitor C20 is grounded; the VBUS terminal of the nRF52840 chip U1 is connected to the battery and to one end of the capacitor C21, and the other end of the capacitor C21 is grounded; the VDD terminal (AD14) of the nRF52840 chip U1 is connected to one end of the capacitor C7, and the other end of the capacitor C7 is grounded.

[0053] The DEC1 end of the nRF52840 chip U1 is connected to one end of the capacitor C5, and the other end of the capacitor C5 is grounded; the DCC end of the nRF52840 chip U1 is connected to one end of the inductor L2, and the other end of the inductor L2 is connected to one end of the inductor L3, and the other end of the inductor L3 is respectively connected to one end of the capacitor C15 and the DEC4 end of the nRF52840 chip U1; the other end of the capacitor C15 is connected to the VSS end of the nRF52840 chip U1, and the nRF52840 chip U 1's VSS end is grounded; one end of capacitor C16 is connected to the VSS end of nRF52840 chip U1, and the other end of capacitor C16 is respectively connected to the other end of inductor L3 and DEC6 end of nRF52840 chip U1; DEC2 end of nRF52840 chip U1 is connected to one end of capacitor C13, and the other end of capacitor C13 is grounded; VDD end (A22) of nRF52840 chip U1 is connected to one end of capacitor C12, and the other end of capacitor C12 is grounded.

[0054] The DEC3 terminal of the nRF52840 chip U1 is connected to the capacitor C11 terminal, and the other end of the capacitor C11 is grounded; the DEC6 terminal of the nRF52840 chip U1 is connected to one end of the capacitor C10, and the other end of the capacitor C10 is grounded; the DEC5 terminal of the nRF52840 chip U1 is connected to one end of the capacitor C9, and the other end of the capacitor C9 is grounded; the VDD terminal (AD23) of the nRF52840 chip U1 is connected to one end of the capacitor C8, and the other end of the capacitor C8 is grounded; the VDD terminal (W1), VDD terminal (AD14), VDD terminal (A22) and VDD terminal (AD23) of the nRF52840 chip U1 are connected.

[0055] PIN 0.02 of nRF52840 chip U1 is used as the pulse input pin. The signal generator is connected to provide a pulse signal input to the PIN0.02 pin of nRF52840.

[0056] This embodiment adopts a joint innovative design method of GPIOTE+PPI+TIMER peripherals, and can achieve hardware-level high-speed pulse counting without the participation of the CPU. It fundamentally changes the traditional conventional design method of using GPIO interrupts to count, thereby avoiding the waste of CPU computing resources and functional anomalies caused by the design defects of the solution itself, which even affect the use of the entire machine. The IO pulse input high-speed counter provided by this embodiment can achieve a more stable, more accurate, and higher-speed counting mode. As long as the IO can receive the maximum pulse rate, the number of pulses can be counted normally, thereby bringing more accurate pulse number counting to the application design and achieving a qualitative upgrade in product experience.

[0057] Embodiment three:

[0058] This embodiment is an IO pulse input high-speed counter, and its overall structure is as follows: Figure 1 As shown, it includes a main control unit 1, a peripheral circuit 5 and a combined peripheral device. The main control unit is connected to the peripheral circuit, and the combined peripheral device is installed inside the main control unit.

[0059] Specifically, the joint peripherals include a GPIOTE peripheral 2, a PPI peripheral 3, and a TIMER peripheral 4. The GPIOTE peripheral is connected to the PPI peripheral, and the PPI peripheral is connected to the TIMER peripheral.

[0060] In this embodiment, the high-speed counter further includes a data transmission module, and the data transmission module is used to transmit the counting data of the high-speed counter to the terminal for display.

[0061] When the IO pulse input high-speed counter provided in this embodiment works, first select the designated IO to initialize the IO pin to the GPIOTE peripheral, turn on the event of the GPIOTE peripheral; initialize the TIMER peripheral to the counter mode; allocate the idle channel of the PPI peripheral, obtain the PPI channel usage permission; obtain the task address of the TIMER peripheral, and at the same time obtain the event of the GPIOTE peripheral just set, connect the GPIOTE peripheral and the TIMER peripheral, enable the PPI peripheral to work, and then the internal peripherals are combined. The count value of the IO pulse input high-speed counter provided in this embodiment is accurate, the MCU does not freeze, and other logics are executed normally without exception.

[0062] The IO pulse input high-speed counter provided in this embodiment preferably uses the nRF52 series chip as the main control. In this embodiment, the nRF52840 chip is selected. The nRF52840 chip is combined with a small amount of peripheral circuits composed of resistors, capacitors, inductors, crystal oscillators and other devices to form a minimum system. Select PIN 0.02 of the nRF52840 chip as the pulse input pin, connect the signal generator 6, and provide a 3.3V system power supply. The minimum system can be run, providing a hardware platform for the counter to run.

[0063] The IO pulse input high-speed counter provided in this embodiment selects GPIOTE peripherals, PPI peripherals and TIMER peripherals as hardware input pulse counters to complete the pulse input counting function, which solves the problems of count loss, MCU crash, interrupt input CPU resource waste and loss of the existing IO pulse counter, and does not require the MCU's CPU to participate in pulse counting, thereby releasing the MCU computing power. The count loss problem is caused by the MCU being under high load when the frequency is high or other high interrupt priorities interrupting the IO interrupt, resulting in count loss. Since the peripherals work together, the CPU does not need to participate, and there is no interruption, so this problem is solved; the MCU crash problem, since there is no CPU involved in frequent interrupt processing, the MCU will not crash, and there is no waste of MCU computing resources. At the same time, since there is no need to wake up the MCU frequently, there is also a significant improvement in power consumption during use, which can provide longer battery life for low-power devices, bring more competitive products, and bring a better product experience.

[0064] The above-described embodiment is only a preferred solution of the present invention and does not limit the present invention in any form. There are other variations and modifications without exceeding the technical solution described in the claims.

Claims

1. An IO pulse input high-speed counter, characterized in that: It comprises a main control unit and a peripheral circuit connected to the main control unit. The main control unit is internally installed with a joint peripheral. The joint peripheral comprises a GPIOTE peripheral. The GPIOTE peripheral is connected to a PPI peripheral. The PPI peripheral is connected to a TIMER peripheral.

2. The IO pulse input high-speed counter according to claim 1, characterized in that: Each channel of the GPIOTE peripheral is equipped with an external GPIO pin.

3. The IO pulse input high-speed counter according to claim 1, characterized in that: The TIMER peripheral is a general counter, and the general counter includes a counting register.

4. An IO pulse input high-speed counter according to claim 1, 2 or 3, characterized in that: The main control unit is an nRF52x chip.

5. The IO pulse input high-speed counter according to claim 4, characterized in that: The peripheral circuit includes a radio frequency coaxial connector, and the antenna interface of the nRF52x chip is connected to the antenna through the radio frequency coaxial connector.

6. The IO pulse input high-speed counter according to claim 5, characterized in that: The peripheral circuit includes a first crystal oscillator circuit and a second crystal oscillator circuit.

7. The IO pulse input high-speed counter according to claim 4, characterized in that: The PIN 0.02 pin of the nRF52x chip is a pulse input pin, which is connected to a signal generator.

8. The IO pulse input high-speed counter according to claim 6, characterized in that: The second crystal oscillator circuit is connected to a short-circuit bridge circuit.