[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114238005B - GPIO anti-shake function test method, system, device and chip - Google Patents

GPIO anti-shake function test method, system, device and chip Download PDF

Info

Publication number
CN114238005B
CN114238005B CN202210164709.XA CN202210164709A CN114238005B CN 114238005 B CN114238005 B CN 114238005B CN 202210164709 A CN202210164709 A CN 202210164709A CN 114238005 B CN114238005 B CN 114238005B
Authority
CN
China
Prior art keywords
gpio
interference signals
shake function
shake
less
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210164709.XA
Other languages
Chinese (zh)
Other versions
CN114238005A (en
Inventor
庄戌堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210164709.XA priority Critical patent/CN114238005B/en
Publication of CN114238005A publication Critical patent/CN114238005A/en
Application granted granted Critical
Publication of CN114238005B publication Critical patent/CN114238005B/en
Priority to PCT/CN2022/135692 priority patent/WO2023160099A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

本发明公开了一种GPIO防抖功能测试方法、系统、装置及芯片,该方法应用于芯片,先确定芯片中待检测的GPIO和辅助检测的GPIO,然后根据芯片自身内部的时钟,可以在芯片内部产生任意时间宽度的干扰信号,并将干扰信号通过辅助检测的GPIO发送至待检测的GPIO,再接收待检测的GPIO经过防抖处理后接受到的干扰信号,通过判断待检测GPIO经过防抖功能后接受到的全部干扰信号的数量是否等于第一预设数量来判断待检测的GPIO的防抖功能是否正常,可见通过这种方式不需要增加外接的信号发生器,同时也可以产生测试需要的任意时间长度的干扰信号。

Figure 202210164709

The invention discloses a GPIO anti-shake function testing method, system, device and chip. The method is applied to the chip. First, the GPIO to be detected and the auxiliary detected GPIO in the chip are determined. Internally generate an interference signal of any time width, and send the interference signal to the GPIO to be detected through the auxiliary detection GPIO, and then receive the interference signal received by the to-be-detected GPIO after anti-shake processing, by judging that the to-be-detected GPIO has undergone anti-shake processing Whether the number of all interference signals received after the function is equal to the first preset number is used to judge whether the anti-shake function of the GPIO to be detected is normal. It can be seen that this method does not need to add an external signal generator, and can also generate test requirements. interference signals of any length of time.

Figure 202210164709

Description

一种GPIO防抖功能测试方法、系统、装置及芯片A GPIO anti-shake function testing method, system, device and chip

技术领域technical field

本发明涉及芯片技术领域,特别是涉及一种GPIO防抖功能测试方法、系统、装置及芯片。The present invention relates to the technical field of chips, in particular to a method, system, device and chip for testing a GPIO anti-shake function.

背景技术Background technique

随着芯片技术的发展,芯片的功能也越来越多,目前芯片多采用GPIO(General-purpose input/output,通用输入输出管脚),一个GPIO可以复用多种信号引脚,方便用户通过GPIO自定义芯片的功能。GPIO自带的防抖功能可以去除输入至GPIO中的信号中的干扰信号,这直接影响到通过GPIO输入到芯片中的信号是否准确,因此,对于GPIO的防抖功能的测试就显得尤为重要。With the development of chip technology, the functions of the chip are also increasing. At present, the chip mostly uses GPIO (General-purpose input/output, general-purpose input and output pins). One GPIO can multiplex multiple signal pins, which is convenient for users to pass GPIO customizes the function of the chip. The anti-shake function of GPIO can remove the interference signal in the signal input to the GPIO, which directly affects the accuracy of the signal input to the chip through the GPIO. Therefore, it is particularly important to test the anti-shake function of the GPIO.

现有技术中,通常是采用外接的信号源来进行GPIO的防抖功能的测试,将外接的信号源产生的模拟干扰信号通过GPIO输入至芯片中,再观察芯片是否收到模拟干扰信号来判断GPIO是否滤除掉了干扰信号,以此来判断GPIO的防抖功能是否完好。但是外接信号源产生的干扰信号可能不能满足GPIO的防抖功能测试所需要的干扰信号的时间宽度,即外接信号源可能不能产生测试需要的合适的干扰信号,存在着一定的局限性,此外,外接的信号源需要额外的信号发生器,增加了测试成本。In the prior art, an external signal source is usually used to test the anti-shake function of the GPIO, and the analog interference signal generated by the external signal source is input into the chip through the GPIO, and then the chip is judged by observing whether the analog interference signal is received. Whether the GPIO has filtered out the interference signal, so as to judge whether the anti-shake function of the GPIO is in good condition. However, the interference signal generated by the external signal source may not meet the time width of the interference signal required for the anti-shake function test of GPIO, that is, the external signal source may not be able to generate the appropriate interference signal required for the test, which has certain limitations. In addition, The external signal source requires an additional signal generator, which increases the cost of testing.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种GPIO防抖功能测试方法、系统、装置及芯片,不需要添加额外的信号发生器,同时也可以产生测试需要的任意时间长度的干扰信号。The purpose of the present invention is to provide a GPIO anti-shake function testing method, system, device and chip, which does not need to add an additional signal generator, and can also generate interference signals of any length of time required for testing.

为解决上述技术问题,本发明提供了一种GPIO防抖功能测试方法,应用于芯片,所述GPIO防抖功能测试方法包括:In order to solve the above technical problems, the present invention provides a GPIO anti-shake function test method, which is applied to a chip. The GPIO anti-shake function test method includes:

确定所述芯片的待检测的第一GPIO和协助检测的第二GPIO;Determine the first GPIO to be detected and the second GPIO to assist in the detection of the chip;

生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数;generating M interference signals and sending the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

通过所述第一GPIO接收经过所述第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;Receive N interference signals after the anti-shake processing of the first GPIO through the first GPIO, where N is an integer not less than 0, and N is not greater than M;

判断N个所述干扰信号的总数量是否等于第一预设值;judging whether the total number of the N interference signals is equal to a first preset value;

若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。If so, it is determined that the anti-shake function of the first GPIO is normal; otherwise, it is determined that the anti-shake function of the first GPIO is abnormal.

优选的,生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数,包括:Preferably, M interference signals are generated and sent to the first GPIO through the second GPIO, where M is an integer not less than 1, including:

生成M个时间宽度各不相同的干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数。M interference signals with different time widths are generated, and the M interference signals are sent to the first GPIO through the second GPIO, where M is an integer not less than 1.

优选的,生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数,包括:Preferably, M interference signals are generated and sent to the first GPIO through the second GPIO, where M is an integer not less than 1, including:

生成A个时间宽度小于第一时间宽度阈值的干扰信号和B个时间宽度不小于所述第一时间宽度阈值的干扰信号,A与B均为不小于0的整数;generating A interference signals with a time width less than the first time width threshold and B interference signals with a time width not less than the first time width threshold, where A and B are both integers not less than 0;

通过所述第二GPIO将A个所述时间宽度小于所述第一时间宽度阈值的干扰信号和B个所述时间宽度不小于所述第一时间宽度阈值的干扰信号发送至所述第一GPIO;A number of interference signals with the time width less than the first time width threshold and B interference signals with the time width not less than the first time width threshold are sent to the first GPIO through the second GPIO ;

判断N个所述干扰信号的总数量是否等于第一预设值,包括:Determining whether the total number of the N interference signals is equal to the first preset value includes:

判断N个所述干扰信号的总数量是否为B个,若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。It is determined whether the total number of the N interference signals is B, and if so, it is determined that the anti-shake function of the first GPIO is normal; otherwise, it is determined that the anti-shake function of the first GPIO is abnormal.

优选的,判断N个所述干扰信号的总数量是否等于第一预设值,包括:Preferably, judging whether the total number of the N interference signals is equal to the first preset value includes:

对N个所述干扰信号进行边沿检测,得到N个所述干扰信号中一共存在J次电平跳变;Perform edge detection on the N interference signals, and obtain a total of J level transitions in the N interference signals;

判断J/2是否等于第一预设值;若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。Determine whether J/2 is equal to the first preset value; if yes, determine that the anti-shake function of the first GPIO is normal, otherwise, determine that the anti-shake function of the first GPIO is abnormal.

优选的,判定所述第一GPIO的防抖功能不正常之后,还包括:Preferably, after determining that the anti-shake function of the first GPIO is abnormal, the method further includes:

记录所述第一GPIO的防抖功能不正常并保存。Record that the anti-shake function of the first GPIO is abnormal and save it.

优选的,判定所述第一GPIO的防抖功能正常或判定所述第一GPIO的防抖功能不正常之后,还包括:Preferably, after determining that the anti-shake function of the first GPIO is normal or determining that the anti-shake function of the first GPIO is abnormal, the method further includes:

生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数;generating M interference signals and sending the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

通过所述第二GPIO接收经过所述第二GPIO防抖处理后的I个干扰信号,I为不小于0的整数,I不大于M;Receive, through the second GPIO, one interference signal after the anti-shake processing of the second GPIO, where I is an integer not less than 0, and I is not greater than M;

判断I个所述干扰信号的总数量是否等于第二预设值;Judging whether the total number of 1 described interference signals is equal to the second preset value;

若是,判定所述第二GPIO的防抖功能正常,否则,判定所述第二GPIO的防抖功能不正常。If so, it is determined that the anti-shake function of the second GPIO is normal; otherwise, it is determined that the anti-shake function of the second GPIO is abnormal.

优选的,判定所述第二GPIO的防抖功能不正常之后,还包括:Preferably, after determining that the anti-shake function of the second GPIO is abnormal, the method further includes:

记录所述第二GPIO的防抖功能不正常并保存。Record that the anti-shake function of the second GPIO is abnormal and save it.

为解决上述技术问题,本发明还提供了一种GPIO防抖功能测试系统,包括:In order to solve the above-mentioned technical problems, the present invention also provides a GPIO anti-shake function test system, including:

GPIO确定单元,用于确定待检测的第一GPIO和协助检测的第二GPIO;a GPIO determination unit, configured to determine the first GPIO to be detected and the second GPIO to assist in the detection;

干扰信号产生单元,用于产生M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数;an interference signal generating unit, configured to generate M interference signals and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

干扰信号接收单元,用于通过所述第一GPIO接收经过所述第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;an interference signal receiving unit, configured to receive, through the first GPIO, N interference signals after the anti-shake processing of the first GPIO, where N is an integer not less than 0, and N is not greater than M;

防抖功能判断单元,用于判断N个所述干扰信号的总数量是否等于第一预设值,若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。An anti-shake function determination unit, configured to determine whether the total number of the N interference signals is equal to a first preset value, if so, determine that the anti-shake function of the first GPIO is normal, otherwise, determine that the anti-shake function of the first GPIO is The shaking function is abnormal.

为解决上述技术问题,本发明还提供了一种GPIO防抖功能测试装置,包括:In order to solve the above-mentioned technical problems, the present invention also provides a GPIO anti-shake function test device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序以实现上述所述GPIO防抖功能测试方法的步骤。The processor is configured to execute the computer program to realize the steps of the above-mentioned GPIO anti-shake function test method.

为解决上述技术问题,本发明还提供了一种芯片,包括如上述所述的GPIO防抖功能测试装置。In order to solve the above technical problems, the present invention also provides a chip, including the above-mentioned GPIO anti-shake function test device.

本发明提供了一种GPIO防抖功能测试方法、系统、装置及芯片,先确定芯片的待检测的GPIO和辅助检测的GPIO,然后根据芯片自身内部的时钟,可以在芯片内部产生任意时间宽度的干扰信号,并将干扰信号通过辅助检测的GPIO发送至待检测的GPIO,再接收待检测的GPIO经过防抖处理后接受到的干扰信号,通过判断待检测GPIO经过防抖功能后接受到的全部干扰信号的数量是否等于第一预设数量来判断待检测的GPIO的防抖功能是否正常,可见通过这种方式不需要增加外接的信号发生器,同时也可以产生测试需要的任意时间长度的干扰信号。The invention provides a GPIO anti-shake function testing method, system, device and chip. First, the GPIO to be detected and the auxiliary detected GPIO of the chip are determined, and then according to the internal clock of the chip itself, an arbitrary time width can be generated inside the chip. Interference signal, and send the interference signal to the GPIO to be detected through the auxiliary detection GPIO, and then receive the interference signal received by the GPIO to be detected after anti-shake processing, by judging all the received GPIO after the anti-shake function. Whether the number of interference signals is equal to the first preset number is used to judge whether the anti-shake function of the GPIO to be detected is normal. It can be seen that this method does not need to add an external signal generator, and can also generate interference for any length of time required for the test. Signal.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the prior art and the accompanying drawings required in the embodiments. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明提供的一种GPIO防抖功能测试方法的流程图;Fig. 1 is the flow chart of a kind of GPIO anti-shake function test method provided by the present invention;

图2为本发明提供的一种GPIO防抖功能测试系统的结构示意图;2 is a schematic structural diagram of a GPIO anti-shake function test system provided by the present invention;

图3为本发明提供的一种GPIO防抖功能测试装置的结构示意图;3 is a schematic structural diagram of a GPIO anti-shake function testing device provided by the present invention;

图4为本发明提供的一种芯片的结构示意图。FIG. 4 is a schematic structural diagram of a chip provided by the present invention.

具体实施方式Detailed ways

本发明的核心是提供一种GPIO防抖功能测试方法、系统、装置及芯片,不需要添加额外的信号发生器,同时也可以产生测试需要的任意时间长度的干扰信号。The core of the present invention is to provide a GPIO anti-shake function testing method, system, device and chip, which does not need to add an additional signal generator, and can also generate interference signals of any length of time required for testing.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参照图1,图1为本发明提供的一种GPIO防抖功能测试方法的流程图,应用于芯片,包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a method for testing a GPIO anti-shake function provided by the present invention, applied to a chip, including:

S11:确定芯片的待检测的第一GPIO和协助检测的第二GPIO;S11: Determine the first GPIO to be detected and the second GPIO to assist in the detection of the chip;

S12:生成M个干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数;S12: Generate M interference signals and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

S13:通过第一GPIO接收经过第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;S13: Receive N interference signals after the first GPIO anti-shake processing through the first GPIO, where N is an integer not less than 0, and N is not greater than M;

S14:判断N个干扰信号的总数量是否等于第一预设值,若是,进入S15,否则,进入S16;S14: determine whether the total number of N interference signals is equal to the first preset value, if so, go to S15, otherwise, go to S16;

S15:判定第一GPIO的防抖功能正常;S15: determine that the anti-shake function of the first GPIO is normal;

S16:判定第一GPIO的防抖功能不正常。S16: It is determined that the anti-shake function of the first GPIO is abnormal.

目前,现有技术通常是通过外接的信号源来进行GPIO的防抖功能的测试,用外接的信号源产生的信号来模拟干扰信号,将模拟的干扰信号通过待检测的GPIO输入至芯片后,观察芯片是否接收到模拟的干扰信号来判断芯片的防抖功能是否能滤除掉干扰信号,以此判断GPIO的防抖功能是否正常。但是外接的信号源有时候产生的干扰信号可能不满足GPIO的防抖功能测试所需要的干扰信号的时间宽度,且外接的信号源需要额外的信号发生器,造成了测试成本的增加。At present, in the prior art, an external signal source is usually used to test the anti-shake function of the GPIO, the signal generated by the external signal source is used to simulate the interference signal, and after the simulated interference signal is input to the chip through the GPIO to be detected, Observe whether the chip receives the simulated interference signal to judge whether the anti-shake function of the chip can filter out the interference signal, so as to judge whether the anti-shake function of the GPIO is normal. However, sometimes the interference signal generated by the external signal source may not meet the time width of the interference signal required by the anti-shake function test of GPIO, and the external signal source requires an additional signal generator, which increases the test cost.

为了解决上述问题,本实施例中,是在芯片内部设计一个防抖功能测试模块,通过该模块,可以完成对芯片的GPIO的防抖功能的测试。具体的,GPIO在接收信号的时候,会有一个启动防抖功能的时间宽度阈值,这个时间宽度阈值可以根据实际使用情况进行配置,本发明在此不做特别的限定,例如当配置的GPIO启动防抖功能的时间宽度阈值为10us时,则GPIO会认为接受到的时间宽度低于10us的信号全部为干扰信号从而进行滤除操作,本方案中,确定了待检测的第一GPIO和辅助检测的第二GPIO后,会在芯片内部产生M个干扰信号,并将M个干扰信号通过第二GPIO发送至第一GPIO,再接收第一GPIO经过防抖处理后接受到的剩余的N个干扰信号,需要说明的是,这里的M个干扰信号的时间宽度可以根据测试人员的需求自行配置,测试人员根据GPIO启动防抖功能的时间宽度阈值及发送的M个干扰信号的时间宽度可以知道正常情况下经过第一GPIO防抖处理后应该剩余的干扰信号的数量,最后通过判断实际接收到的剩余的N个干扰信号的数量是否等于正常情况下经过第一GPIO防抖处理后应该剩余的干扰信号的数量来判断第一GPIO的防抖功能是否正常。例如当配置的GPIO启动防抖功能的时间宽度阈值为10us时,测试人员可以通过配置在芯片内部产生1us、2us、···、10us、11us共11个干扰信号,通过第二GPIO发送至第一GPIO,此时如果第一GPIO的防抖功能正常,则时间宽度低于10us的干扰信号应该都被滤除,即最终接收到的干扰信号应该只有时间宽度为10us和11us的两个干扰信号,当测试人员检测发现最终接收到的干扰信号的数量为两个时,即可证明第一GPIO的防抖功能正常,反之则证明第一GPIO的防抖功能不正常。In order to solve the above problem, in this embodiment, an anti-shake function test module is designed inside the chip, and through this module, the test of the anti-shake function of the GPIO of the chip can be completed. Specifically, when a GPIO receives a signal, there will be a time width threshold for enabling the anti-shake function. This time width threshold can be configured according to the actual use situation. The present invention does not make special restrictions here. For example, when the configured GPIO is activated When the time width threshold of the anti-shake function is 10us, the GPIO will consider that the received signals with a time width of less than 10us are all interference signals and perform filtering operations. In this scheme, the first GPIO to be detected and the auxiliary detection are determined. After the second GPIO is selected, M interference signals will be generated inside the chip, and the M interference signals will be sent to the first GPIO through the second GPIO, and then the remaining N interferences received by the first GPIO after anti-shake processing will be received. Signal, it should be noted that the time width of the M interference signals here can be configured according to the needs of the tester. The tester can know the normal time width of the M interference signals according to the time width threshold of the GPIO to start the anti-shake function and the time width of the M interference signals sent. Under normal circumstances, the number of remaining interference signals after the first GPIO anti-shake processing, and finally by judging whether the number of the remaining N interference signals actually received is equal to the remaining interference after the first GPIO anti-shake processing under normal circumstances. The number of signals is used to judge whether the anti-shake function of the first GPIO is normal. For example, when the time width threshold of the configured GPIO to activate the anti-shake function is 10us, the tester can generate 11 interference signals of 1us, 2us, . One GPIO. If the anti-shake function of the first GPIO is normal at this time, the interference signals with a time width of less than 10us should be filtered out, that is, the final received interference signal should only have two interference signals with a time width of 10us and 11us. , when the tester detects and finds that the number of interference signals finally received is two, it can prove that the anti-shake function of the first GPIO is normal; otherwise, it proves that the anti-shake function of the first GPIO is abnormal.

需要说明的是,芯片内部用于产生干扰信号的模块采用的是芯片内部频率最快的时钟,例如芯片内部最快的时钟为k,则时钟周期Tm=1/k,因此该模块可产生的最小的时间宽度的干扰信号的时间宽度就为Tm,然后再通过配置芯片内部的寄存器即可以产生N*Tm时间宽度的干扰信号,其中N的大小可以根据实际需求配置,由此来产生任意时间宽度的干扰信号,以此更加全面的验证芯片的GPIO的防抖功能是否正常。It should be noted that the module inside the chip used to generate the interference signal adopts the clock with the fastest frequency inside the chip. For example, the fastest clock inside the chip is k, then the clock period Tm=1/k, so the module can generate The time width of the interference signal with the smallest time width is Tm, and then the interference signal with the time width of N*Tm can be generated by configuring the internal registers of the chip, where the size of N can be configured according to the actual demand, thereby generating any time. Width of the interference signal, in order to more comprehensively verify whether the anti-shake function of the chip's GPIO is normal.

综上,本发明提供了一种GPIO防抖功能测试方法,先确定芯片的待检测的GPIO和辅助检测的GPIO,然后根据芯片自身内部的时钟,可以在芯片内部产生任意时间宽度的干扰信号,并将干扰信号通过辅助检测的GPIO发送至待检测的GPIO,再接收待检测的GPIO经过防抖处理后接受到的干扰信号,通过判断待检测GPIO经过防抖功能后接受到的全部干扰信号的数量是否等于第一预设数量来判断待检测的GPIO的防抖功能是否正常,可见通过这种方式不需要增加外接的信号发生器,同时也可以产生测试需要的任意时间长度的干扰信号。To sum up, the present invention provides a GPIO anti-shake function test method, which firstly determines the GPIO to be detected and the GPIO for auxiliary detection of the chip, and then according to the internal clock of the chip itself, an interference signal of any time width can be generated inside the chip, Send the interference signal to the GPIO to be detected through the auxiliary detection GPIO, and then receive the interference signal received by the to-be-detected GPIO after anti-shake processing, by judging the total interference signal received by the to-be-detected GPIO after the anti-shake function. Whether the number is equal to the first preset number is used to determine whether the anti-shake function of the GPIO to be detected is normal. It can be seen that this method does not need to add an external signal generator, and can also generate interference signals of any length of time required for the test.

在上述实施例的基础上:On the basis of the above-mentioned embodiment:

作为一种优选的实施例,生成M个干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数,包括:As a preferred embodiment, M interference signals are generated and sent to the first GPIO through the second GPIO, where M is an integer not less than 1, including:

生成M个时间宽度各不相同的干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数。Generate M interference signals with different time widths and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1.

本实施例中,考虑到实际使用情况中,测试人员可能需要多个不同时间宽度的干扰信号,因此本实施例中,产生的M个干扰信号可以为时间宽度各不同的M个干扰信号,以使得测试更具有通用性。In this embodiment, considering the actual use situation, the tester may need multiple interference signals with different time widths. Therefore, in this embodiment, the M interference signals generated may be M interference signals with different time widths, so as to Make the test more general.

作为一种优选的实施例,生成M个干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数,包括:As a preferred embodiment, M interference signals are generated and sent to the first GPIO through the second GPIO, where M is an integer not less than 1, including:

生成A个时间宽度小于第一时间宽度阈值的干扰信号和B个时间宽度不小于第一时间宽度阈值的干扰信号,A与B均为不小于0的整数;generating A interference signals with a time width less than the first time width threshold and B interference signals with a time width not less than the first time width threshold, where A and B are both integers not less than 0;

通过第二GPIO将A个时间宽度小于第一时间宽度阈值的干扰信号和B个时间宽度不小于第一时间宽度阈值的干扰信号发送至第一GPIO;A number of interference signals with a time width less than the first time width threshold and B interference signals with a time width not less than the first time width threshold are sent to the first GPIO through the second GPIO;

判断N个干扰信号的总数量是否等于第一预设值,包括:Determine whether the total number of N interference signals is equal to the first preset value, including:

判断N个干扰信号的总数量是否为B个,若是,判定第一GPIO的防抖功能正常,否则,判定第一GPIO的防抖功能不正常。It is determined whether the total number of N interference signals is B, and if so, it is determined that the anti-shake function of the first GPIO is normal; otherwise, it is determined that the anti-shake function of the first GPIO is abnormal.

本实施例中,考虑到GPIO启动防抖功能的时间宽度阈值可以由测试人员自行配置,所以本实施例中,测试人员也可以根据配置的第一时间阈值,来产生若干个时间宽度小于第一时间宽度阈值的干扰信号和若干个时间宽度不小于第一时间宽度阈值的干扰信号,最终判断经过第一GPIO防抖处理后接受到的干扰信号的数量是否等于产生的若干个时间宽度不小于第一时间宽度阈值的干扰信号的数量即可判断第一GPIO的防抖功能是否正常,提高了方案的可行性。In this embodiment, considering that the time width threshold for enabling the anti-shake function of the GPIO can be configured by the tester, in this embodiment, the tester can also generate several time widths smaller than the first time threshold according to the configured first time threshold. The interference signal with the time width threshold and several interference signals with the time width not less than the first time width threshold, and finally determine whether the number of interference signals received after the first GPIO anti-shake processing is equal to the number of generated time widths not less than the first time width. Whether the anti-shake function of the first GPIO is normal can be judged by the number of interference signals with a time width threshold, which improves the feasibility of the solution.

作为一种优选的实施例,判断N个干扰信号的总数量是否等于第一预设值,包括:As a preferred embodiment, judging whether the total number of N interference signals is equal to the first preset value includes:

对N个干扰信号进行边沿检测,得到N个干扰信号中一共存在J次电平跳变;Perform edge detection on N interference signals, and obtain a total of J level transitions in the N interference signals;

判断J/2是否等于第一预设值;若是,判定第一GPIO的防抖功能正常,否则,判定第一GPIO的防抖功能不正常。It is determined whether J/2 is equal to the first preset value; if so, it is determined that the anti-shake function of the first GPIO is normal, otherwise, it is determined that the anti-shake function of the first GPIO is abnormal.

本实施例中,芯片是通过对接收到的干扰信号进行边沿检测来判断接收到的干扰信号的数量,具体的,不同时间宽度的干扰信号都具有上升沿和下降沿,即一个干扰信号应该对应两次边沿跳变,通过检测接收到的所有干扰信号中的边沿跳变的总数将边沿跳变的总数除以二,得到的应该就为接收到的干扰信号的数量,以这种方式来判断干扰信号的数量是否等于第一预设值,实现方式简单。In this embodiment, the chip determines the number of received interference signals by performing edge detection on the received interference signals. Specifically, interference signals of different time widths have rising edges and falling edges, that is, an interference signal should correspond to Two edge transitions, by detecting the total number of edge transitions in all received interference signals and dividing the total number of edge transitions by two, the result should be the number of received interference signals. Judge in this way Whether the number of interference signals is equal to the first preset value is implemented in a simple manner.

作为一种优选的实施例,判定第一GPIO的防抖功能不正常之后,还包括:As a preferred embodiment, after determining that the anti-shake function of the first GPIO is abnormal, the method further includes:

记录第一GPIO的防抖功能不正常并保存。Record that the anti-shake function of the first GPIO is abnormal and save it.

本实施例中,考虑到当GPIO的防抖功能出现问题时,用户可能会有后续查看故障GPIO的需求,因此本方案在判定第一GPIO的防抖功能不正常后,还会进行记录,以便用户后续的故障排查。In this embodiment, considering that when there is a problem with the anti-shake function of the GPIO, the user may need to check the faulty GPIO later. Therefore, in this solution, after it is determined that the anti-shake function of the first GPIO is abnormal, it will also record, so as to User follow-up troubleshooting.

作为一种优选的实施例,判定第一GPIO的防抖功能正常或判定第一GPIO的防抖功能不正常之后,还包括:As a preferred embodiment, after determining that the anti-shake function of the first GPIO is normal or determining that the anti-shake function of the first GPIO is abnormal, the method further includes:

生成M个干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数;Generate M interference signals and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

通过第二GPIO接收经过第二GPIO防抖处理后的I个干扰信号,I为不小于0的整数,I不大于M;Receive I interference signals after the second GPIO anti-shake processing through the second GPIO, where I is an integer not less than 0, and I is not greater than M;

判断I个干扰信号的总数量是否等于第二预设值;Determine whether the total number of 1 interference signals is equal to the second preset value;

若是,判定第二GPIO的防抖功能正常,否则,判定第二GPIO的防抖功能不正常。If so, it is determined that the anti-shake function of the second GPIO is normal; otherwise, it is determined that the anti-shake function of the second GPIO is abnormal.

本实施例中,考虑到GPIO的防抖功能只体现在GPIO接收数据的过程,因此GPIO的防抖功能是否正常并不影响GPIO的发送数据功能,因此本方案在判断完第一GPIO的防抖功能是否正常后,还会将第一GPIO与第二GPIO的功能互换,即由第一GPIO发送干扰信号至第二GPIO,以此来完成对第二GPIO的防抖功能的测试,通过这种方法,可以实现两两GPIO互相测试,增加了测试的效率。In this embodiment, considering that the anti-shake function of GPIO is only reflected in the process of GPIO receiving data, whether the anti-shake function of GPIO is normal does not affect the function of sending data of GPIO. Therefore, in this solution, after judging the anti-shake function of the first GPIO After the function is normal, the functions of the first GPIO and the second GPIO will be exchanged, that is, the first GPIO sends an interference signal to the second GPIO, so as to complete the test of the anti-shake function of the second GPIO. This method can realize the mutual testing of two GPIOs, which increases the testing efficiency.

作为一种优选的实施例,判定第二GPIO的防抖功能不正常之后,还包括:As a preferred embodiment, after determining that the anti-shake function of the second GPIO is abnormal, the method further includes:

记录第二GPIO的防抖功能不正常并保存。Record that the anti-shake function of the second GPIO is abnormal and save it.

本实施例中,考虑到当GPIO的防抖功能出现问题时,用户可能会有后续查看故障GPIO的需求,因此本方案在判定第二GPIO的防抖功能不正常后,还会进行记录,以便用户后续的故障排查。In this embodiment, considering that when there is a problem with the anti-shake function of the GPIO, the user may need to check the faulty GPIO later. Therefore, in this solution, after it is determined that the anti-shake function of the second GPIO is abnormal, it will also record, so that the User follow-up troubleshooting.

本发明还提供了一种GPIO防抖功能测试系统,请参照图2,图2为本发明提供的一种GPIO防抖功能测试系统的结构示意图,包括:The present invention also provides a GPIO anti-shake function test system, please refer to FIG. 2, FIG. 2 is a schematic structural diagram of a GPIO anti-shake function test system provided by the present invention, including:

GPIO确定单元21,用于确定待检测的第一GPIO和协助检测的第二GPIO;GPIO determination unit 21, for determining the first GPIO to be detected and the second GPIO to assist in the detection;

干扰信号产生单元22,用于产生M个干扰信号并通过第二GPIO将M个干扰信号发送至第一GPIO,M为不小于1的整数;The interference signal generating unit 22 is used to generate M interference signals and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1;

干扰信号接收单元23,用于通过第一GPIO接收经过第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;The interference signal receiving unit 23 is configured to receive N interference signals after the anti-shake processing of the first GPIO through the first GPIO, where N is an integer not less than 0, and N is not greater than M;

防抖功能判断单元24,用于判断N个干扰信号的总数量是否等于第一预设值,若是,判定第一GPIO的防抖功能正常,否则,判定第一GPIO的防抖功能不正常。The anti-shake function judging unit 24 is configured to determine whether the total number of N interference signals is equal to the first preset value, if so, determine that the anti-shake function of the first GPIO is normal, otherwise, determine that the anti-shake function of the first GPIO is abnormal.

对于本发明提供的一种GPIO防抖功能测试系统的介绍请参照上述方法实施例,本发明在此不再赘述。For the introduction of a GPIO anti-shake function test system provided by the present invention, please refer to the above method embodiments, which will not be repeated in the present invention.

本发明还提供了一种GPIO防抖功能测试装置,请参照图3,图3为本发明提供的一种GPIO防抖功能测试装置的结构示意图,包括:The present invention also provides a GPIO anti-shake function test device, please refer to FIG. 3, FIG. 3 is a schematic structural diagram of a GPIO anti-shake function test device provided by the present invention, including:

存储器31,用于存储计算机程序;memory 31 for storing computer programs;

处理器32,用于执行计算机程序以实现上述GPIO防抖功能测试方法的步骤。The processor 32 is configured to execute a computer program to implement the steps of the above-mentioned GPIO anti-shake function testing method.

对于本发明提供的一种GPIO防抖功能测试装置的介绍请参照上述方法实施例,本发明在此不再赘述。For the introduction of a GPIO anti-shake function testing device provided by the present invention, please refer to the above method embodiments, which will not be repeated in the present invention.

本发明还提供了一种芯片,包括如上述的GPIO防抖功能测试装置,请参照图4,图4为本发明提供的一种芯片的结构示意图。The present invention also provides a chip, including the above-mentioned GPIO anti-shake function testing device, please refer to FIG. 4 , which is a schematic structural diagram of a chip provided by the present invention.

芯片中的各GPIO口除了与芯片其余模块连接外,还均与本发明提供的GPIO防抖功能测试装置连接,GPIO防抖功能测试装置可以产生不同时间长度的干扰信号通过协助检测的GPIO发送给待检测的GPIO,并接受待检测的GPIO经过防抖处理后的干扰信号,以此完成GPIO防抖功能的测试。In addition to being connected to other modules of the chip, each GPIO port in the chip is also connected to the GPIO anti-shake function test device provided by the present invention. The GPIO anti-shake function test device can generate interference signals of different time lengths and send them to the GPIO that assists the detection. The GPIO to be detected, and the interference signal after the anti-shake processing of the GPIO to be detected is accepted, so as to complete the test of the anti-shake function of the GPIO.

对于本发明提供的一种芯片的其他介绍请参照上述方法实施例,本发明在此不再赘述。For other introductions of a chip provided by the present invention, please refer to the above method embodiments, which will not be repeated in the present invention.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种GPIO防抖功能测试方法,其特征在于,应用于芯片,所述GPIO防抖功能测试方法包括:1. a GPIO anti-shake function test method, is characterized in that, is applied to chip, and described GPIO anti-shake function test method comprises: 确定所述芯片的待检测的第一GPIO和协助检测的第二GPIO;Determine the first GPIO to be detected and the second GPIO to assist in the detection of the chip; 基于所述芯片的内部时钟生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数;Generate M interference signals based on the internal clock of the chip and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1; 通过所述第一GPIO接收经过所述第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;Receive N interference signals after the anti-shake processing of the first GPIO through the first GPIO, where N is an integer not less than 0, and N is not greater than M; 判断N个所述干扰信号的总数量是否等于第一预设值;judging whether the total number of the N interference signals is equal to a first preset value; 若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。If so, it is determined that the anti-shake function of the first GPIO is normal; otherwise, it is determined that the anti-shake function of the first GPIO is abnormal. 2.如权利要求1所述的GPIO防抖功能测试方法,其特征在于,生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数,包括:2. GPIO anti-shake function testing method as claimed in claim 1, is characterized in that, generates M interference signals and sends M described interference signals to described first GPIO through described second GPIO, and M is not. Integer less than 1, including: 生成M个时间宽度各不相同的干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数。M interference signals with different time widths are generated, and the M interference signals are sent to the first GPIO through the second GPIO, where M is an integer not less than 1. 3.如权利要求1所述的GPIO防抖功能测试方法,其特征在于,生成M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数,包括:3. GPIO anti-shake function test method as claimed in claim 1, is characterized in that, generates M interference signals and sends M described interference signals to described first GPIO through described second GPIO, and M is not. Integer less than 1, including: 生成A个时间宽度小于第一时间宽度阈值的干扰信号和B个时间宽度不小于所述第一时间宽度阈值的干扰信号,A与B均为不小于0的整数;generating A interference signals with a time width less than the first time width threshold and B interference signals with a time width not less than the first time width threshold, where A and B are both integers not less than 0; 通过所述第二GPIO将A个所述时间宽度小于所述第一时间宽度阈值的干扰信号和B个所述时间宽度不小于所述第一时间宽度阈值的干扰信号发送至所述第一GPIO;A number of interference signals with the time width less than the first time width threshold and B interference signals with the time width not less than the first time width threshold are sent to the first GPIO through the second GPIO ; 判断N个所述干扰信号的总数量是否等于第一预设值,包括:Determining whether the total number of the N interference signals is equal to the first preset value includes: 判断N个所述干扰信号的总数量是否为B个,若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。It is determined whether the total number of the N interference signals is B, and if so, it is determined that the anti-shake function of the first GPIO is normal; otherwise, it is determined that the anti-shake function of the first GPIO is abnormal. 4.如权利要求1所述的GPIO防抖功能测试方法,其特征在于,判断N个所述干扰信号的总数量是否等于第一预设值,包括:4. GPIO anti-shake function testing method as claimed in claim 1, is characterized in that, judging whether the total quantity of N described interference signals is equal to the first preset value, comprising: 对N个所述干扰信号进行边沿检测,得到N个所述干扰信号中一共存在J次电平跳变;Perform edge detection on the N interference signals, and obtain a total of J level transitions in the N interference signals; 判断J/2是否等于第一预设值;若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。Determine whether J/2 is equal to the first preset value; if yes, determine that the anti-shake function of the first GPIO is normal, otherwise, determine that the anti-shake function of the first GPIO is abnormal. 5.如权利要求1所述的GPIO防抖功能测试方法,其特征在于,判定所述第一GPIO的防抖功能不正常之后,还包括:5. GPIO anti-shake function testing method as claimed in claim 1, is characterized in that, after judging that the anti-shake function of described first GPIO is abnormal, also comprises: 记录所述第一GPIO的防抖功能不正常并保存。Record that the anti-shake function of the first GPIO is abnormal and save it. 6.如权利要求1至5任一项所述的GPIO防抖功能测试方法,其特征在于,判定所述第一GPIO的防抖功能正常或判定所述第一GPIO的防抖功能不正常之后,还包括:6. The GPIO anti-shake function test method according to any one of claims 1 to 5, wherein after determining that the anti-shake function of the first GPIO is normal or determining that the anti-shake function of the first GPIO is abnormal ,Also includes: 生成M个干扰信号并通过所述第一GPIO将M个所述干扰信号发送至所述第二GPIO,M为不小于1的整数;generating M interference signals and sending the M interference signals to the second GPIO through the first GPIO, where M is an integer not less than 1; 通过所述第二GPIO接收经过所述第二GPIO防抖处理后的I个干扰信号,I为不小于0的整数,I不大于M;Receive, through the second GPIO, one interference signal after the anti-shake processing of the second GPIO, where I is an integer not less than 0, and I is not greater than M; 判断I个所述干扰信号的总数量是否等于第二预设值;Judging whether the total number of 1 described interference signals is equal to the second preset value; 若是,判定所述第二GPIO的防抖功能正常,否则,判定所述第二GPIO的防抖功能不正常。If so, it is determined that the anti-shake function of the second GPIO is normal; otherwise, it is determined that the anti-shake function of the second GPIO is abnormal. 7.如权利要求6所述的GPIO防抖功能测试方法,其特征在于,判定所述第二GPIO的防抖功能不正常之后,还包括:7. GPIO anti-shake function testing method as claimed in claim 6, is characterized in that, after judging that the anti-shake function of described second GPIO is abnormal, also comprises: 记录所述第二GPIO的防抖功能不正常并保存。Record that the anti-shake function of the second GPIO is abnormal and save it. 8.一种GPIO防抖功能测试系统,其特征在于,包括:8. A GPIO anti-shake function test system, characterized in that, comprising: GPIO确定单元,用于确定待检测的第一GPIO和协助检测的第二GPIO;a GPIO determination unit, configured to determine the first GPIO to be detected and the second GPIO to assist in the detection; 干扰信号产生单元,用于基于所述芯片的内部时钟产生M个干扰信号并通过所述第二GPIO将M个所述干扰信号发送至所述第一GPIO,M为不小于1的整数;an interference signal generating unit, configured to generate M interference signals based on the internal clock of the chip and send the M interference signals to the first GPIO through the second GPIO, where M is an integer not less than 1; 干扰信号接收单元,用于通过所述第一GPIO接收经过所述第一GPIO防抖处理后的N个干扰信号,N为不小于0的整数,N不大于M;an interference signal receiving unit, configured to receive, through the first GPIO, N interference signals after the anti-shake processing of the first GPIO, where N is an integer not less than 0, and N is not greater than M; 防抖功能判断单元,用于判断N个所述干扰信号的总数量是否等于第一预设值,若是,判定所述第一GPIO的防抖功能正常,否则,判定所述第一GPIO的防抖功能不正常。An anti-shake function determination unit, configured to determine whether the total number of the N interference signals is equal to a first preset value, and if so, determine that the anti-shake function of the first GPIO is normal, otherwise, determine that the anti-shake function of the first GPIO is The shaking function is abnormal. 9.一种GPIO防抖功能测试装置,其特征在于,包括:9. A GPIO anti-shake function test device, characterized in that, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序以实现如权利要求1至7任一项所述GPIO防抖功能测试方法的步骤。The processor is configured to execute the computer program to implement the steps of the GPIO anti-shake function test method according to any one of claims 1 to 7. 10.一种芯片,其特征在于,包括如权利要求9所述的GPIO防抖功能测试装置。10 . A chip, characterized in that it comprises the GPIO anti-shake function testing device according to claim 9 . 11 .
CN202210164709.XA 2022-02-23 2022-02-23 GPIO anti-shake function test method, system, device and chip Active CN114238005B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210164709.XA CN114238005B (en) 2022-02-23 2022-02-23 GPIO anti-shake function test method, system, device and chip
PCT/CN2022/135692 WO2023160099A1 (en) 2022-02-23 2022-11-30 Gpio anti-shake function test method, system and apparatus and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210164709.XA CN114238005B (en) 2022-02-23 2022-02-23 GPIO anti-shake function test method, system, device and chip

Publications (2)

Publication Number Publication Date
CN114238005A CN114238005A (en) 2022-03-25
CN114238005B true CN114238005B (en) 2022-05-24

Family

ID=80747806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210164709.XA Active CN114238005B (en) 2022-02-23 2022-02-23 GPIO anti-shake function test method, system, device and chip

Country Status (2)

Country Link
CN (1) CN114238005B (en)
WO (1) WO2023160099A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114238005B (en) * 2022-02-23 2022-05-24 苏州浪潮智能科技有限公司 GPIO anti-shake function test method, system, device and chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729988A (en) * 2019-09-25 2020-01-24 中山大学 Circuit, output device, detection system and method for outputting clock jitter signal
CN111952994A (en) * 2020-08-12 2020-11-17 珠海泰为电子有限公司 Microprocessor chip and application method thereof
CN113157501A (en) * 2021-02-26 2021-07-23 西安微电子技术研究所 Micro-system module AC parameter testing method based on ATE tester

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103308843A (en) * 2012-03-09 2013-09-18 鸿富锦精密工业(深圳)有限公司 Chip with receiver test function and circuit board with receiver test function
TWI515550B (en) * 2014-08-27 2016-01-01 緯創資通股份有限公司 Chip device and electronic system thereof
US10248585B2 (en) * 2016-06-14 2019-04-02 Oracle International Corporation System and method for filtering field programmable gate array input/output
CN210347850U (en) * 2019-05-21 2020-04-17 中国电子技术标准化研究院 Ultrahigh frequency passive chip performance test system and loss measurement device thereof
US10554237B1 (en) * 2019-06-21 2020-02-04 Motorola Solutions, Inc. Apparatus and method for accessory detection in a portable communication device
CN112286750A (en) * 2020-10-29 2021-01-29 山东云海国创云计算装备产业创新中心有限公司 GPIO (general purpose input/output) verification method and device, electronic equipment and medium
CN114238005B (en) * 2022-02-23 2022-05-24 苏州浪潮智能科技有限公司 GPIO anti-shake function test method, system, device and chip

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729988A (en) * 2019-09-25 2020-01-24 中山大学 Circuit, output device, detection system and method for outputting clock jitter signal
CN111952994A (en) * 2020-08-12 2020-11-17 珠海泰为电子有限公司 Microprocessor chip and application method thereof
CN113157501A (en) * 2021-02-26 2021-07-23 西安微电子技术研究所 Micro-system module AC parameter testing method based on ATE tester

Also Published As

Publication number Publication date
CN114238005A (en) 2022-03-25
WO2023160099A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
CN109074814B (en) Noise detection method and terminal equipment
CN110647486B (en) PCIe link training method, end equipment and communication system
WO2021056393A1 (en) Test method, electronic device and computer-readable storage medium
CN114238005B (en) GPIO anti-shake function test method, system, device and chip
CN109739700B (en) Interface testing method and device
CN112115047B (en) Delay testing method and system for hard real-time operating system
CN111176918A (en) A server testing method, system, device and computer-readable storage medium
CN112286750A (en) GPIO (general purpose input/output) verification method and device, electronic equipment and medium
CN109408309B (en) Multi-terminal testing method and device
CN113495225B (en) Power supply stability test method, system and equipment
US10884448B1 (en) Clock glitch detection circuit
CN109150682B (en) A kind of interference source detection method and device
WO2021164156A1 (en) Battery fault detection method, battery fault detection system and computer product
US20120054391A1 (en) Apparatus and method for testing smnp cards
CN114548027A (en) Method for tracking signal in verification system, electronic device and storage medium
CN111505531B (en) Board card test system
CN110263417B (en) A method, device and electronic equipment for obtaining timing characteristics
CN118733389A (en) Application program function monitoring method, device, equipment, storage medium and product
CN111861858A (en) A method, device and related equipment for starting image compression function verification
CN113407408B (en) Data transmission rule verification method, device, equipment and storage medium
CN116302736A (en) A server component testing method, device, electronic equipment and storage medium
WO2018183324A1 (en) Single circuit fault detection
CN112463477A (en) Server interface signal measuring method and device and electronic equipment
CN109597787B (en) SIO UART configuration method, system, device and readable storage medium
CN110275808A (en) A detection system, method and server for adapter card ID conflict

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant