Hall chip programming method, programming controller and Hall chip programming system

By using a programmable controller and current generator in the Hall chip programming system to achieve a current threshold under the current environment for one-click calibration programming, the problem of needing external current and complex operation in the Hall chip programming system is solved, thus improving programming efficiency and production yield.

CN116301762BActive Publication Date: 2026-11-10BYD SEMICON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111567436.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2026-11-10
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

Existing Hall effect chip programming systems require an external current environment and complex operations, resulting in low programming efficiency and insufficient adjustment accuracy, which cannot meet production requirements.

Method used

A Hall effect chip programming method is provided. By obtaining the initial chip parameters, executing the zero-point and full-scale calibration programming program, and using the programmable controller and current generator to reach the current threshold in the current environment, one-button control is achieved, reducing operation steps and improving programming efficiency.

Benefits of technology

The magnetic field environment can be quickly configured without the need for an external current control system, reducing the risk of misoperation and improving production yield and programming efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301762B_ABST
    Figure CN116301762B_ABST
Patent Text Reader

Abstract

This invention discloses a Hall effect chip programming method, a programming controller, and a Hall effect chip programming system. The method includes: acquiring initial chip parameters corresponding to a target Hall effect chip, the initial chip parameters including initial zero-point parameters and initial full-scale parameters; executing a zero-point calibration programming program, controlling a current generator to operate, and when the current ambient current reaches a zero-point current threshold, performing zero-point calibration programming on the target Hall effect chip according to the initial zero-point parameters to determine the target zero-point parameters; and executing a full-scale calibration programming program, controlling a current generator to operate, and when the current ambient current reaches a full-scale current threshold, performing full-scale calibration programming on the target Hall effect chip according to the initial full-scale parameters to determine the target full-scale parameters. This method can quickly complete the required magnetic field environment configuration, reduce programming operation steps, reduce the possibility of failure due to misoperation, accelerate calibration programming efficiency, and improve production yield.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of chip programming technology, and in particular to a Hall chip programming method, a programming controller, and a Hall chip programming system. Background Technology

[0002] The existing UI is a programming system for Hall effect chips. It uses a two-point calibration programming method to program register parameters such as the chip's zero-point and full-scale range. This programming process requires an external current environment and involves numerous controls, resulting in excessively long programming times and low efficiency. The existing UI has several limitations in chip programming: First, the need for an external current environment necessitates a separate current control system to work in conjunction with the existing system. Second, in actual production, the excessive number of controls and long programming times lead to low production efficiency, and the excessive number of operations also increases the likelihood of errors and malfunctions in a real production environment. Third, the system's adjustment precision is only 0.01%, meaning its minimum adjustable value is 0.01%VDD (5mV), which is too high. Fourthly, in the actual production process, the system must store the values ​​of the register parameters written during the programming process to facilitate the tracking of subsequent products. For example, when a product is abnormal, the stored data can be analyzed to understand the cause and process of the abnormality, thereby making improvements and preventing the abnormality from recurring. However, this cannot meet the actual production conditions. Summary of the Invention

[0003] This invention provides a Hall chip programming method, a programming controller, and a Hall chip programming system to solve the problems of existing Hall chip programming processes requiring an external current environment, being complex to operate, and having low programming efficiency.

[0004] This invention provides a Hall effect chip programming method, comprising: Obtain the initial chip parameters corresponding to the target Hall chip, the initial chip parameters including the initial zero-point parameters and the initial full-scale parameters; The zero-point calibration programming program is executed to control the current generator to work. When the current ambient current reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. The full-scale calibration programming program is executed to control the current generator to work. When the current ambient current reaches the full-scale current threshold, the target Hall chip is calibrated according to the initial full-scale parameters to determine the target full-scale parameters.

[0005] Preferably, the Hall chip programming method further includes: The zero-point calibration programming program and the full-scale calibration programming program are executed alternately to obtain at least two target zero-point parameters and at least two target full-scale parameters. The target Hall chip is subjected to quality inspection based on at least two of the target zero-point parameters and at least two of the target full-scale parameters, and the quality inspection results are obtained.

[0006] Preferably, the step of performing zero-point calibration programming on the target Hall chip based on the initial chip parameters to determine the target zero-point parameters includes: Based on the initial zero-point parameters, determine the effective zero-point parameters within the effective range of the zero point; Obtain the zero-point output voltage corresponding to the target Hall chip; Determine the zero-point voltage difference based on the zero-point output voltage and the zero-point target voltage; The target zero-point parameters are determined based on the effective zero-point parameters and the zero-point voltage difference.

[0007] Preferably, determining the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters includes: The initial zero-point parameter is compared with the zero-point parameter threshold. If the initial zero-point parameter is less than the zero-point parameter threshold, then the initial zero-point parameter is determined as a valid zero-point parameter; If the initial zero-point parameter is not less than the zero-point parameter threshold, then the effective zero-point parameter is determined to be 0.

[0008] Preferably, determining the target zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference includes: The zero-point voltage difference is compared with the zero-point voltage difference threshold. If the zero-point voltage difference is not greater than the zero-point voltage difference threshold, then the effective zero-point parameter is determined as the target zero-point parameter; If the zero-point voltage difference is greater than the zero-point voltage difference threshold, then the initial zero-point parameters are updated according to the effective zero-point parameters and the zero-point voltage difference, and the process of determining the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters is repeated.

[0009] Preferably, updating the initial zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference includes: The new zero-point parameters are determined based on the zero-point voltage difference and the zero-point parameter step value. Update the initial zero-point parameters based on the newly added zero-point parameters and the valid zero-point parameters.

[0010] Preferably, the step of performing full-scale calibration programming on the target Hall chip based on the initial chip parameters to determine the target full-scale parameters includes: Based on the initial full-scale coarse adjustment parameters, the target Hall chip is calibrated and programmed to determine the target full-scale coarse adjustment parameters. Based on the initial full-scale fine-tuning parameters, the target Hall chip is calibrated and programmed to determine the target full-scale fine-tuning parameters. The target full-scale parameter includes the target full-scale coarse adjustment parameter and the target full-scale fine adjustment parameter.

[0011] Preferably, the step of performing full-scale coarse-scale parameter calibration programming on the target Hall chip based on the initial full-scale coarse-scale parameters to determine the target full-scale coarse-scale parameters includes: Write the initial full-scale coarse adjustment parameters into a temporary register; Obtain the first full-scale output voltage corresponding to the target Hall chip; If the first full-scale output voltage is greater than the first full-scale target voltage, then the initial full-scale coarse adjustment parameter is determined as the target full-scale coarse adjustment parameter. If the first full-scale output voltage is not greater than the first full-scale target voltage, then the initial full-scale coarse adjustment parameter is updated according to the initial full-scale coarse adjustment parameter and the coarse adjustment parameter step value, and the step of writing the initial full-scale coarse adjustment parameter into the temporary register is repeated.

[0012] Preferably, the step of performing full-scale fine-tuning parameter calibration programming on the target Hall chip based on the initial full-scale fine-tuning parameters to determine the target full-scale fine-tuning parameters includes: Based on the initial full-scale fine-tuning parameters, determine the effective full-scale fine-tuning parameters that are within the effective range of the fine-tuning parameters; Obtain the second full-scale output voltage corresponding to the target Hall chip; The full-scale voltage difference is determined based on the second full-scale output voltage and the second full-scale target voltage. The target full-scale fine-tuning parameters are determined based on the effective full-scale fine-tuning parameters and the full-scale voltage difference.

[0013] Preferably, determining the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters includes: The initial full-scale fine-tuning parameter is compared with the full-scale fine-tuning parameter threshold. If the initial full-scale fine-tuning parameter is less than the full-scale fine-tuning parameter threshold, then the initial full-scale fine-tuning parameter is determined as a valid full-scale fine-tuning parameter. If the initial full-scale fine-tuning parameter is not less than the full-scale fine-tuning parameter threshold, then the effective full-scale fine-tuning parameter is determined to be 0.

[0014] Preferably, determining the target full-scale fine-tuning parameter based on the effective full-scale fine-tuning parameter and the full-scale voltage difference includes: The full-scale voltage difference is compared with the full-scale voltage difference threshold. If the full-scale voltage difference is not greater than the full-scale voltage difference threshold, then the effective full-scale fine-tuning parameter is determined as the target full-scale fine-tuning parameter. If the full-scale voltage difference is greater than the full-scale voltage difference threshold, then the initial full-scale fine-tuning parameters are updated according to the effective full-scale fine-tuning parameters and the full-scale voltage difference, and the process of determining the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters is repeated.

[0015] Preferably, updating the initial full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference includes: Based on the full-scale voltage difference and the full-scale fine-tuning parameter step value, determine the new full-scale fine-tuning parameter; Update the initial full-scale fine-tuning parameters based on the newly added full-scale fine-tuning parameters and the effective full-scale fine-tuning parameters.

[0016] This invention provides a programming controller, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described Hall chip programming method.

[0017] This invention provides a Hall effect chip programming system, including the above-mentioned programming controller, and further including a data acquisition unit, a current generator, and a data storage unit connected to the programming controller.

[0018] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described Hall chip programming method.

[0019] The aforementioned Hall chip programming method, programming controller, and Hall chip programming system can control the current ambient current to reach the zero-point current threshold or full-scale current threshold required for calibration programming when calibrating and programming the target Hall chip. This provides the magnetic field environment required for zero-point calibration programming or full-scale calibration programming. The required magnetic field environment configuration can be completed quickly without the need for cooperation with an external current control system. During the calibration programming process of the target Hall chip, one-button control operation can be realized, reducing operation steps, reducing the possibility of failure due to misoperation, and also speeding up the calibration programming efficiency of the target Hall chip and improving production yield. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of an application environment for a Hall chip programming method according to an embodiment of the present invention; Figure 2 This is a flowchart of a Hall chip programming method according to an embodiment of the present invention; Figure 3 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 4 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 5 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 6 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 7 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 8 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 9 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 10 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 11 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 12 This is another flowchart of a Hall chip programming method in one embodiment of the present invention; Figure 13 This is another flowchart of a Hall chip programming method in one embodiment of the present invention. Detailed Implementation

[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] The Hall chip programming method provided in this embodiment of the invention is applied to... Figure 1 The Hall chip programming system includes a programming controller, a data acquisition unit, a current generator, and a data storage unit. The data acquisition unit is used to acquire the initial chip parameters of the target Hall chip. The current generator is used to generate the current environment required for chip programming. The data storage unit is used to store data. The programming controller is connected to the data acquisition unit, the current generator, and the data storage unit to implement the Hall chip programming method. Specifically, it obtains the initial chip parameters of the target Hall chip from the data acquisition unit, controls the current generator to generate the current environment required for chip programming, and executes the pre-configured chip programming program to calibrate the zero-point and full-scale range of the target Hall chip. The target zero-point parameters and target full-scale range parameters formed by the calibration programming are stored in the data storage unit so that analysis can be performed based on the target zero-point parameters and target full-scale range parameters stored in the data storage unit to determine whether the target Hall chip is a defective chip.

[0024] As an example, the Hall effect chip programming system uses NI LabVIEW as the programming tool and leverages dynamic link libraries for programming functions. The main framework of the Hall effect chip programming system consists of five modules: initialization module, data acquisition module, program control module, error handling module, and overall programming module.

[0025] The initialization module is a functional module used to initialize the Hall chip programming program, specifically for data initialization and current generator reset initialization. It is executed first when the program starts running. In this example, data initialization includes initialization of the program control state machine, program control buttons, Boolean display control, and data variables. Current generator reset initialization involves connecting the current generator to the PC via GPIB, opening and writing commands via VISA on the program side, completing the transmission of command instructions between the PC and the current generator, sending the commands OUTP ON, VOLT 0; CURR 0 to complete the reset initialization, putting the current generator into standby mode where the output voltage and current are 0. The PC refers to the computer where the programming controller is located.

[0026] The data acquisition module is a functional module used to detect the product's output and external current environment. It primarily uses a data acquisition card to perform these functions. The data acquisition card acquires the output voltage and transmits it to the PC via USB. The PC processes the data to obtain the desired data. Data acquisition is implemented on the hardware side via the data acquisition card and on the PC side via the DAQ data acquisition module. The DAQ reads the output voltage from two channels. One channel acquires the current environment data, determined by the output of a standard calibration source. The acquired signal is processed using root mean square (RMS) calculation. The calibrated original output voltage obtained after RMS calculation is then divided with the sampling resistor to obtain the input current. The other channel acquires the output signal of the target Hall chip. Similarly, a basic DC RMS calculation is performed on the signal to obtain its voltage signal. Subsequent mathematical calculations yield the test error, the theoretical test value, and the corresponding data of the measured output. In this example, the program corresponding to the data acquisition module is nested within a While loop to achieve continuous operation, thus enabling real-time monitoring of the output voltage and current environment of the target Hall chip.

[0027] The program control module is a functional module used to control the program state. It performs its function through a while loop and an event structure. When different events occur, the program responds to the events and sends different state instructions to the program state machine, so that the program is in different current program states.

[0028] The error handling module is a functional module used to respond to errors. When an error occurs or an exception occurs during operation, the program sends an error signal (in the form of a Boolean status light), and the error handling module responds to the error handling procedure. The error handling module consists of nested While loops and conditional structures, using the error signal as a condition terminal. When the error signal occurs, the error handling procedure is triggered. In this example, the error handling procedure includes two parts: one is a current reset procedure, which is the same as the initialization module. Specifically, it sends the command instructions OUTP ON, VOLT 0; CURR 0 to the current generator via VISA, causing it to complete the reset work, reducing both current and voltage to 0 to ensure safe operation; the other part is a password lock procedure, where the program pops up a window prompting for a password to unlock.

[0029] The overall programming module is used to program the target Hall chip, integrating all the main functions of the program. The overall programming module sets three main states for the Hall chip programming program: NULL state, overall programming state, and stop state.

[0030] The NULL state is the default state of the main block diagram. When there is no event state response, this state branch is executed. There is no program structure inside it, which is a standby state when the program is not responding.

[0031] When the program control module issues a stop status response message, the overall programming module responds to the stop status branch, sets the stop terminal of the overall programming module loop to True, and interrupts the entire overall programming module.

[0032] The overall programming state is the state in the program control module used to program the target Hall chip.

[0033] In one embodiment, such as Figure 2 As shown, a Hall effect chip programming method is provided, which can be applied to... Figure 1 Taking the programmable controller as an example, the process of calibrating and programming the zero-point and full-scale parameters of the target Hall chip by the programmable controller in the overall programming state includes the following steps: S201: Obtain the initial chip parameters corresponding to the target Hall chip. The initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. S202: Execute the zero-point calibration programming program to control the current generator to work. When the current ambient current reaches the zero-point current threshold, perform zero-point calibration programming on the target Hall chip according to the initial zero-point parameters to determine the target zero-point parameters. S203: Executes the full-scale calibration programming program, controls the current generator to work, and when the current ambient current reaches the full-scale current threshold, performs full-scale calibration programming on the target Hall chip according to the initial full-scale parameters to determine the target full-scale parameters.

[0034] The target Hall chip refers to the Hall chip that needs to be programmed in this process.

[0035] The initial chip parameters refer to the parameters initially configured for the target Hall chip, which can be understood as the parameters set when the target Hall chip leaves the factory. As an example, the initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. The initial zero-point parameters refer to the zero-point parameters initially configured for the target Hall chip. The initial full-scale parameters are the full-scale parameters initially configured for the target Hall chip.

[0036] As an example, in step S201, when the target Hall chip needs to be calibrated and programmed, the programming controller can receive a parameter reading instruction input by the user, such as a Get instruction, to read the initial chip parameters corresponding to the target Hall chip. Specifically, it reads the initial zero-point parameters and the initial full-scale parameters. The initial full-scale parameters include the initial full-scale coarse adjustment parameters and the initial full-scale fine adjustment parameters.

[0037] As an example, before step S201, the Hall chip programming method also includes program initialization operations, data table creation operations, and data transfer operations.

[0038] In this example, the program initialization operation is a step performed before the entire programming loop. During program initialization, the PTC-04 needs to be opened and connected. This is done by opening the PSF application handle, calling the function to search for connected devices' ports, returning the searched port set, referencing the MPT reference handle, creating a project and connecting the first port in the search set and the reset device, and generating four objects (such as Device, Advanced, Solver, and mainPTC-04Device). The measurement function is called through the Device object to measure the target's supply voltage and current consumption, while simultaneously using the Device's properties to set the PTC mode connection method.

[0039] In this example, the data table creation operation refers to the steps of creating a data table. Specifically, it involves creating an electronic folder through the product series, creating and opening the data table through the production batch, reading the data from the data table, and storing it in an array. Simultaneously, it involves creating and opening a text file through the production batch, reading the chip ID from the text file, storing the chip ID as a variable, and assigning a value to this variable by reading data. If no data exists in the text file, the variable is assigned a value of 0. Then, the size of the chip ID is checked, requiring the chip ID to be less than 65536; if it is greater than 65536, the chip ID is assigned a value of 1.

[0040] In this example, data transfer operations refer to reading and writing data. For instance, by calling the read function through the Device object, the initial chip parameters corresponding to the target Hall chip are read into the PC's read-only buffer IMG. The parameters in IMG are copied to TMP using Copy. The parameters are then set using the Set parameter function, with VOQ=1648, RG=1, FG=512, POL=0, and chip ID=chip ID variables written to the TMP buffer. Comparing IMG and TMP, the changed parameters are written to EEPROM, completing the first initialization write. The target chip parameters corresponding to the target Hall chip are then read back and refreshed into the mirror IMG. Finally, the Get parameter method is called to read the target chip parameters corresponding to the target Hall chip from the TMP buffer.

[0041] The zero-point calibration programming program is a pre-set program for implementing zero-point calibration programming. The current ambient current refers to the ambient current collected at the current moment. The zero-point current threshold is a pre-set ambient current that should be reached during zero-point calibration programming. The target zero-point parameters are the zero-point parameters determined to complete the zero-point calibration programming.

[0042] As an example, in step S202, when the programming controller reads the initial chip parameters corresponding to the target Hall chip, it can execute a pre-set zero-point calibration programming program. First, it controls the current generator to work so that the current ambient current collected by the data acquisition device in real time reaches the zero-point current threshold required for zero-point calibration programming. Only then will it adjust the zero-point calibration programming of the target Hall chip according to the initial zero-point parameters to obtain more accurate target zero-point parameters.

[0043] In this example, the programmable controller is connected to the current generator. During system initialization before step S201, the current generator's initialization operation is completed. The programmable controller can acquire the real-time ambient current and compare it with the zero-point current threshold. Based on the comparison result, it determines whether the current ambient current needs to be adjusted to meet the ambient current required for zero-point calibration programming. When the current ambient current is less than the zero-point current threshold, a current increase command needs to be sent to the current generator, for example, OUTP ON VOLT 2; CURR 0. This current increase command sets the output voltage to 2V and the output current to 0A, changing the current value in 100A increments. The current increase command is sent to control the current ambient current to increase. When the current ambient current reaches the zero-point current threshold, the increase stops, and the command sending loop is interrupted. At this point, the current generator has output the desired current ambient current to meet the current environment required for zero-point calibration programming. When the current ambient current is not greater than the zero-point current threshold, a current reduction command needs to be sent to the current generator, for example, OUTP ON VOLT 0; CURR 0. This current reduction command sets the output voltage to 0V and the output current to 0V to control the decrease of the current ambient current. When the current ambient current reaches the zero-point current threshold, the increase stops, and the command sending loop is interrupted. At this point, the current generator has output the desired current ambient current to meet the current environment required for zero-point calibration programming. In this example, the current environment required for zero-point calibration programming can be a state where the current is 0.

[0044] As an example, after obtaining the target zero-point parameter, the programmable controller can compare the target zero-point parameter with the initial zero-point parameter that has been pre-read and stored in the buffer. If the target zero-point parameter and the initial zero-point parameter have not changed, it is determined that the initial zero-point parameter is correct and no other operation is required. If the target zero-point parameter and the initial zero-point parameter have changed, the target zero-point parameter needs to be updated to the initial zero-point parameter, and the updated initial zero-point parameter is stored in the chip memory (such as EEPROM) of the target Hall chip to ensure the accuracy of the initial zero-point parameter stored in the target Hall chip.

[0045] The full-scale calibration programming program is a pre-set program used to perform full-scale calibration programming. The current ambient current refers to the ambient current collected at the current moment. The full-scale current threshold is a pre-set ambient current that should be reached during full-scale calibration programming; generally, the full-scale current threshold is greater than the zero-point current threshold. The target full-scale parameter is the full-scale parameter determined to complete the full-scale calibration programming.

[0046] As an example, in step S202, when the programming controller reads the initial chip parameters corresponding to the target Hall chip, it can execute a pre-set full-scale calibration programming program. First, it controls the current generator to work so that the current ambient current collected by the data acquisition device in real time reaches the full-scale current threshold required for full-scale calibration programming. Only then will it adjust the full-scale calibration programming of the target Hall chip according to the initial full-scale parameters to obtain more accurate target full-scale parameters.

[0047] In this example, the programmable controller is connected to the current generator. During system initialization before step S201, the current generator's initialization operation is completed. The programmable controller can acquire the real-time ambient current and compare it with the full-scale current threshold to determine whether the ambient current needs to be adjusted to meet the current required for full-scale calibration programming. When the ambient current is less than the full-scale current threshold, a current increase command needs to be sent to the current generator, for example, OUTP ON VOLT 2; CURR 0. This current increase command sets the output voltage to 2V and the output current to 0A, changing the current value in 100A increments. The current increase command is sent to control the current ambient current to increase. When the ambient current reaches the full-scale current threshold, the increase stops, and the command sending loop is interrupted. At this point, the current generator has output the desired ambient current to meet the current environment required for full-scale calibration programming. When the current ambient current is not greater than the full-scale current threshold, a current reduction command needs to be sent to the current generator, such as OUTP ON VOLT 0; CURR 0. This current reduction command sets the output voltage to 0V and the output current to 0V to control the current ambient current to decrease. When the current ambient current reaches the full-scale current threshold, the increase stops and the interrupt command sending loop is interrupted. At this time, the current generator has output the desired current ambient current to meet the current environment required for full-scale calibration programming.

[0048] Understandably, since the full-scale current threshold is greater than the zero-point current threshold, when executing the full-scale calibration programming program after executing the zero-point calibration programming program, a current rise command needs to be generated to control the current ambient current to rise to the full-scale current threshold; when executing the zero-point calibration programming program after executing the full-scale calibration programming program, a current fall command needs to be generated to control the current ambient current to fall to the zero-point current threshold.

[0049] As an example, after obtaining the target full-scale parameter, the programmable controller can compare the target full-scale parameter with the initial full-scale parameter that has been pre-read and stored in the buffer. If the target full-scale parameter and the initial full-scale parameter are unchanged, the initial full-scale parameter is determined to be correct, and no further operation is required. If the target full-scale parameter and the initial full-scale parameter are changed, the target full-scale parameter needs to be updated to the initial full-scale parameter, and the updated initial full-scale parameter is stored in the chip memory (such as EEPROM) of the target Hall chip to ensure the accuracy of the initial full-scale parameter stored in the target Hall chip.

[0050] In the Hall chip programming method provided in this embodiment, when the target Hall chip needs to be calibrated and programmed, the current ambient current can be controlled to reach the zero-point current threshold or full-scale current threshold required for calibration and programming, providing the magnetic field environment required for zero-point calibration and programming or full-scale calibration and programming. The required magnetic field environment configuration can be quickly completed without the need to cooperate with an external current control system. During the calibration and programming process of the target Hall chip, one-click control operation can be realized, reducing operation steps, reducing the possibility of failure due to misoperation, and also speeding up the calibration and programming efficiency of the target Hall chip and improving the production yield.

[0051] In one embodiment, such as Figure 3 As shown, the Hall chip programming method also includes: S301: Interleave the zero-point calibration programming program and the full-scale calibration programming program to obtain at least two target zero-point parameters and at least two target full-scale parameters; S302: Perform quality inspection on the target Hall chip based on at least two target zero-point parameters and at least two target full-scale parameters, and obtain the quality inspection results.

[0052] As an example, in step S301, after the programming controller obtains the initial chip parameters corresponding to the target Hall chip, it can alternately execute the zero-point calibration programming program and the full-scale calibration programming program to obtain at least two target zero-point parameters and at least two target full-scale parameters. For example, its specific processing includes the following steps: (1) Execute the first zero-point calibration programming program, control the current generator to work, and when the current ambient current reaches the zero-point current threshold (which can be room temperature), perform zero-point calibration programming on the target Hall chip according to the initial zero-point parameters to determine the target zero-point parameters corresponding to the first calibration programming. (2) Execute the first full-scale calibration programming program, control the current generator to work, so that when the current ambient current rises to the full-scale current threshold, the ambient current required for full-scale calibration programming is met. At this time, it is necessary to perform full-scale calibration programming on the target Hall chip according to the initial full-scale parameters to determine the target full-scale parameters corresponding to the first calibration programming. (3) Execute the second zero-point calibration programming program, control the current generator to work, so that the current ambient current drops to the zero-point current threshold again (the zero-point current threshold can be room temperature), and perform zero-point calibration programming on the target Hall chip according to the initial zero-point parameters to determine the target zero-point parameters corresponding to the second calibration programming. Understandably, during the process of controlling the current generator to work and causing the current ambient current to drop, the target Hall chip is prone to hysteresis, and its zero-point output voltage will change. Therefore, it is necessary to execute the zero-point calibration programming program again to ensure the accuracy of the finally determined target zero-point parameters. (4) Execute the second full-scale calibration programming program, control the current generator to work, so that when the current ambient current rises to the full-scale current threshold again, it meets the ambient current required for full-scale calibration programming. At this time, it is necessary to perform full-scale calibration programming on the target Hall chip according to the initial full-scale parameters to determine the target full-scale parameters corresponding to the second calibration programming. (5) Since the current ambient current is high when the full-scale calibration programming program is executed, which is much higher than the ambient current required for the implementation of other functions (for example, much higher than the ambient current required for data storage and data detection processing), it is necessary to control the current generator to work again to reduce the current ambient current. However, during the process of reducing the current ambient current, the target Hall chip is prone to hysteresis, and its zero-point output voltage will change. Therefore, it is necessary to execute the third zero-point calibration programming program to control the current generator to work and reduce the current ambient current to the zero-point current threshold (which can be room temperature). Based on the initial zero-point parameters, the target Hall chip is calibrated and programmed to determine the target zero-point parameters corresponding to the third calibration programming, so as to ensure the accuracy of the final determined target zero-point parameters.

[0053] Further, before step S201, the programming controller performs a data table creation operation. The created electronic folder contains two data tables: an ID data table and a parameter data table, each with a corresponding storage path. The ID data table stores the chip ID and related information of the target Hall chip. The parameter data table stores information such as the chip ID, zero-point parameters, and full-scale parameters of the target Hall chip. In this example, when calibrating and programming the target Hall chip, the programming controller stores the chip ID of the target Hall chip in the ID data table via the storage path corresponding to the ID data table. During the table creation process, it reads array data from the data table and concatenates it with data from the current programming process to form a new array. This new array is then stored in the parameter data table via the storage path corresponding to the parameter data table, enabling quality detection based on the target zero-point parameters and at least two target full-scale parameters recorded during calibration programming.

[0054] As an example, in step S402, during the actual production process of the target Hall chip, when the Hall chip is pressed into the air gap of the magnetic core, the state of the Hall chip in the magnetic core cannot be directly detected because the PC end and the magnetic core form a closed space. This may result in some target Hall chips being bent. Without direct inspection of the target Hall chips, bent defective products may enter the market. Research has found that the morphological differences of the Hall chip in the magnetic core can cause significant changes in its programming sensitivity, thereby significantly changing chip parameters such as the target zero-point parameter and the target full-scale parameter. Therefore, the target Hall chip can be quality inspected based on at least two target zero-point parameters and at least two target full-scale parameters to obtain the quality inspection results.

[0055] Understandably, after calibrating and programming the target Hall chip, the chip ID corresponding to the target Hall chip, two target zero-point parameters, and at least two target full-scale parameters are stored in a data table. This allows the target Hall chip to be tracked based on its chip ID. In case of anomalies, the target zero-point parameters and target full-scale parameters can be tracked to analyze the cause of the anomaly, which is more conducive to the optimization of industrial production.

[0056] Specifically, the system compares whether the first difference between any two of the at least two target zero-point parameters reaches a first threshold, and compares whether the second difference between any two of the at least two target full-scale parameters reaches a second threshold. If the first difference is greater than the first threshold and / or the second difference is greater than the second threshold, the target Hall chip is considered to have a bending phenomenon, i.e., it is a defective product with a problem, thus obtaining a quality inspection result of failing the inspection. If the first difference is not greater than the first threshold and the second difference is not greater than the second threshold, the target Hall chip is considered to not have a bending phenomenon, thus obtaining a quality inspection result of passing the inspection. The first threshold and the second threshold are both preset thresholds, which are used to evaluate whether the zero-point parameters and full-scale parameters are defective products, respectively.

[0057] For example, the morphological differences of the Hall chip in the magnetic core will cause a significant change in its programming sensitivity, which in turn will cause a significant change in the target full-scale fine-tuning parameter. Therefore, the second difference between any two of the at least two target full-scale fine-tuning parameters can be compared. When the second difference is greater than the second threshold, it can be determined that the target Hall chip is in a bending state with a high probability, that is, it is a defective product with a high probability, so as to complete the quality inspection operation and obtain the quality inspection result.

[0058] Understandably, the calibration programming of the target Hall chip adopts a two-point calibration programming method, that is, calibration programming of the zero point and full scale. During the step-by-step calibration programming process, the gain of the Hall chip may change slightly. This change will have a huge impact on the accuracy of the zero point and full scale of the finished product. Therefore, it is necessary to execute the zero point calibration programming program and the full scale calibration programming program alternately to obtain at least two target zero point parameters and at least two target full scale parameters to ensure the accuracy of the zero point and full scale calibration programming. This ensures the accuracy of the target zero point parameters and target full scale parameters written in the end, thereby improving the yield of the target Hall chip.

[0059] In one embodiment, such as Figure 4 As shown, step S202, which involves zero-point calibration programming of the target Hall chip based on the initial chip parameters to determine the target zero-point parameters, includes: S401: Determine the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters; S402: Obtain the zero-point output voltage corresponding to the target Hall chip; S403: Determine the zero-point voltage difference based on the zero-point output voltage and the zero-point target voltage; S404: Determine the target zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference.

[0060] The initial zero-point parameter refers to the zero-point parameter initially configured for the target Hall chip, which can be understood as the zero-point parameter set when the target Hall chip leaves the factory. The valid zero-point parameter is the zero-point parameter that falls within the valid range based on the initial zero-point parameter.

[0061] As an example, in step S401, the programmable controller controls the current generator to operate. When the current ambient current reaches the zero-point current threshold, it first obtains the initial chip parameter corresponding to the target Hall chip from the buffer. Then, a pre-set valid zero-point parameter determination program is used to process the initial zero-point parameter. The output of the valid zero-point parameter determination program is determined as the valid zero-point parameter corresponding to the target Hall chip. This valid zero-point parameter is within the pre-configured valid zero-point range to ensure the accuracy of subsequent target zero-point parameter calibration programming. The valid zero-point parameter determination program is a pre-set program that takes the initial zero-point parameter as input and the valid zero-point parameter as output. In this example, after obtaining the valid zero-point parameter, the programmable controller can store the valid zero-point parameter in a temporary register (such as RAM) for subsequent processing.

[0062] Zero-point output voltage refers to the output voltage measured by the target Hall chip at the current moment during the zero-point parameter calibration and programming process.

[0063] As an example, in step S402, after the programmable controller obtains the valid zero-point parameters corresponding to the target Hall chip, it can send a voltage acquisition command to the data acquisition unit to acquire the zero-point output voltage corresponding to the target Hall chip at the current moment, so as to determine the final target zero-point parameters based on the zero-point output voltage and the valid zero-point parameters.

[0064] The zero-point target voltage is the voltage that the target Hall chip should reach during the zero-point calibration programming process, which is pre-configured.

[0065] As an example, in step S403, after the programmable controller acquires the zero-point output voltage collected at the current moment, it can calculate the difference between the zero-point output voltage and the zero-point target voltage pre-configured by the system to determine the zero-point voltage difference. That is, the zero-point voltage difference refers to the difference between the zero-point output voltage and the zero-point target voltage.

[0066] Among them, the target zero-point parameters are the final determined zero-point parameters that need to be written into the target Hall chip.

[0067] As an example, in step S404, after determining the valid zero-point parameters and the zero-point voltage difference, the programmable controller can use a pre-set target zero-point parameter determination program to process the valid zero-point parameters and the zero-point voltage difference, and determine the target zero-point parameters based on the output of the target zero-point parameter determination program. The target zero-point parameter determination program is a program that uses the valid zero-point parameters and the zero-point voltage difference as input parameters and the target zero-point parameters as output parameters.

[0068] Understandably, first, based on the initial zero-point parameters, determine the effective zero-point parameters within the effective range of the zero point to ensure the accuracy of the zero-point calibration programming; then, determine the zero-point voltage difference between the zero-point output voltage and the zero-point target voltage; based on the zero-point voltage difference and the effective zero-point parameters, determine the target zero-point parameters that need to be written to the target Hall chip to ensure the accuracy of the target zero-point parameters.

[0069] In one embodiment, such as Figure 4 As shown, in step S401, based on the initial zero-point parameters, the effective zero-point parameters within the effective range of the zero point are determined, including: S501: Compare the initial zero-point parameter with the zero-point parameter threshold; S502: If the initial zero-point parameter is less than the zero-point parameter threshold, then the initial zero-point parameter is determined as a valid zero-point parameter; S503: If the initial zero-point parameter is not less than the zero-point parameter threshold, then the effective zero-point parameter is determined to be 0.

[0070] The zero-point parameter threshold is a pre-configured threshold used to evaluate whether the zero-point parameter meets the valid standard. For example, the zero-point parameter threshold can be set to 4096.

[0071] As an example, after the programmable controller reads the initial zero-point parameters corresponding to the target Hall chip from the buffer, it can compare these initial zero-point parameters with the system's preset zero-point parameter threshold to determine the valid zero-point parameters based on the comparison result. If the initial zero-point parameters are less than the zero-point parameter threshold, it is determined that the initial zero-point parameters of the target Hall chip do not exceed its maximum permissible zero-point parameter threshold, i.e., they are within the valid zero-point range. Therefore, the initial zero-point parameters can be determined as valid zero-point parameters. If the initial zero-point parameters are not less than the zero-point parameter threshold, it is determined that the initial zero-point parameters of the target Hall chip have exceeded its maximum permissible zero-point parameter threshold. To avoid affecting the accuracy of subsequent zero-point calibration programming results, the valid zero-point parameters can be set to the default value of 0, ensuring that the acquired valid zero-point parameters are within their preset valid zero-point range.

[0072] Understandably, determining the effective zero-point parameter range to be between 0 and the zero-point parameter threshold based on the comparison between the initial zero-point parameter and the zero-point parameter threshold helps to avoid the effective zero-point parameter value being too large, which would affect the accuracy of subsequent zero-point calibration programming results.

[0073] In one embodiment, such as Figure 6 As shown, step S404, which determines the target zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference, includes: S601: Compare the zero-point voltage difference with the zero-point voltage difference threshold; S602: If the zero-point voltage difference is not greater than the zero-point voltage difference threshold, then the effective zero-point parameter is determined as the target zero-point parameter; S602: If the zero-point voltage difference is greater than the zero-point voltage difference threshold, then update the initial zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference, and repeat the process of determining the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters.

[0074] The zero-point voltage difference threshold is a pre-configured threshold used to evaluate whether the zero-point voltage difference has reached a large standard. For example, the zero-point voltage difference threshold can be set to 1.5mV.

[0075] As an example, after calculating the zero-point voltage difference, the programmable controller can compare this value with a pre-set zero-point voltage difference threshold to determine the target zero-point parameter. When the zero-point voltage difference is not greater than the zero-point voltage difference threshold, for example, when the zero-point voltage difference is less than or equal to 1.5mV, it is determined that the zero-point voltage difference between the target Hall chip's zero-point output voltage and the target zero-point voltage has reached a relatively small standard. In this case, the valid zero-point parameter can be determined as the target zero-point parameter, and this target zero-point parameter can be written into the target Hall chip, thus ending the zero-point calibration programming. When the zero-point voltage difference is greater than the zero-point voltage difference threshold, for example, when the zero-point voltage difference is greater than 1.5mV, it is determined that the zero-point voltage difference between the zero-point output voltage of the target Hall chip and the zero-point target voltage has not reached the minimum standard. At this time, the initial zero-point parameter corresponding to the current moment needs to be updated according to the valid zero-point parameter and the zero-point voltage difference, and then the initial zero-point parameter is written into the buffer so that the valid zero-point parameter within the valid range is determined according to the initial zero-point parameter, that is, the steps S401-S404 are repeated.

[0076] Understandably, based on the comparison between the zero-point voltage difference and the zero-point voltage difference threshold, it is determined whether to end the current zero-point calibration programming or update the initial zero-point parameters. Steps S401-S404 are repeated until the zero-point voltage difference is not greater than the zero-point voltage difference threshold. Only then will the zero-point calibration programming end, so as to ensure that the final target zero-point parameters are formed under the condition that the zero-point voltage difference is not greater than the zero-point voltage difference threshold, thereby ensuring the accuracy of the target zero-point parameters.

[0077] In one embodiment, such as Figure 7 As shown, in step S602, the initial zero-point parameters are updated based on the effective zero-point parameters and the zero-point voltage difference, including: S701: Determine the new zero-point parameters based on the zero-point voltage difference and the zero-point parameter step value; S702: Update the initial zero-point parameters based on the newly added zero-point parameters and the valid zero-point parameters.

[0078] The zero-point parameter step value is a pre-set step value related to the zero-point parameter. For example, the zero-point parameter step value can be set to 1.22.

[0079] As an example, in step S701, the programmable controller can calculate and determine the new zero-point parameter based on the real-time calculated zero-point voltage difference and the preset zero-point parameter step value. In this example, the programmable controller can determine the new zero-point parameter as the quotient of the zero-point voltage difference and the zero-point parameter step value.

[0080] As an example, in step S702, the programming controller can update the initial zero-point parameters pre-stored in the buffer based on the newly calculated zero-point parameters and the valid zero-point parameters pre-stored in the temporary register. In this example, the programming controller can determine the updated initial zero-point parameters as the sum of the newly calculated zero-point parameters and the valid zero-point parameters, and write the updated initial zero-point parameters into the buffer so that steps S401-S404 can be repeated until the zero-point calibration programming is completed.

[0081] In one embodiment, such as Figure 8 As shown, step S203, which involves programming the target Hall chip for full-scale calibration based on the initial chip parameters to determine the target full-scale parameters, includes: S801: Based on the initial full-scale coarse adjustment parameters, perform full-scale coarse adjustment parameter calibration programming on the target Hall chip to determine the target full-scale coarse adjustment parameters; S802: Based on the initial full-scale fine-tuning parameters, perform full-scale fine-tuning parameter calibration programming on the target Hall chip to determine the target full-scale fine-tuning parameters; The target full-scale parameters include the target full-scale coarse adjustment parameters and the target full-scale fine adjustment parameters.

[0082] The initial full-scale coarse adjustment parameter refers to the initial full-scale coarse adjustment parameter (RG parameter) configured for the target Hall chip, which can be understood as the full-scale coarse adjustment parameter set at the factory. This full-scale coarse adjustment parameter is used to adjust larger full-scale ranges. The initial full-scale fine adjustment parameter refers to the initial full-scale fine adjustment parameter (FG parameter) configured for the target Hall chip, which can be understood as the full-scale fine adjustment parameter set at the factory. This full-scale fine adjustment parameter is used to set smaller full-scale ranges.

[0083] As an example, in step S801, the programmable controller controls the current generator to operate. When the current ambient current reaches the full-scale current threshold, it first obtains the initial full-scale coarse adjustment parameters corresponding to the target Hall chip from the buffer. Then, according to the full-scale coarse adjustment parameter programming program, it calibrates and programs the initial full-scale coarse adjustment parameters corresponding to the target Hall chip. Based on the output of the full-scale coarse adjustment parameter programming program, the target full-scale coarse adjustment parameters are determined and can be written onto the target Hall chip. The full-scale coarse adjustment parameter programming program is a pre-configured program used to calibrate and program the full-scale coarse adjustment parameters.

[0084] As an example, in step S802, when the current ambient current reaches the full-scale current threshold and the full-scale coarse adjustment parameter calibration programming is completed, the programmable controller can first obtain the initial full-scale fine adjustment parameters corresponding to the target Hall chip from the buffer, and then perform calibration programming on the initial full-scale fine adjustment parameters corresponding to the target Hall chip according to the full-scale fine adjustment parameter programming program. Based on the output result of the full-scale fine adjustment parameter programming program, the target full-scale fine adjustment parameters are determined and can be written onto the target Hall chip. The full-scale fine adjustment parameter programming program is a pre-configured program used to implement the calibration programming of the full-scale fine adjustment parameters.

[0085] For Hall effect sensors, the full-scale output voltage needs to be controlled by both the full-scale coarse adjustment parameter and the full-scale fine adjustment parameter. However, the full-scale coarse adjustment parameter affects the accuracy of the full-scale fine adjustment parameter. Therefore, the full-scale coarse adjustment parameter must be calibrated and programmed first, and then the full-scale fine adjustment parameter must be calibrated and programmed to obtain the target full-scale parameters and ensure their accuracy.

[0086] In one embodiment, such as Figure 9 As shown, step S801, which involves programming the target Hall chip to calibrate the full-scale coarse adjustment parameters based on the initial full-scale coarse adjustment parameters, and determining the target full-scale coarse adjustment parameters, includes: S901: Write the initial full-scale coarse adjustment parameters to a temporary register; S902: Obtain the first full-scale output voltage corresponding to the target Hall chip; S903: If the first full-scale output voltage is greater than the first full-scale target voltage, then the initial full-scale coarse adjustment parameter is determined as the target full-scale coarse adjustment parameter. S904: If the first full-scale output voltage is not greater than the first full-scale target voltage, then update the initial full-scale coarse adjustment parameter according to the initial full-scale coarse adjustment parameter and the coarse adjustment parameter step value, and repeat the process of writing the initial full-scale coarse adjustment parameter to the temporary register.

[0087] As an example, in step S901, the programming controller can read the initial full-scale coarse adjustment parameter from the buffer, for example, by using the Get method to read the initial full-scale coarse adjustment parameter from the buffer and writing the initial full-scale coarse adjustment parameter to a temporary register so that its initial full-scale coarse adjustment parameter can be quickly read from or updated in the temporary register later.

[0088] The first full-scale output voltage refers to the output voltage measured by the target Hall chip at the current moment during the full-scale coarse-scale parameter calibration programming process.

[0089] As an example, in step S902, after the programmable controller writes the initial full-scale coarse adjustment parameters read from the buffer into the temporary register, it can send a voltage acquisition command to the data acquisition unit to acquire the first full-scale output voltage corresponding to the target Hall chip at the current moment, so as to evaluate whether the initial full-scale coarse adjustment parameters stored in the temporary register can be used as the target full-scale coarse adjustment parameters based on the first full-scale output voltage.

[0090] The first full-scale target voltage refers to the voltage that the target Hall chip should reach during the full-scale coarse adjustment parameter calibration programming process, which is the theoretical value of the full scale.

[0091] As an example, in step S903, after the programmable controller obtains the first full-scale output voltage, it can compare the first full-scale output voltage with the first full-scale target voltage. When the first full-scale output voltage is greater than the first full-scale target voltage, it is determined that the first full-scale output voltage has reached the voltage standard corresponding to the full scale. The initial full-scale coarse adjustment parameter stored in the temporary register can be confirmed as the target full-scale coarse adjustment parameter, and the target full-scale coarse adjustment parameter can be written onto the target Hall chip to complete the full-scale coarse adjustment parameter calibration programming.

[0092] The coarse adjustment parameter step value is a pre-configured step value related to the full-scale coarse adjustment parameter. For example, the coarse adjustment parameter step value can be set to 1.

[0093] As an example, in step S904, after the programmable controller obtains the first full-scale output voltage, it can compare the first full-scale output voltage with the first full-scale target voltage. If the first full-scale output voltage is not greater than the first full-scale target voltage, it is determined that the first full-scale output voltage has not reached the voltage standard corresponding to the full scale. At this time, the programmable controller can update the initial full-scale coarse adjustment parameters according to the initial full-scale coarse adjustment parameters stored in the temporary register and the coarse adjustment parameter step value preset by the system, and then repeat the process of writing the initial full-scale coarse adjustment parameters into the temporary register.

[0094] In this example, the programmable controller can update the sum of the initial full-scale coarse adjustment parameter and the coarse adjustment parameter step value to a new initial full-scale coarse adjustment parameter, and then repeat steps S901-S904 until the first full-scale output voltage acquired in real time is greater than the first full-scale target voltage. Only when the first full-scale output voltage is determined to have reached the voltage standard corresponding to the full scale will the initial full-scale coarse adjustment parameter in the temporary register be determined as the target full-scale coarse adjustment parameter after adjustment, and the current full-scale coarse adjustment parameter calibration programming operation be ended.

[0095] Understandably, based on the comparison result between the first full-scale output voltage and the first full-scale target voltage, it is determined whether to end the current full-scale coarse adjustment parameter calibration programming or update the initial full-scale coarse adjustment parameters. Steps S901-S904 are repeated until the first full-scale output voltage is greater than the first full-scale target voltage. Only then will the full-scale coarse adjustment parameter calibration programming end, so as to ensure that the final determined target full-scale coarse adjustment parameters are formed when the first full-scale output voltage is greater than the first full-scale target voltage, thereby ensuring the accuracy of the target full-scale coarse adjustment parameters.

[0096] In one embodiment, such as Figure 10 As shown, step S802, which involves programming the target Hall chip to calibrate the full-scale fine-tuning parameters based on the initial full-scale fine-tuning parameters, and determining the target full-scale fine-tuning parameters, includes: S1001: Determine the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters; S1002: Obtain the second full-scale output voltage corresponding to the target Hall chip; S1003: Determine the full-scale voltage difference based on the second full-scale output voltage and the second full-scale target voltage; S1004: Determine the target full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference.

[0097] The initial full-scale fine-tuning parameter refers to the full-scale fine-tuning parameter initially configured for the target Hall chip, which can be understood as the full-scale fine-tuning parameter set at the factory. The effective full-scale fine-tuning parameter is the full-scale fine-tuning parameter that is within the effective range of the fine-tuning parameter based on the initial full-scale fine-tuning parameter.

[0098] As an example, in step S1001, the programmable controller controls the current generator to operate. When the current ambient current reaches the full-scale current threshold, it first obtains the initial chip parameters—the initial full-scale fine-tuning parameters corresponding to the target Hall chip—from the buffer. Then, a pre-set valid full-scale fine-tuning parameter determination program processes the initial full-scale fine-tuning parameters. The output of the valid full-scale fine-tuning parameter determination program is determined as the valid full-scale fine-tuning parameters corresponding to the target Hall chip. These valid full-scale fine-tuning parameters are within the pre-configured valid range of fine-tuning parameters to ensure the accuracy of subsequent full-scale fine-tuning parameter calibration programming. The valid full-scale fine-tuning parameter determination program is a pre-set program that takes the initial full-scale fine-tuning parameters as input and the valid full-scale fine-tuning parameters as output. In this example, after obtaining the valid full-scale fine-tuning parameters, the programmable controller can store them in a temporary register RAM for subsequent processing.

[0099] The second full-scale output voltage refers to the output voltage measured by the target Hall chip at the current moment during the full-scale fine-tuning parameter calibration programming process.

[0100] As an example, in step S1002, after the programmable controller obtains the effective full-scale fine-tuning parameters corresponding to the target Hall chip, it can send a voltage acquisition command to the data acquisition unit to acquire the second full-scale output voltage corresponding to the target Hall chip at the current moment, so as to determine the final target full-scale fine-tuning parameters based on the second full-scale output voltage and the effective full-scale fine-tuning parameters.

[0101] The second full-scale target voltage is the voltage that the target Hall chip should reach during the full-scale fine-tuning parameter calibration programming process, which is pre-configured.

[0102] As an example, in step S1003, after the programmable controller acquires the second full-scale output voltage collected at the current moment, it can calculate the difference between the second full-scale output voltage and the second full-scale target voltage pre-configured by the system to determine the full-scale voltage difference. That is, the full-scale voltage difference refers to the difference between the second full-scale output voltage and the second full-scale target voltage.

[0103] Among them, the target full-scale fine-tuning parameters are the final full-scale fine-tuning parameters that need to be written into the target Hall chip.

[0104] As an example, in step S1004, after determining the effective full-scale fine-tuning parameters and the full-scale voltage difference, the programmable controller can use a pre-set target full-scale fine-tuning parameter determination program to process the effective full-scale fine-tuning parameters and the full-scale voltage difference, and determine the target full-scale fine-tuning parameters based on the output of the target full-scale fine-tuning parameter determination program. The target full-scale fine-tuning parameter determination program is a program that uses the effective full-scale fine-tuning parameters and the full-scale voltage difference as input parameters and the target full-scale fine-tuning parameters as output parameters.

[0105] Understandably, first, based on the initial full-scale fine-tuning parameters, determine the effective full-scale fine-tuning parameters within the valid range of the fine-tuning parameters to ensure the accuracy of the full-scale calibration programming; then, determine the full-scale voltage difference between the second full-scale output voltage and the second full-scale target voltage, and based on the full-scale voltage difference and the effective full-scale fine-tuning parameters, determine the final target full-scale fine-tuning parameters that need to be written to the target Hall chip to ensure the accuracy of the target full-scale fine-tuning parameters.

[0106] In one embodiment, such as Figure 11 As shown, in step S1001, based on the initial full-scale fine-tuning parameters, the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters are determined, including: S1101: Compare the initial full-scale fine-tuning parameter with the full-scale fine-tuning parameter threshold; S1102: If the initial full-scale fine-tuning parameter is less than the full-scale fine-tuning parameter threshold, then the initial full-scale fine-tuning parameter is determined as the valid full-scale fine-tuning parameter. S1103: If the initial full-scale fine-tuning parameter is not less than the full-scale fine-tuning parameter threshold, then the effective full-scale fine-tuning parameter is set to 0.

[0107] The full-scale fine-tuning parameter threshold is a pre-configured threshold used to evaluate whether the full-scale fine-tuning parameter meets the valid standard. For example, the full-scale fine-tuning parameter threshold can be set to 1024.

[0108] As an example, after the programmable controller reads the initial full-scale fine-tuning parameters corresponding to the target Hall chip from the buffer, it can compare these initial full-scale fine-tuning parameters with the system's preset full-scale fine-tuning parameter threshold to determine its valid full-scale fine-tuning parameters based on the comparison result. If the initial full-scale fine-tuning parameter is less than the threshold, it is determined that the target Hall chip's initial full-scale fine-tuning parameter does not exceed its maximum allowable threshold, i.e., it is within the valid range of fine-tuning parameters. Therefore, the initial full-scale fine-tuning parameter can be determined as a valid full-scale fine-tuning parameter. If the initial full-scale fine-tuning parameter is not less than the threshold, it is determined that the target Hall chip's initial full-scale fine-tuning parameter has exceeded its maximum allowable threshold. To avoid affecting the accuracy of full-scale calibration programming, its valid full-scale fine-tuning parameter can be set to the default value of 0, ensuring that the obtained valid full-scale fine-tuning parameter is within its preset valid range.

[0109] Understandably, by comparing the initial full-scale fine-tuning parameter with the full-scale fine-tuning parameter threshold, determining that the effective full-scale fine-tuning parameter value is within the effective range of 0 to the full-scale fine-tuning parameter threshold helps to avoid the effective full-scale fine-tuning parameter value being too large, which would affect the accuracy of the full-scale fine-tuning parameter calibration programming.

[0110] In one embodiment, such as Figure 12 As shown, step S1004, which involves determining the target full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference, includes: S1201: Compare the full-scale voltage difference with the full-scale voltage difference threshold; S1202: If the full-scale voltage difference is not greater than the full-scale voltage difference threshold, then the effective full-scale fine-tuning parameter is determined as the target full-scale fine-tuning parameter. S1203: If the full-scale voltage difference is greater than the full-scale voltage difference threshold, then update the initial full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference, and repeat the process of determining the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters.

[0111] The full-scale voltage difference threshold is a pre-configured threshold used to evaluate whether the full-scale voltage difference has reached a large standard. For example, the full-scale voltage difference threshold can be set to 2mV.

[0112] As an example, after calculating the full-scale voltage difference, the programmable controller can compare this difference with a pre-set full-scale voltage difference threshold (e.g., 2mV) to determine the target full-scale fine-tuning parameters based on the comparison result. When the full-scale voltage difference is not greater than the full-scale voltage difference threshold, i.e., the full-scale voltage difference is less than or equal to 2mV, it is determined that the full-scale voltage difference between the second full-scale output voltage of the target Hall chip and the second full-scale target voltage has reached a smaller standard, and the fine-tuning parameter adjustment is considered complete. At this point, the effective full-scale fine-tuning parameter can be determined as the target full-scale fine-tuning parameter, and this target full-scale fine-tuning parameter can be written into the target Hall chip, ending the full-scale fine-tuning parameter calibration programming. When the full-scale voltage difference is greater than the full-scale voltage difference threshold, i.e., the full-scale voltage difference is greater than 2mV, it is determined that the full-scale voltage difference between the second full-scale output voltage of the target Hall chip and the second full-scale target voltage has not reached the minimum standard, and it is determined that the fine-tuning parameters have not been adjusted. At this time, it is necessary to update the initial full-scale fine-tuning parameters corresponding to the current moment according to the effective full-scale fine-tuning parameters and the full-scale voltage difference, and then write the initial full-scale fine-tuning parameters into the buffer so that the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters can be determined repeatedly according to the initial full-scale fine-tuning parameters, i.e., repeat steps S1001-S1004.

[0113] Understandably, based on the comparison between the full-scale voltage difference and the full-scale voltage difference threshold, it is determined whether to end the current full-scale fine-tuning parameter calibration programming or update the initial full-scale fine-tuning parameters. Steps S1001-S1004 are repeated until the full-scale voltage difference is not greater than the full-scale voltage difference threshold. Only then will the full-scale fine-tuning parameter calibration programming end. This ensures that the final target full-scale fine-tuning parameters are formed under the condition that the full-scale voltage difference is not greater than the full-scale voltage difference threshold, thus ensuring the accuracy of the target full-scale fine-tuning parameters.

[0114] In one embodiment, such as Figure 13 As shown, in step S1202, the initial full-scale fine-tuning parameters are updated based on the effective full-scale fine-tuning parameters and the full-scale voltage difference, including: S1301: Determine the new full-scale fine-tuning parameter based on the full-scale voltage difference and the full-scale fine-tuning parameter step value; S1302: Update the initial full-scale fine-tuning parameters based on the newly added full-scale fine-tuning parameters and the effective full-scale fine-tuning parameters.

[0115] The full-scale fine-tuning parameter step value is a preset step value related to the full-scale fine-tuning parameter. For example, the full-scale fine-tuning parameter step value can be set to 1.22.

[0116] As an example, in step S1301, the programmable controller can calculate and determine the new full-scale fine-tuning parameter based on the real-time calculated full-scale voltage difference and the preset full-scale fine-tuning parameter step value. In this example, the programmable controller can determine the quotient of the full-scale voltage difference and the full-scale fine-tuning parameter step value as the new full-scale fine-tuning parameter.

[0117] As an example, in step S1302, the programming controller can update the initial full-scale fine-tuning parameters pre-stored in the buffer based on the newly calculated full-scale fine-tuning parameters and the valid full-scale fine-tuning parameters pre-stored in the temporary register. In this example, the programming controller can determine the updated initial full-scale fine-tuning parameters as the sum of the newly calculated full-scale fine-tuning parameters and the valid full-scale fine-tuning parameters, and write the updated initial full-scale fine-tuning parameters into the buffer so that steps S1001-S1004 can be repeated until the full-scale fine-tuning parameter calibration programming is completed.

[0118] For example, when a user operates the programming controller to calibrate and program the target Hall chip, its overall programming state is as follows: The system initialization process, which is the process of initializing the system before the programming loop, specifically implements the following operations: Opening and connecting the PTC-04 device involves opening the PSF application handle, calling the function to search for connected device ports, returning the set of ports found, referencing the MPT reference handle, creating a project and connecting to the first port in the search set, resetting the device, and generating four objects: Device, Advanced, Solver, and PTC-04 Device. The measurement function is called through the Device object to measure the device's power supply voltage and current consumption, while simultaneously using the Device's properties to set the PTC mode connection method.

[0119] The data table creation process involves creating an electronic folder within the product series, creating and opening an electronic spreadsheet using the production batch, reading data from the spreadsheet, and storing it in an array. Simultaneously, a text file is created and opened using the production batch, the IDs within the text file are read, and the IDs are stored as variables. Data is then read to assign a value to this variable. If no data exists in the text file, the variable is assigned a value of 0. Next, the ID value is checked; it must be less than 65536. If it is greater than 65536, the ID is assigned a value of 1.

[0120] The data transfer process, namely the data initialization writing and data reading process, involves calling the read function through the Device object to read the device parameters into the PC-side read-only buffer IMG. The Copy function is then used to copy the parameters from the IMG to the TMP buffer. The Set parameter function is then used to write VOQ=1648; RG=1, FG=511, POL=0, and ID=ID variables to the TMP buffer. Comparing the IMG and TMP, the changed parameters are written to the EEPROM, completing the first initialization write. The device parameters are then read back again, the new device parameters are flushed to the image IMG, and the Get parameter method is called to read the device parameters from the TMP buffer.

[0121] The first zero-point calibration cycle, that is, the first execution of the zero-point calibration programming program, controls the current generator to work. When the current ambient current reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. For example, the Get method reads the value of parameter VOQ in TMP and compares it with 4096. If it is greater than 4096, VOQ=0 is written to TMP, the parameter in TMP is written to the temporary register RAM, and the zero-point output voltage of the product at this time is measured. The zero-point output voltage at this time is subtracted from the zero-point target value to calculate the difference as the zero-point voltage difference. When the difference between the two is greater than 1.5mV (i.e., the zero-point voltage difference is greater than the zero-point voltage difference threshold), the difference is converted to mV and divided by a step of 1.22. The original VOQ write parameter is added to obtain the new VOQ write parameter. The new write parameter is written to the TMP buffer and the above steps are repeated. When the difference between the two is less than or equal to 1.5mV (i.e., the zero-point voltage difference is not greater than the zero-point voltage difference threshold), it means that the zero-point parameter has been adjusted and the loop of Position1 calibration is exited.

[0122] The first full-scale calibration cycle, that is, the first execution of the full-scale calibration programming program, controls the current generator to work. When the current ambient current reaches the full-scale current threshold, the target Hall chip is calibrated according to the initial full-scale parameters to determine the target full-scale parameters.

[0123] For example, during the execution of the full-scale calibration programming program, the current generator needs to be controlled first to control the current rise. The current environment is achieved by controlling the current generator, which is connected to the PC via GPIB. The initialization and reset of the current generator are completed during the initialization phase. During the current rise phase, VISA is used to write commands, sending the command instructions OUTP ON VOLT 2; CURR 0. The initial voltage is set to 2V and the current to 0A, with the current value changed in 100A increments. New command instructions are sent, and when the current value reaches the target current value, the increase stops, and the command sending loop is interrupted. At this point, the current generator has output the desired target current value.

[0124] For this type of current sensor, its full-scale output voltage is controlled by two parameters (i.e., coarse adjustment parameter RG and fine adjustment parameter FG). The process of adjusting the full-scale Position2 is also divided into two small parts: the adjustment of coarse adjustment parameter RG and fine adjustment parameter FG.

[0125] First, for adjusting the coarse adjustment parameter RG, initialization is performed by writing RG=O.FG=1023 into the TMP buffer. The value of parameter RG in the TMP buffer is obtained through Get and assigned to the variable of adjustment range number. The parameter in TMP is written to the temporary register RAM. The output voltage of the product is measured to be the first full-scale output voltage. It is then determined whether the first full-scale output voltage is greater than the first full-scale target voltage. When the first full-scale output voltage is greater than the first full-scale target voltage, it indicates that the adjustment of RG is complete. When the first full-scale output voltage is not greater than the first full-scale target voltage, RG is incremented by 1 and assigned to RG. RG is written to the TMP buffer. The process of obtaining the value of parameter RG in the TMP buffer through Get and assigning it to the variable of adjustment range number is repeated. The parameter in TMP is written to the temporary register RAM, and the output voltage of the product is measured. When the condition that the first full-scale output voltage is greater than the first full-scale target voltage is met, the loop is exited, indicating that the adjustment of RG is complete.

[0126] Secondly, regarding the adjustment of FG: The value of parameter FG in the TMP buffer is obtained via Get. It is then checked whether this value is less than 1024. If it is greater than 1024, FG=0 is written to TMP. The parameter in the TMP buffer is written to the temporary register RAM, and the full-scale output voltage of the product is measured. The difference between this full-scale voltage and the target full-scale value is calculated as the full-scale voltage difference. It is then checked whether the full-scale voltage difference is less than 2mV. When the full-scale voltage difference is less than or equal to 2mV, i.e., the full-scale voltage difference is not significant... When the full-scale voltage difference threshold is reached, it indicates that FG adjustment is complete. When the difference does not meet the condition, that is, the full-scale voltage difference is greater than the full-scale voltage difference threshold, the difference is divided by the step value and added to the previous full-scale write parameter to obtain a new FG value. FG is written to the TMP buffer. The value of parameter FG in the TMP buffer at this time is repeatedly obtained through Get and assigned to the variable of adjustment range. The parameter in TMP is written to the temporary register RAM. The output voltage of the product is measured at this time. When the output voltage meets the condition, the loop is exited, indicating that FG adjustment is complete.

[0127] The second zero-point calibration cycle, i.e., the second execution of the zero-point calibration programming program, controls the current generator to operate. When the current ambient current reaches the zero-point current threshold, the target Hall chip is calibrated and programmed based on the initial zero-point parameters to determine the target zero-point parameters. Since the first full-scale calibration has already controlled the current to rise, the current generator needs to be controlled to decrease the current to the zero-point current threshold during the second zero-point calibration process. This is achieved by using VISA to write commands, sending the command instructions OUTP ON VOLT 0; CURR 0, setting the current generator's state at this time, with the output voltage set to 0V and the output current set to 0A. Next, the target Hall chip is calibrated and programmed based on the initial full-scale parameters to determine the target full-scale parameters. Because the target Hall chip is prone to hysteresis during the current generator's control of the current decrease, causing its zero-point output to change, further checks and adjustments are required.

[0128] The second full-scale calibration cycle, i.e., the second execution of the full-scale calibration programming program, requires first controlling the current generator to operate and control the current rise; then, based on the initial full-scale parameters, the target Hall chip is calibrated to determine the target full-scale parameters. Understandably, during the second full-scale calibration process, the coarse adjustment parameter RG may or may not be checked for calibration, while the focus is on checking and calibrating the fine adjustment parameter FG.

[0129] The third zero-point calibration cycle, i.e., the third execution of the zero-point calibration programming program, controls the current generator to operate. When the current ambient current reaches the zero-point current threshold, it performs zero-point calibration programming on the target Hall chip based on the initial zero-point parameters, determines the target zero-point parameters, and writes the finally determined target zero-point parameters into the target Hall chip. In this example, the parameters in the TMP are compared with the parameters in the IMG, and the changed parameters are written to the product's EEPROM.

[0130] (9) Data storage process: In the data table creation stage, two storage paths are obtained, namely the text storage path 2 for ID and the storage path 1 for parameter saving. The ID is written to the text storage document through storage path 2. The table array data is read in the table creation stage and connected with the data in this programming process to form a new array. The new array is stored in the spreadsheet through file path 1.

[0131] (10) Data analysis process, i.e. defective product screening process: During the actual production of the target Hall chip, when the Hall is pressed into the air gap of the magnetic core, the state of the Hall in the magnetic core cannot be directly detected because the PCB and the magnetic core form a closed space. Some products may have the Hall bent. Without direct detection, the bent defective products may enter the market. It was found that the difference in the shape of the Hall in the magnetic core will cause a significant change in its programming sensitivity. The most intuitive point in the programming process is that the FG parameter after programming will change significantly. After programming, the FG parameter after the chip programming is completed is read and its value is judged. In this way, the state of the Hall in the magnetic core can be judged through the FG parameter, and products with problems in Hall shape can be screened out.

[0132] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0133] In one embodiment, a programmable controller is provided, comprising: The data acquisition module is connected to the data acquisition device. Through the data acquisition device, it acquires the initial chip parameters and the current ambient current corresponding to the target Hall chip. The initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. The overall programming module, connected to the data acquisition module and the current generator, is used to execute the zero-point calibration programming program and control the current generator to operate. When the current ambient current acquired by the data acquisition module reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. It also executes the full-scale calibration programming program and controls the current generator to operate. When the current ambient current acquired by the data acquisition module reaches the full-scale current threshold, the target Hall chip is calibrated and programmed according to the initial full-scale parameters to determine the target full-scale parameters.

[0134] The data acquisition module is a functional module used to detect the product's output and external current environment. It primarily uses a data acquisition card to perform these functions. The data acquisition card acquires the output voltage and transmits it to the PC via USB. The PC processes the data to obtain the desired data. Data acquisition is implemented on the hardware side via the data acquisition card and on the PC side via the DAQ data acquisition module. The DAQ reads the output voltage from two channels. One channel acquires the current environment data, determined by the output of a standard calibration source. The acquired signal is processed using root mean square (RMS) calculation. The calibrated original output voltage obtained after RMS calculation is then divided with the sampling resistor to obtain the input current. The other channel acquires the output signal of the target Hall chip. Similarly, a basic DC RMS calculation is performed on the signal to obtain its voltage signal. Subsequent mathematical calculations yield the test error, the theoretical test value, and the corresponding data of the measured output. In this example, the program corresponding to the data acquisition module is nested within a While loop to achieve continuous operation, thus enabling real-time monitoring of the output voltage and current environment of the target Hall chip.

[0135] The overall programming module is used to program the target Hall chip, integrating all the main functions of the program. The overall programming module sets three main states for the Hall chip programming program: NULL state, overall programming state, and stop state. The NULL state is the default state of the main block diagram. When there is no event response, this state branch is executed; it has no internal program structure and represents a standby state when the program is unresponsive. The stop state occurs when the program control module sends a stop response message. The overall programming module responds to the stop state branch by setting the stop terminal that interrupts the overall programming module loop to True, thus interrupting the entire overall programming module. The overall programming state is the state used in the program control module to program the target Hall chip.

[0136] Understandably, the data acquisition module is a functional module that connects the data acquisition unit and the current generator set inside and outside the programmable controller. It can acquire the initial chip parameters corresponding to the target Hall chip in real time. The initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. It can also acquire the current ambient current in real time and send the acquired initial chip data and the current ambient current to the overall programming module. After receiving the initial chip data and the current ambient current, the overall programming module can execute the zero-point calibration programming program to control the current generator to change the current ambient current. When the current ambient current acquired by the data acquisition module reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. The processing procedure is described in detail in step S202, and will not be repeated here to avoid repetition. After receiving the initial chip data and the current ambient current, the overall programming module can also execute a full-scale calibration programming program to control the current generator to change the current ambient current. When the current ambient current acquired by the data acquisition module reaches the full-scale current threshold, the target Hall chip is calibrated according to the initial full-scale parameters to determine the target full-scale parameters. The processing procedure is described in detail in step S203, and will not be repeated here to avoid repetition.

[0137] In this example, the overall programming module executes a zero-point calibration programming program to control the current generator to change the current ambient current. When the current ambient current acquired by the data acquisition module reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters. The process of determining the target zero-point parameters is as follows: Figures 4-7 As shown, to avoid repetition, details are not elaborated here. Accordingly, the overall programming module executes the full-scale calibration programming program, controlling the current generator to operate and causing a change in the current ambient current. When the current ambient current acquired by the data acquisition module reaches the full-scale current threshold, the target Hall chip is calibrated according to the initial full-scale parameters. The process of determining the target full-scale parameters is as follows: Figures 8-13 As shown, to avoid repetition, each item will not be elaborated here.

[0138] In one embodiment, the programmable controller further includes a data analysis module: The overall programming module is also used to execute the zero-point calibration programming program and the full-scale calibration programming program alternately to obtain at least two target zero-point parameters and at least two target full-scale parameters; The data analysis module, connected to the overall programming module, is used to perform quality inspection on the target Hall chip based on at least two target zero-point parameters and at least two target full-scale parameters, and to obtain the quality inspection results.

[0139] As an example, the overall programming module can also execute the zero-point calibration programming program and the full-scale calibration programming program alternately to obtain at least two target zero-point parameters and at least two target full-scale parameters. For example, the specific processing steps include the following: (1) Execute the first zero-point calibration programming program to determine the target zero-point parameters corresponding to the first calibration programming. (2) Execute the first full-scale calibration programming program to determine the target full-scale parameters corresponding to the first calibration programming. (3) Execute the second zero-point calibration programming program to determine the target zero-point parameters corresponding to the second calibration programming. (4) Execute the second full-scale calibration programming program to determine the target full-scale parameters corresponding to the second calibration programming. (5) Execute the third zero-point calibration programming program to determine the target zero-point parameters corresponding to the third calibration programming.

[0140] As an example, the data analysis module can acquire at least two target zero-point parameters and at least two target full-scale parameters output by the overall programming module; compare whether a first difference between any two of the at least two target zero-point parameters reaches a first threshold, and compare whether a second difference between any two of the at least two target full-scale parameters reaches a second threshold; if the first difference is greater than the first threshold and / or the second difference is greater than the second threshold, it can be determined that the target Hall chip has a bending phenomenon, i.e., it is a defective product with a problem, so as to obtain a quality inspection result of failing the inspection; if the first difference is not greater than the first threshold and the second difference is not greater than the second threshold, it can be determined that the target Hall chip does not have a bending phenomenon, so as to obtain a quality inspection result of passing the inspection. The first threshold and the second threshold are both preset thresholds, which are used to evaluate whether the zero-point parameters and full-scale parameters are defective products.

[0141] Understandably, the calibration programming of the target Hall chip adopts a two-point calibration programming method, that is, calibration programming of the zero point and full scale. During the step-by-step calibration programming process, the gain of the Hall chip may change slightly. This change will have a huge impact on the accuracy of the zero point and full scale of the finished product. Therefore, it is necessary to execute the zero point calibration programming program and the full scale calibration programming program alternately to obtain at least two target zero point parameters and at least two target full scale parameters to ensure the accuracy of the zero point and full scale calibration programming. This ensures the accuracy of the target zero point parameters and target full scale parameters written in the end, thereby improving the yield of the target Hall chip.

[0142] In one embodiment, the programmable controller further includes: The program control module is used to output the current program status; The error handling module, connected to the program control module and the current generator, is used to trigger the error handling program and perform current reset and program locking operations when the current program state is an error state.

[0143] The program control module is a functional module used to control the program state. It performs its function through a while loop and an event structure. When different events occur, the program responds to the events and sends different state instructions to the program state machine, so that the program is in different current program states.

[0144] The initialization module is a functional module used to initialize the Hall chip programming program, specifically for data initialization and current generator reset initialization. It is executed first when the program starts running. In this example, data initialization includes initialization of the program control state machine, program control buttons, Boolean display control, and data variables. Current generator reset initialization involves connecting the current generator to the PC via GPIB, opening and writing commands via VISA on the program side, completing the transmission of command instructions between the PC and the current generator, sending the commands OUTP ON, VOLT 0; CURR 0 to complete the reset initialization, putting the current generator into standby mode, at which point the output voltage and output current are 0.

[0145] The error handling module is a functional module used to respond to errors.

[0146] As an example, the program control module is connected to the overall programming module and other functional modules in the system. It detects the current program state of the programming controller. When an error occurs or an abnormality occurs during operation, the program sends an error signal (presented as a Boolean status indicator in the program), and its output shows the current program state as an error state. The error handling module is connected to the program control module and triggers the error handling program to perform error response processing when the current program state is an error state. The error handling module consists of nested While loops and conditional structures, using the error signal as a condition terminal. When an error signal occurs, the error handling program is triggered to perform error response processing. In this example, the error handling program performs error response processing in two parts: first, it controls the current reset program to perform a current reset operation, similar to the initialization module, specifically by sending the command instructions OUTP ON, VOLT 0; CURR 0 to the current generator via VISA, causing it to complete the reset work, reducing both current and voltage to 0 to ensure safe operation; the other part controls the password lock program to perform a program lock operation, prompting a pop-up window to require a password to unlock.

[0147] In one embodiment, a Hall effect chip programming system is provided, including a programming controller as described in the above embodiments, and further including a data acquisition unit and a current generator connected to the programming controller. The programming controller cooperates with the data acquisition unit and the current generator to implement the Hall effect chip programming method described in the above embodiments, for example... Figure 2 As shown in S201-S203, or Figures 3 to 12 As shown in the figure, to avoid repetition, it will not be repeated here.

[0148] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0149] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0150] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A Hall effect chip programming method, characterized in that, include: The programmable controller acquires the initial chip parameters corresponding to the target Hall chip through the data acquisition device. The initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. The zero-point calibration programming program is executed. The programming controller controls the current generator connected to it to work. The current ambient current is collected through the data acquisition device. When the current ambient current reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. The full-scale calibration programming program is executed. The programming controller controls the current generator to work. The current ambient current is collected through the data acquisition device. When the current ambient current reaches the full-scale current threshold, the target Hall chip is calibrated according to the initial full-scale parameters to determine the target full-scale parameters.

2. The Hall chip programming method as described in claim 1, characterized in that, The Hall chip programming method also includes: The zero-point calibration programming program and the full-scale calibration programming program are executed alternately to obtain at least two target zero-point parameters and at least two target full-scale parameters. The target Hall chip is subjected to quality inspection based on at least two of the target zero-point parameters and at least two of the target full-scale parameters, and the quality inspection results are obtained.

3. The Hall chip programming method as described in claim 1, characterized in that, The step of performing zero-point calibration programming on the target Hall chip based on the initial chip parameters to determine the target zero-point parameters includes: Based on the initial zero-point parameters, determine the effective zero-point parameters within the effective range of the zero point; Obtain the zero-point output voltage corresponding to the target Hall chip; Determine the zero-point voltage difference based on the zero-point output voltage and the zero-point target voltage; The target zero-point parameters are determined based on the effective zero-point parameters and the zero-point voltage difference.

4. The Hall chip programming method as described in claim 3, characterized in that, The step of determining the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters includes: The initial zero-point parameter is compared with the zero-point parameter threshold. If the initial zero-point parameter is less than the zero-point parameter threshold, then the initial zero-point parameter is determined as a valid zero-point parameter; If the initial zero-point parameter is not less than the zero-point parameter threshold, then the effective zero-point parameter is determined to be 0.

5. The Hall chip programming method as described in claim 3, characterized in that, The step of determining the target zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference includes: The zero-point voltage difference is compared with the zero-point voltage difference threshold. If the zero-point voltage difference is not greater than the zero-point voltage difference threshold, then the effective zero-point parameter is determined as the target zero-point parameter; If the zero-point voltage difference is greater than the zero-point voltage difference threshold, then the initial zero-point parameters are updated according to the effective zero-point parameters and the zero-point voltage difference, and the process of determining the effective zero-point parameters within the effective range of the zero point based on the initial zero-point parameters is repeated.

6. The Hall chip programming method as described in claim 5, characterized in that, The step of updating the initial zero-point parameters based on the effective zero-point parameters and the zero-point voltage difference includes: The new zero-point parameters are determined based on the zero-point voltage difference and the zero-point parameter step value. Update the initial zero-point parameters based on the newly added zero-point parameters and the valid zero-point parameters.

7. The Hall chip programming method as described in claim 1, characterized in that, The step of performing full-scale calibration programming on the target Hall chip based on the initial chip parameters to determine the target full-scale parameters includes: Based on the initial full-scale coarse adjustment parameters, the target Hall chip is calibrated and programmed to determine the target full-scale coarse adjustment parameters. Based on the initial full-scale fine-tuning parameters, the target Hall chip is calibrated and programmed to determine the target full-scale fine-tuning parameters. The target full-scale parameter includes the target full-scale coarse adjustment parameter and the target full-scale fine adjustment parameter.

8. The Hall chip programming method as described in claim 7, characterized in that, The step of performing full-scale coarse-scale parameter calibration programming on the target Hall chip based on the initial full-scale coarse-scale parameters, and determining the target full-scale coarse-scale parameters, includes: Write the initial full-scale coarse adjustment parameters into a temporary register; Obtain the first full-scale output voltage corresponding to the target Hall chip; If the first full-scale output voltage is greater than the first full-scale target voltage, then the initial full-scale coarse adjustment parameter is determined as the target full-scale coarse adjustment parameter. If the first full-scale output voltage is not greater than the first full-scale target voltage, then the initial full-scale coarse adjustment parameter is updated according to the initial full-scale coarse adjustment parameter and the coarse adjustment parameter step value, and the step of writing the initial full-scale coarse adjustment parameter into the temporary register is repeated.

9. The Hall chip programming method as described in claim 7, characterized in that, The step of performing full-scale fine-tuning parameter calibration programming on the target Hall chip based on the initial full-scale fine-tuning parameters, and determining the target full-scale fine-tuning parameters, includes: Based on the initial full-scale fine-tuning parameters, determine the effective full-scale fine-tuning parameters that are within the effective range of the fine-tuning parameters; Obtain the second full-scale output voltage corresponding to the target Hall chip; The full-scale voltage difference is determined based on the second full-scale output voltage and the second full-scale target voltage. The target full-scale fine-tuning parameters are determined based on the effective full-scale fine-tuning parameters and the full-scale voltage difference.

10. The Hall chip programming method as described in claim 9, characterized in that, The step of determining the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters includes: The initial full-scale fine-tuning parameter is compared with the full-scale fine-tuning parameter threshold. If the initial full-scale fine-tuning parameter is less than the full-scale fine-tuning parameter threshold, then the initial full-scale fine-tuning parameter is determined as a valid full-scale fine-tuning parameter. If the initial full-scale fine-tuning parameter is not less than the full-scale fine-tuning parameter threshold, then the effective full-scale fine-tuning parameter is determined to be 0.

11. The Hall chip programming method as described in claim 9, characterized in that, The step of determining the target full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference includes: The full-scale voltage difference is compared with the full-scale voltage difference threshold. If the full-scale voltage difference is not greater than the full-scale voltage difference threshold, then the effective full-scale fine-tuning parameter is determined as the target full-scale fine-tuning parameter. If the full-scale voltage difference is greater than the full-scale voltage difference threshold, then the initial full-scale fine-tuning parameters are updated according to the effective full-scale fine-tuning parameters and the full-scale voltage difference, and the process of determining the effective full-scale fine-tuning parameters within the effective range of the fine-tuning parameters based on the initial full-scale fine-tuning parameters is repeated.

12. The Hall chip programming method as described in claim 11, characterized in that, The step of updating the initial full-scale fine-tuning parameters based on the effective full-scale fine-tuning parameters and the full-scale voltage difference includes: Based on the full-scale voltage difference and the full-scale fine-tuning parameter step value, determine the new full-scale fine-tuning parameter; Update the initial full-scale fine-tuning parameters based on the newly added full-scale fine-tuning parameters and the effective full-scale fine-tuning parameters.

13. A programmable controller, characterized in that, include: The data acquisition module is connected to the data acquisition device. Through the data acquisition device, it acquires the initial chip parameters and the current ambient current corresponding to the target Hall chip. The initial chip parameters include the initial zero-point parameters and the initial full-scale parameters. The overall programming module, connected to the data acquisition module and the current generator, is used to execute the zero-point calibration programming program and control the current generator to operate. When the current ambient current acquired by the data acquisition module reaches the zero-point current threshold, the target Hall chip is calibrated and programmed according to the initial zero-point parameters to determine the target zero-point parameters. It also executes the full-scale calibration programming program and controls the current generator to operate. When the current ambient current acquired by the data acquisition module reaches the full-scale current threshold, the target Hall chip is calibrated and programmed according to the initial full-scale parameters to determine the target full-scale parameters.

14. The programmable controller as described in claim 13, characterized in that, The programmable controller also includes a data analysis module: The overall programming module is also used to execute the zero-point calibration programming program and the full-scale calibration programming program alternately to obtain at least two target zero-point parameters and at least two target full-scale parameters; The data analysis module, connected to the overall programming module, is used to perform quality inspection on the target Hall chip based on at least two target zero-point parameters and at least two target full-scale parameters, and to obtain the quality inspection results.

15. The programmable controller as described in claim 13, characterized in that, The programmable controller also includes: The program control module is used to output the current program status; The error handling module, connected to the program control module and the current generator, is used to trigger the error handling program and perform current reset and program locking operations when the current program state is an error state.

16. A Hall effect chip programming system, characterized in that, The programmable controller includes the programmable controller according to any one of claims 13-15, and further includes a data acquisition unit and a current generator connected to the programmable controller.

Citation Information

Patent Citations

  • Calibration method of sensor signal transmitting device

    CN110553788A