A method, system, equipment, and storage medium for batch production testing of RTC real-time clocks.

By utilizing a batch RTC real-time clock production testing system with serial communication and temperature and humidity compensation technology, the problems of signal attenuation and high cost in RTC real-time clock frequency testing have been solved, enabling efficient and accurate batch testing and improving production testing efficiency and reliability.

CN120508183BActive Publication Date: 2026-11-10SHENZHEN HEIMAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510380642.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2026-11-10
Estimated Expiration
2045-03-28

AI Technical Summary

Technical Problem

Existing technologies suffer from problems such as signal coupling strength attenuation, high cost of testing equipment, low efficiency, and difficulty in meeting the needs of mass production when testing the frequency accuracy of RTC.

Method used

A batch RTC real-time clock production test system is adopted, including a test control board, a PC host computer, a DUT fixing fixture and a transparent conversion board. It realizes automated testing of multiple devices through serial communication, and improves measurement accuracy and efficiency by combining temperature and humidity compensation and proportional coefficient calibration.

Benefits of technology

It enables efficient and accurate testing of multiple RTC devices, improves production testing efficiency and the reliability of test results, reduces production costs, and ensures product reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120508183B_ABST
    Figure CN120508183B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of RTA (Real-Time Clock) production testing, and particularly to a method, system, device, and storage medium for batch RTC (Real-Time Clock) production testing. The method includes: in response to the current test device entering test mode, a test control board acquires the square wave signal of the current test device through test points, and obtains a hardware capture signal based on the square wave signal; the current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via a UART2 serial port; the PC host computer determines the RTC frequency error status of the current test device based on the current error value and pre-calibrated compensation information, and triggers the test control board to identify the next DUT (Device Under Test) device as the new current test device. This application can improve the reliability and efficiency of production testing, reduce production costs, ensure product reliability, and achieve frequency accuracy of the RTC real-time clock module in batch testing equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of RTA (Real-Time Clock) production testing, and in particular to a method, system, device, and storage medium for batch RTC (Real-Time Clock) production testing. Background Technology

[0002] In the field of electronic equipment manufacturing, the frequency accuracy of the real-time clock (RTC) module is one of the core indicators affecting the timing reliability of the equipment. Traditional testing methods mainly involve sampling and analyzing the crystal oscillator frequency using external instruments, but this approach has significant limitations in practical applications, specifically: 1. Current mainstream over-second meter testing solutions rely on probes or electromagnetic coupling to make close contact with the crystal oscillator pins to capture oscillation signals. However, product housing design or crystal oscillator integration (such as encapsulation within a shield) makes it difficult for probes to make effective contact. The signal coupling strength decreases with increasing distance, especially in multi-layer PCB or metal shielding environments, where the signal-to-noise ratio drops significantly, further leading to frequency measurement deviations.

[0003] 2. Current testing equipment can only test a single device at a time, and the testing process requires manual intervention to position the probe, switch workstations, and record data. Taking a certain automotive equipment production line as an example, testing a single device takes about 30 seconds, with a daily production capacity of less than a thousand units, which is difficult to match the demand for batch delivery. Although some solutions attempt to improve efficiency by connecting multiple instruments in parallel, the high equipment cost and complex synchronous control logic make it difficult to apply on a large scale.

[0004] Given the limitations of the aforementioned production testing methods, there is an urgent need for a production testing solution that can improve testing accuracy and efficiency, thereby enhancing the reliability and efficiency of production testing, reducing production costs, and ensuring product reliability. Summary of the Invention

[0005] To overcome the shortcomings of the prior art, this application provides a batch RTC real-time clock production testing method, system, equipment and storage medium to improve the reliability and efficiency of production testing, reduce production costs, ensure product reliability, and achieve frequency accuracy of RTC real-time clock modules in batch testing equipment.

[0006] The technical solution adopted by this application to solve its technical problem is: In a first aspect, this application provides a batch RTC real-time clock production and testing method, which is applied to a batch RTC real-time clock production and testing system. The system includes a test control board, a PC host computer, a DUT fixing fixture and a transparent conversion board. The DUT fixing fixture is equipped with multiple DUT devices. Each DUT device is configured to convert the oscillation signal of the RTC crystal oscillator into a square wave signal and output it to the test point in test mode. The test control board is connected to the pass-through conversion board via a UART1 serial port. The pass-through conversion board is electrically connected to the DUT fixing fixture. The test control board triggers the current test device to enter the test mode via the pass-through conversion board. The current test device is a DUT device that has not completed the test. The PC host computer is connected to the DUT fixing fixture via UART3 serial port to control and switch the current test equipment, and is connected to the test control board via UART2 serial port to coordinate the test process. The method includes: In response to the current test equipment entering the test mode, the test control board obtains the square wave signal of the current test equipment through the test point, and obtains the hardware capture signal based on the square wave signal; The current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via the UART2 serial port. The PC host computer determines the RTC frequency error status of the current test device based on the current error value and the pre-calibrated compensation information, and triggers the test control board to determine the next DUT device as the new current test device.

[0007] Optionally, before the step of determining the RTC frequency error state of the current test equipment based on the current error value and the pre-calibrated compensation information, obtaining compensation information includes: A second-passing instrument is used to perform a benchmark test on the RTC clock of the calibration device for a preset time period to obtain a first error value T; the calibration device is any of the DUT devices mentioned above. The test control board performs a square wave signal test on the RTC clock of the calibration device for the preset time period to obtain a second error value R; Based on the linear relationship between the first error value T and the second error value R, the proportional coefficient Y is calculated, and the proportional coefficient Y is written into the PC host computer as the compensation information.

[0008] Optionally, the step of obtaining compensation information further includes: The nominal frequency of the calibration device is calibrated in a reference environment using a reference source active crystal; The test control board and the calibration equipment are placed under multiple sets of temperature and humidity combinations, and the frequency deviation value of the reference source active crystal is recorded under each set of temperature and humidity combinations. A cross-compensation dataset is constructed based on all the frequency deviation values ​​and the nominal frequency, and the cross-compensation dataset is written into the PC host computer as the compensation information.

[0009] Optionally, the step of determining the current RTC frequency error state of the test equipment based on the current error value and the pre-calibrated compensation information includes: Obtain the current ambient temperature and humidity parameters, call the temperature and humidity compensation coefficient that matches the current ambient temperature and humidity parameters in the compensation information, and calibrate the current error value uploaded by the test control board by combining the temperature and humidity compensation coefficient and the proportional coefficient Y to generate a calibrated error value. The calibrated error value is compared with a preset error threshold to determine the current RTC frequency error status of the test equipment, and the RTC frequency error status is stored and archived.

[0010] Optionally, the step of the test control board acquiring the square wave signal of the current test device through the test point and acquiring the hardware capture signal based on the square wave signal in response to the current test device entering the test mode includes: In response to the current test equipment entering the test mode, the current test equipment outputs the square wave signal to the test point at an oscillation frequency of 32768Hz; The test control board acquires the square wave signal through the test point, and acquires a hardware capture signal when the square wave signal reaches 32768 times.

[0011] Optionally, determining the current error value based on the hardware capture signal includes: In response to acquiring the hardware capture signal, the hardware count value of the counter is read; Based on the hardware count value, the actual time taken for the square wave signal to complete 32,768 oscillations is determined, and the actual time taken is compared with the theoretical reference time of 1 second to obtain the current error value.

[0012] Optionally, the test control board includes an MCU, and the MCU is configured as follows: An external active crystal oscillator is used as the master clock source; A built-in timer is provided, with its clock source set to 100MHz and its counting bit width configured to prevent overflow within a 1-second measurement period.

[0013] Secondly, this application provides a batch RTC real-time clock production and testing system, including: a test control board, a PC host computer, a DUT fixing fixture and a transparent conversion board. The DUT fixing fixture is equipped with multiple DUT devices, and each DUT device is configured to convert the oscillation signal of the RTC crystal oscillator into a square wave signal and output it to the test point in test mode. The test control board is connected to the pass-through conversion board via a UART1 serial port. The pass-through conversion board is electrically connected to the DUT fixing fixture. The test control board triggers the current test device to enter the test mode via the pass-through conversion board. The current test device is a DUT device that has not completed the test. The PC host computer is connected to the DUT fixing fixture via UART3 serial port to control and switch the current test equipment, and is connected to the test control board via UART2 serial port to coordinate the test process. In response to the current test equipment entering the test mode, the test control board obtains the square wave signal of the current test equipment through the test point, and obtains the hardware capture signal based on the square wave signal; The current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via the UART2 serial port. The PC host computer determines the RTC frequency error status of the current test device based on the current error value and the pre-calibrated compensation information, and triggers the test control board to determine the next DUT device as the new current test device.

[0014] Thirdly, this application provides an electronic device, comprising: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform the methods described above.

[0015] Fourthly, this application provides a computer-readable storage medium storing a program or instructions that, when executed, implement the above-described method.

[0016] In summary, the beneficial effects of this application include at least the following: 1. First, multiple DUT devices on the DUT fixture platform, in test mode, convert the oscillation signal of their internal RTC crystal oscillators into a square wave signal and output it to the test point. The test control board communicates with the transparent conversion board via UART1, triggering the DUT devices that have not yet completed testing to enter test mode. Then, the PC host computer controls the DUT fixture platform to switch the current test device via UART3 and coordinates the test control board to perform the test process via UART2. After the current test device enters test mode, the test control board acquires the square wave signal of the device through the test point, decodes it to obtain the hardware capture signal, and determines the current error value based on these signals. The error value is then uploaded to the PC host computer via UART2. The PC host computer judges the RTC frequency error status of the current test device based on the error value and pre-calibrated compensation information, and triggers the test control board to switch to the next DUT device via command, performing tests sequentially until all DUT devices have been tested. This process achieves efficient and accurate testing of multiple RTC devices, significantly improving production testing efficiency and the reliability of test results.

[0017] 2. In test mode, the current test equipment outputs a square wave signal at a frequency of 32768Hz to the test point. The test control board captures the number of flips of the square wave signal at the test point. When the number of flips reaches 32768, a hardware capture signal is generated. At this time, the hardware count value of the counter is read to determine the actual time taken for the square wave signal to complete 32768 oscillations. This time is compared with the theoretical reference time of 1 second to calculate the current error value. Subsequently, the host computer on the PC determines the frequency error status of the current test equipment's RTC clock based on the calculated current error value and the calibrated compensation information. Based on this, the main control MCU in the test control board uses software statistics and hardware I / O triggering to run the target RTC clock 32768 times to avoid the stack push and pop overhead error of the main control MCU in the detection board during measurement, thereby ensuring measurement accuracy. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the batch RTC real-time clock production and testing system provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the batch RTC real-time clock production and testing method provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0019] The present application will be further described below with reference to the accompanying drawings and embodiments.

[0020] The following will clearly and completely describe the concept, specific structure, and resulting technical effects of this application in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, features, and effects of this application. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the scope of protection of this application. Furthermore, all connections / linkages involved in the patent do not simply refer to direct contact between components, but rather to the ability to form a better connection structure by adding or reducing connecting accessories according to specific implementation conditions. The various technical features in this application can be combined interactively without contradicting each other.

[0021] In a first aspect, embodiments of this application provide a batch RTC real-time clock production testing method. This method is applied to the batch RTC real-time clock production testing system provided in embodiments of this application, and the method is implemented through this production testing system, with reference to... Figure 1 , Figure 1This is a schematic diagram of a batch RTC real-time clock production test system provided in an embodiment of this application. Specifically, the system disclosed includes a test control board, a PC host computer, a DUT fixing fixture, and a transparent conversion board.

[0022] Regarding the test control board: The test control board uses an MCU with a built-in high-precision timer as its core processing unit. Its timer module is configured to operate at a 100MHz clock frequency, with a single timing unit (TICK) of 10 nanoseconds. Within a 1-second measurement cycle, a 32-bit counter achieves continuous timing without overflow, ensuring microsecond-level time resolution and long-cycle stability. An external high-precision active crystal oscillator (e.g., 10MHz ±0.1ppm) is used as the clock source to avoid temperature drift and aging errors in the MCU's internal oscillator, providing a reference clock synchronization for the timer and signal acquisition.

[0023] During testing, the RTC crystal oscillation signal of the device under test (DUT) is output to the IO1 port of the test control board in square wave form. The MCU captures the signal through a hardware edge-triggered mechanism to complete a 1-second measurement. Critical interrupt service functions are loaded into RAM to avoid Flash memory access latency and ensure real-time hardware response. Based on this design, measurement errors caused by software stack pushing and popping overhead are avoided, thus improving measurement accuracy.

[0024] Furthermore, to avoid misjudgment of measurement values ​​due to sudden changes in the RTC crystal oscillator in the DUT equipment caused by ambient temperature and humidity, this application embodiment also proposes to build a high-precision temperature and humidity sensor in the test control board and set corresponding temperature and humidity compensation values ​​in the PC host computer, so as to avoid measurement misjudgment caused by sudden changes in the active crystal oscillator referenced by the batch RTC clock MCU detection board and the RTC crystal oscillator in the DUT equipment due to high and low temperatures and high humidity.

[0025] Regarding the PC host computer, it serves as the global management terminal of the system, responsible for test process configuration, data analysis, and compensation calibration. In this embodiment, the test control board is connected to the transparent transmission conversion board via UART1 serial port. The transparent transmission conversion board is electrically connected to the DUT fixing fixture platform equipped with multiple DUT devices. The PC host computer is connected to the DUT fixing fixture platform via UART3 serial port, and the PC host computer is also connected to the test control board via UART2 serial port.

[0026] When testing begins on the DUT (Device Under Test) fixture, the PC controls the fixture to power on and simultaneously puts DUT device 1 into test mode via the test control board and pass-through conversion board. In this state, DUT device 1 is designated as the current test device. After DUT device 1 completes testing, the PC again uses the test control board and pass-through conversion board to put DUT device 2 (the next DUT device that has not yet completed testing) into test mode, until all DUT devices have completed testing.

[0027] The batch RTC real-time clock production testing system provided in this application embodiment is applied to the batch RTC real-time clock production testing method provided in this application. Figure 2 , Figure 2 This is a flowchart illustrating the batch RTC real-time clock production testing method provided in this application embodiment. After determining the current test device and controlling it to enter the test mode, the specific test method adopted includes: In step S1, in response to the current test device entering the test mode, the test control board obtains the square wave signal of the current test device through the test point, so as to obtain the hardware capture signal based on the square wave signal.

[0028] Specifically, after the current test device enters the test mode, it outputs a square wave signal to the corresponding test point at the oscillation frequency of 32768Hz of the RTC crystal oscillator through the IO-A port of the current test device. At the same time, the IO1 port of the test control board will obtain the corresponding square wave toggling number based on the square wave signal. When the toggling number reaches 32768 times, the IO2 port of the test control board will output a hardware capture signal.

[0029] That is, the step of the test control board acquiring the square wave signal of the current test device through the test point in response to the current test device entering the test mode, and acquiring the hardware capture signal based on the square wave signal, includes: In response to the current test equipment entering the test mode, the current test equipment outputs the square wave signal to the test point at an oscillation frequency of 32768Hz; The test control board acquires the square wave signal through the test point, and acquires a hardware capture signal when the square wave signal reaches 32768 times.

[0030] Specifically, after the DUT device is powered on, its RTC crystal oscillator outputs a square wave signal at a nominal frequency of 32768Hz through the IO-A port to the TP test point. This square wave signal is divided 15 times to generate a reference clock signal with a period of 1 second (frequency 1Hz), which forms a pulse waveform once per second at the TP point. The test control board configures the MCU's IO1 port to edge-triggered interrupt input mode. When the square wave at the TP point undergoes a level flip, an interrupt is triggered and a counting accumulation operation is performed. To avoid the accumulation of counter switching errors caused by frequent interrupts, the system adopts a hardware-level counting strategy. When the accumulator count reaches 32768 times (corresponding to the theoretical value of 1 second), a hardware capture signal is automatically generated and the timer module is triggered through the IO2 port to simultaneously complete the count value clearing and error calculation.

[0031] In step S2, the current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via the UART2 serial port. The PC host computer determines the RTC frequency error status of the current test device based on the current error value and the pre-calibrated compensation information, and triggers the test control board to determine the next DUT device as the new current test device.

[0032] Specifically, the test control board acquires the timing information of the square wave signal of the current test device through hardware signal capture, calculates the actual time consumption based on the timer count value and compares it with the theoretical reference time (1 second), generating the current error value (in ppm). The current error value is uploaded to the PC host computer in real time through the UART2 serial port. The PC host computer calls the pre-calibrated compensation information (including temperature and humidity compensation coefficients and proportional coefficient Y) to dynamically correct the error value and obtain the calibrated error value. If the calibrated error value exceeds the preset threshold (e.g., ±20ppm), the current test device is determined to be in an abnormal state and the calibration log is recorded; if the error value is within the threshold range, it is marked as qualified and the test result is stored. After completing the current device determination, the PC host computer sends a device switching command to the DUT fixing fixture table through the UART3 serial port, triggering the transparent transmission conversion board to connect the next device under test to the test link. The test control board synchronously resets the counter and starts a new round of signal acquisition and error calculation process, realizing automated cyclic testing of multiple devices.

[0033] More specifically, in this embodiment of the application, the step of determining the current error value based on the hardware capture signal specifically includes: In response to acquiring the hardware capture signal, the hardware count value of the counter is read; Based on the hardware count value, the actual time taken for the square wave signal to complete 32,768 oscillations is determined, and the actual time taken is compared with the theoretical reference time of 1 second to obtain the current error value.

[0034] Specifically, when the hardware capture signal is triggered, the system immediately reads the current hardware count value of the timer counter. This count value represents the actual number of clock cycles from the start of counting to the completion of 32,768 oscillations of the square wave signal. Based on the conversion relationship between the count value and the timer clock frequency (e.g., 100MHz), the actual time consumed is calculated. Subsequently, the actual time consumed is compared with the theoretical reference time of 1 second (corresponding to 32,768 oscillations at the nominal frequency of 32,768Hz of the RTC crystal oscillator) to calculate the current error value.

[0035] It is worth noting that this error value may be affected by factors such as changes in temperature and humidity, and the overhead of MCU stack pushing and popping. Therefore, this application proposes to add compensation information to correct the current error value. The compensation information needs to be calibrated before the test begins. Specifically, before the step of determining the RTC frequency error state of the current test equipment based on the current error value and the pre-calibrated compensation information, the compensation information needs to be obtained, which specifically includes: A second-passing instrument is used to perform a benchmark test on the RTC clock of the calibration device for a preset time period to obtain a first error value T; the calibration device is any of the DUT devices mentioned above. The test control board performs a square wave signal test on the RTC clock of the calibration device for the preset time period to obtain a second error value R; Based on the linear relationship between the first error value T and the second error value R, the proportional coefficient Y is calculated, and the proportional coefficient Y is written into the PC host computer as the compensation information.

[0036] Specifically, in calibration mode, any DUT device is selected as the calibration device. A benchmark test is performed on its RTC clock for a preset time period (e.g., 60 seconds) using a time-lapse instrument to obtain a first error value T. This value characterizes the frequency deviation of the calibration device under standard test conditions (e.g., T = +50ppm). Subsequently, a square wave signal test of the same duration is performed on the same calibration device using the test control board. The number of square wave flips is captured based on hardware timing, and a second error value R is calculated. Based on the linear relationship between T and R, a proportionality coefficient Y is calculated using the least squares method or a ratio. This coefficient is used to quantify the amplification effect of the inherent system error of the test control board. The proportionality coefficient Y is written as compensation information into the compensation database of the PC host computer. This allows the original current error value reported by the test control board to be dynamically corrected in subsequent batch tests, eliminating system measurement deviations and ensuring consistency between the test results and the time-lapse instrument's benchmark value. Ultimately, this improves the accuracy and reliability of parallel testing of multiple devices.

[0037] More specifically, the above-mentioned proportional coefficient Y setting only considers the same temperature and humidity during calibration and testing. Considering that temperature and humidity parameters may change in actual use, in order to further improve measurement accuracy, this application embodiment proposes to add temperature and humidity compensation correction to the compensation information. Specifically, the step of obtaining compensation information further includes: The nominal frequency of the calibration device is calibrated in a reference environment using a reference source active crystal; The test control board and the calibration equipment are placed under multiple sets of temperature and humidity combinations, and the frequency deviation value of the reference source active crystal is recorded under each set of temperature and humidity combinations. A cross-compensation dataset is constructed based on all the frequency deviation values ​​and the nominal frequency, and the cross-compensation dataset is written into the PC host computer as the compensation information.

[0038] Specifically, the nominal frequency of the calibration equipment is calibrated in a reference environment using a reference source active crystal; the test control board and calibration equipment are placed under multiple temperature and humidity combinations, and the frequency deviation value of the reference source active crystal is recorded under each temperature and humidity combination; a cross-compensation dataset is constructed based on all recorded frequency deviation values ​​and the nominal frequency, and this dataset is written into the PC host computer as compensation information for dynamic correction of measurement errors caused by environmental factors in subsequent tests.

[0039] More specifically, under a normal temperature reference environment, a high-precision reference source active crystal is used to calibrate the nominal frequency (32,768Hz) of the RTC crystal oscillator of the calibration equipment, establishing a frequency reference value free from environmental interference. Subsequently, the test control board and calibration equipment are placed in a temperature and humidity adjustable test environment, and the test is run according to four preset temperature and humidity combinations (e.g., high temperature and high humidity 60℃ / 85%RH, high temperature and low humidity 60℃ / 30%RH, low temperature and high humidity -40℃ / 85%RH, low temperature and low humidity -40℃ / 30%RH). The measured frequency of the reference source active crystal is recorded under each condition. The frequency deviation relative to the frequency reference value is calculated. Based on the deviation data of all temperature and humidity combinations, a three-dimensional cross-compensation dataset is constructed using polynomial fitting or interpolation algorithms. This dataset includes temperature, humidity, and corresponding compensation coefficients, forming a frequency deviation mapping relationship under the combined effect of temperature and humidity. Finally, the cross-compensation dataset is written into the compensation database on a PC. During real-time testing, it dynamically calls the matching compensation value based on the temperature and humidity parameters collected by the current environmental sensors, achieving accurate correction of environmental errors and ensuring the consistency of test results under different temperature and humidity scenarios.

[0040] Furthermore, combining the error correction of both stack push / pop overhead and temperature and humidity changes, the step of determining the RTC frequency error state of the current test equipment based on the current error value and the pre-calibrated compensation information in this embodiment specifically includes: Obtain the current ambient temperature and humidity parameters, call the temperature and humidity compensation coefficient that matches the current ambient temperature and humidity parameters in the compensation information, and calibrate the current error value uploaded by the test control board by combining the temperature and humidity compensation coefficient and the proportional coefficient Y to generate a calibrated error value. The calibrated error value is compared with a preset error threshold to determine the current RTC frequency error status of the test equipment, and the RTC frequency error status is stored and archived.

[0041] Specifically, when the PC host computer compensates for the current error value uploaded by the test control board, it can simultaneously receive the current ambient temperature and humidity parameters collected by the high-precision temperature and humidity sensor in the test control board. Based on the current ambient temperature and humidity parameters, it calls the temperature and humidity compensation coefficient that matches the current temperature and humidity from the cross-compensation dataset to perform the first calibration of the current error value. Then, it calls the proportional coefficient Y in the compensation information to perform the second calibration of the current error value. Finally, it obtains the calibrated error value of the current test equipment, which is closer to the true value. The calibrated error value is compared with the preset error threshold (e.g., ±20ppm): if the calibrated error value is ≤ the threshold, the RTC frequency error status of the current test equipment is determined to be qualified, and the status and error value are associated with the equipment serial number and stored in the database; if the calibrated error value is > the threshold, it is marked as an abnormal status and an automatic retest or manual calibration process is triggered, and an abnormal log is recorded at the same time.

[0042] The second aspect of this application provides a batch RTC real-time clock production testing system, comprising: The test control board, PC host computer, DUT fixing fixture and transparent conversion board are provided. The DUT fixing fixture is equipped with multiple DUT devices. Each DUT device is configured to convert the oscillation signal of the RTC crystal oscillator into a square wave signal and output it to the test point in test mode. The test control board is connected to the pass-through conversion board via a UART1 serial port. The pass-through conversion board is electrically connected to the DUT fixing fixture. The test control board triggers the current test device to enter the test mode via the pass-through conversion board. The current test device is a DUT device that has not completed the test. The PC host computer connects to the DUT fixing fixture via UART3 serial port to control and switch the current test equipment, and connects to the test control board via UART2 serial port to coordinate the test process.

[0043] The batch RTC real-time clock production testing system described in this application can execute the batch RTC real-time clock production testing method provided in the above embodiments. The batch RTC real-time clock production testing system has the corresponding functional steps and beneficial effects of the batch RTC real-time clock production testing method described in the above embodiments. For details, please refer to the embodiments of the batch RTC real-time clock production testing method described above. The embodiments of this application will not be repeated here.

[0044] This application also provides an electronic device, please refer to... Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include a processor and a memory, which can be connected via a bus or other means. The processor may be a Central Processing Unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips. The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the batch RTC real-time clock production and testing method in the embodiments of this application. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby realizing the batch RTC real-time clock production and testing method in the above method embodiments.

[0045] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. The one or more modules are stored in the memory and, when executed by the processor, perform the batch RTC real-time clock production and testing method as described in the above method embodiments. Specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it may include the processes of the embodiments of the above methods. The storage medium may be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memory.

[0046] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0047] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together in a single embodiment, figure, or description thereof. However, this approach to disclosure should not be construed as reflecting an intention that the claimed application requires more features than expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0048] It should be noted that the above embodiments are illustrative of this application and not restrictive of this application, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims.

[0049] The above is a detailed description of the preferred embodiments of this application. However, the invention of this application is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A method for batch production and testing of RTC real-time clocks, characterized in that, This invention relates to a batch RTC real-time clock production and testing system. The system includes a test control board, a PC host computer, a DUT fixing fixture, and a transparent conversion board. The DUT fixing fixture is equipped with multiple DUT devices. Each DUT device is configured to convert the oscillation signal of the RTC crystal oscillator into a square wave signal and output it to the test point in test mode. The test control board is connected to the pass-through conversion board via a UART1 serial port. The pass-through conversion board is electrically connected to the DUT fixing fixture. The test control board triggers the current test device to enter the test mode via the pass-through conversion board. The current test device is a DUT device that has not completed the test. The PC host computer is connected to the DUT fixing fixture via UART3 serial port to control and switch the current test equipment, and is connected to the test control board via UART2 serial port to coordinate the test process. The method includes: In response to the current test equipment entering the test mode, the test control board obtains the square wave signal of the current test equipment through the test point, and obtains the hardware capture signal based on the square wave signal; The current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via the UART2 serial port. The PC host computer determines the RTC frequency error status of the current test equipment based on the current error value and the pre-calibrated compensation information, and triggers the test control board to determine the next DUT equipment as the new current test equipment. The pre-calibrated compensation information includes the temperature and humidity compensation coefficient and the proportional coefficient Y.

2. The batch RTC real-time clock production and testing method according to claim 1, characterized in that, Before the step of determining the RTC frequency error state of the current test equipment based on the current error value and the pre-calibrated compensation information, the compensation information is obtained, including: A second-passing instrument is used to perform a benchmark test on the RTC clock of the calibration device for a preset time period to obtain a first error value T; the calibration device is any of the DUT devices mentioned above. The test control board performs a square wave signal test on the RTC clock of the calibration device for the preset time period to obtain a second error value R; Based on the linear relationship between the first error value T and the second error value R, the proportional coefficient Y is calculated, and the proportional coefficient Y is written into the PC host computer as the compensation information.

3. The batch RTC real-time clock production and testing method according to claim 2, characterized in that, The step of obtaining compensation information also includes: The nominal frequency of the calibration device is calibrated in a reference environment using a reference source active crystal; The test control board and the calibration equipment are placed under multiple sets of temperature and humidity combinations, and the frequency deviation value of the reference source active crystal is recorded under each set of temperature and humidity combinations. A cross-compensation dataset is constructed based on all the frequency deviation values ​​and the nominal frequency, and the cross-compensation dataset is written into the PC host computer as the compensation information.

4. The batch RTC real-time clock production and testing method according to claim 3, characterized in that, The step of determining the current RTC frequency error status of the test equipment based on the current error value and the pre-calibrated compensation information includes: Obtain the current ambient temperature and humidity parameters, call the temperature and humidity compensation coefficient that matches the current ambient temperature and humidity parameters in the compensation information, and calibrate the current error value uploaded by the test control board by combining the temperature and humidity compensation coefficient and the proportional coefficient Y to generate a calibrated error value. The calibrated error value is compared with a preset error threshold to determine the current RTC frequency error status of the test equipment, and the RTC frequency error status is stored and archived.

5. The batch RTC real-time clock production and testing method according to claim 1, characterized in that, The step of the test control board acquiring the square wave signal of the current test device through the test point in response to the current test device entering the test mode, and acquiring the hardware capture signal based on the square wave signal, includes: In response to the current test equipment entering the test mode, the current test equipment outputs the square wave signal to the test point at an oscillation frequency of 32768Hz; The test control board acquires the square wave signal through the test point, and acquires a hardware capture signal when the square wave signal flips 32768 times.

6. The batch RTC real-time clock production and testing method according to claim 5, characterized in that, Determining the current error value based on the hardware-captured signal includes: In response to acquiring the hardware capture signal, the hardware count value of the counter is read; Based on the hardware count value, the actual time taken for the square wave signal to complete 32,768 oscillations is determined, and the actual time taken is compared with the theoretical reference time of 1 second to obtain the current error value.

7. The batch RTC real-time clock production and testing method according to claim 1, characterized in that, The test control board includes an MCU, and the MCU is configured as follows: An external active crystal oscillator is used as the master clock source; A built-in timer is provided, with its clock source set to 100MHz and its counting bit width configured to prevent overflow within a 1-second measurement period.

8. A batch RTC real-time clock production and testing system, characterized in that, include: The test control board, PC host computer, DUT fixing fixture and transparent conversion board are provided. The DUT fixing fixture is equipped with multiple DUT devices. Each DUT device is configured to convert the oscillation signal of the RTC crystal oscillator into a square wave signal and output it to the test point in test mode. The test control board is connected to the pass-through conversion board via a UART1 serial port. The pass-through conversion board is electrically connected to the DUT fixing fixture. The test control board triggers the current test device to enter the test mode via the pass-through conversion board. The current test device is a DUT device that has not completed the test. The PC host computer is connected to the DUT fixing fixture via UART3 serial port to control and switch the current test equipment, and is connected to the test control board via UART2 serial port to coordinate the test process. In response to the current test equipment entering the test mode, the test control board obtains the square wave signal of the current test equipment through the test point, and obtains the hardware capture signal based on the square wave signal; The current error value is determined based on the hardware capture signal, and the current error value is uploaded to the PC host computer via the UART2 serial port. The PC host computer determines the RTC frequency error status of the current test equipment based on the current error value and the pre-calibrated compensation information, and triggers the test control board to determine the next DUT equipment as the new current test equipment. The pre-calibrated compensation information includes the temperature and humidity compensation coefficient and the proportional coefficient Y.

9. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Second signal software calibration method of clock chip

    CN106054580A

  • Clock signal calibration circuit, calibration method, chip and electronic equipment

    CN116722821A