CN102998560B - 一种高速adc接口与gpio接口相互测试的方法 - Google Patents

一种高速adc接口与gpio接口相互测试的方法 Download PDF

Info

Publication number
CN102998560B
CN102998560B CN201210479357.3A CN201210479357A CN102998560B CN 102998560 B CN102998560 B CN 102998560B CN 201210479357 A CN201210479357 A CN 201210479357A CN 102998560 B CN102998560 B CN 102998560B
Authority
CN
China
Prior art keywords
data
clock
adc
interface
gpio
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
CN201210479357.3A
Other languages
English (en)
Other versions
CN102998560A (zh
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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201210479357.3A priority Critical patent/CN102998560B/zh
Publication of CN102998560A publication Critical patent/CN102998560A/zh
Application granted granted Critical
Publication of CN102998560B publication Critical patent/CN102998560B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

一种高速ADC接口与GPIO接口相互测试的方法,在SOC上,选择8个GPIO口模拟数据线,1个GPIO口模拟时钟线,通过GPIO口不断循环的送出0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80这8组数据,给HS-ADC的clkin同时灌clk,在每个时钟的上升沿采集数据。时钟的频率只要不超过HS-ADC的最高采样频率就可以。按要求采样了N个字节的数据之后,把数据跟理论上的数据进行对比,看是否一样来判断该SOC的HS-ADC的功能模块是否正常。本发明减小了测试成本,并增加了测试的可行性。

Description

一种高速ADC接口与GPIO接口相互测试的方法
【技术领域】
本发明涉及一种高速ADC接口与GPIO接口相互测试的方法。
【背景技术】
高速ADC接口(HS-ADC)在实际应用中是用来采集高速ADC(模数转换器)转换完的数字数据,在SOC(系统级芯片)功能测试领域,为了验证该模块的功能是否完好,对于不包含高速ADC模块的SOC,如果外接高速ADC芯片对该模块的功能进行测试,不仅大大增加了测试的成本,而且相关人员还需要花费较多的时间跟精力去调试外接的高速ADC转换芯片,从很大程度上增加了测试的难度。
有鉴于此,本发明人针对现有技术的缺陷深入研究,并有本案产生。
【发明内容】
本发明所要解决的技术问题在于提供一种高速ADC接口与GPIO接口相互测试的方法,该方法减小了测试成本,并增加了测试的可行性。
本发明采用以下技术方案解决上述技术问题:
一种高速ADC接口与GPIO接口相互测试的方法,包括:在SOC上,选择8个GPIO口模拟数据线,1个GPIO口模拟时钟线,第一个时钟的数据为0x01,第二个时钟的数据为0x02,第三个时钟的数据为0x04,第四个时钟的数据为0x08,第五个时钟的数据为0x10,第六个时钟的数据为0x20,第七个时钟的数据为0x40,第八个时钟的数据为0x80,通过GPIO口不断循环的送出0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80这8组数据,给SOC的HS-ADC的clkin同时灌clk,在每个时钟的上升沿采集数据;时钟的频率不超过HS-ADC的最高采样频率,按要求采样了N个字节的数据之后,把数据跟理论上的数据进行对比,来判断该SOC的HS-ADC的功能模块是否正常。
本发明的优点在于:通过GPIO口不断循环的送出0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80这8组数据,给HS-ADC的clkin同时灌clk,在每个时钟的上升沿采集数据。时钟的频率只要不超过HS-ADC的最高采样频率就可以。按要求采样了N个字节的数据之后,把数据跟理论上的数据进行对比,看是否一样来判断该SOC的HS-ADC的功能模块是否正常。本发明减小了测试成本,并增加了测试的可行性。
【附图说明】
下面参照附图结合实施例对本发明作进一步的描述。
图1是本发明的时序图。
【具体实施方式】
在SOC上,通常包含几组的GPIO,可以从中挑选几个GPIO口模拟高速ADC转换完的数据跟时钟,让HS-ADC接口进行采集。HS-ADC接口因为可以采集8bit/10bit的数据,所以包括10根的数据线跟一根时钟线。由于接口通常使用在8bit的数据采集情况下,所以本发明以8bit数据的采集为例进行测试方法的详细说明。
在测试过程中,选择8个GPIO口模拟数据线,1个GPIO口模拟时钟线。时钟:低电平跟高电平交替变换;数据:每个时钟内,只有一个数据位为高电平(即“1”),第一个时钟的数据为0x01,第二个时钟的数据为0x02,第三个时钟的数据为0x04,第四个时钟的数据为0x08,第五个时钟的数据为0x10,第六个时钟的数据为0x20,第七个时钟的数据为0x40,第八个时钟的数据为0x80,然后又从头开始,即0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x01,0x02,0x04...循环下去。给出这样的数据可以保证每个数据线对于“0”跟“1”电平采集的正确性,并且可以测试相邻两根数据线是否有短路的情况。
具体的时序图如图1所示,通过GPIO口不断循环的送出0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80这8组数据,给HS-ADC的clkin同时灌clk,在每个时钟的上升沿采集数据。时钟的频率只要不超过HS-ADC的最高采样频率就可以。按要求采样了N个字节的数据之后,把数据跟理论上的数据进行对比,看是否一样来判断该SOC的HS-ADC的功能模块是否正常。
该发明减小了测试成本,并增加了测试的可行性。
以上所述仅为本发明的较佳实施用例而已,并非用于限定本发明的保护范图。凡在本发明的精神和原则之内,所作的任何修改、等同替换以及改进等,均应包含在本发明的保护范围之内。

Claims (1)

1.一种高速ADC接口与GPIO接口相互测试的方法,其特征在于:
包括:在SOC上,选择8个GPIO口模拟数据线,1个GPIO口模拟时钟线,第一个时钟的数据为0x01,第二个时钟的数据为0x02,第三个时钟的数据为0x04,第四个时钟的数据为0x08,第五个时钟的数据为0x10,第六个时钟的数据为0x20,第七个时钟的数据为0x40,第八个时钟的数据为0x80,通过GPIO口不断循环的送出0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80这8组数据,给SOC的HS-ADC的clkin同时灌clk,在每个时钟的上升沿采集数据;时钟的频率不超过HS-ADC的最高采样频率,按要求采样了N个字节的数据之后,把数据跟理论上的数据进行对比,来判断该SOC的HS-ADC的功能模块是否正常。
CN201210479357.3A 2012-11-22 2012-11-22 一种高速adc接口与gpio接口相互测试的方法 Active CN102998560B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210479357.3A CN102998560B (zh) 2012-11-22 2012-11-22 一种高速adc接口与gpio接口相互测试的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210479357.3A CN102998560B (zh) 2012-11-22 2012-11-22 一种高速adc接口与gpio接口相互测试的方法

Publications (2)

Publication Number Publication Date
CN102998560A CN102998560A (zh) 2013-03-27
CN102998560B true CN102998560B (zh) 2015-01-21

Family

ID=47927381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210479357.3A Active CN102998560B (zh) 2012-11-22 2012-11-22 一种高速adc接口与gpio接口相互测试的方法

Country Status (1)

Country Link
CN (1) CN102998560B (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2810070Y (zh) * 2005-07-27 2006-08-23 海信集团有限公司 Scart接口的三电平自动检测电路
US20060261990A1 (en) * 2005-05-17 2006-11-23 Oki Electric Industry Co., Ltd. Circuit and method for testing analog-digital converter
CN201733219U (zh) * 2010-06-28 2011-02-02 西安理工大学 基于dsp的数字化磁控溅射电源控制系统
CN102103534A (zh) * 2010-12-06 2011-06-22 福州瑞芯微电子有限公司 一种soc的功能测试系统
CN102338947A (zh) * 2010-07-20 2012-02-01 乐金显示有限公司 液晶显示器及其驱动方法
CN102346234A (zh) * 2011-06-30 2012-02-08 福州瑞芯微电子有限公司 一种i2s接口的功能测试方法
CN102355264A (zh) * 2011-07-22 2012-02-15 中电普瑞科技有限公司 一种用于便携式电能监测装置的模数转换电路
CN102739252A (zh) * 2011-04-12 2012-10-17 美信集成产品公司 用于时间交织模数转换器的后台校准的系统和方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10163651A1 (de) * 2001-12-21 2003-07-03 Philips Intellectual Property Schaltungsanordnung zum Testen eines Analog-Digital-Umsetzers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060261990A1 (en) * 2005-05-17 2006-11-23 Oki Electric Industry Co., Ltd. Circuit and method for testing analog-digital converter
CN2810070Y (zh) * 2005-07-27 2006-08-23 海信集团有限公司 Scart接口的三电平自动检测电路
CN201733219U (zh) * 2010-06-28 2011-02-02 西安理工大学 基于dsp的数字化磁控溅射电源控制系统
CN102338947A (zh) * 2010-07-20 2012-02-01 乐金显示有限公司 液晶显示器及其驱动方法
CN102103534A (zh) * 2010-12-06 2011-06-22 福州瑞芯微电子有限公司 一种soc的功能测试系统
CN102739252A (zh) * 2011-04-12 2012-10-17 美信集成产品公司 用于时间交织模数转换器的后台校准的系统和方法
CN102346234A (zh) * 2011-06-30 2012-02-08 福州瑞芯微电子有限公司 一种i2s接口的功能测试方法
CN102355264A (zh) * 2011-07-22 2012-02-15 中电普瑞科技有限公司 一种用于便携式电能监测装置的模数转换电路

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于通用可编程IO口的摄像头总线接口设计与实现;蓝贤桂等;《电子质量》;20120531(第05期);第26-28页 *
数据采集接口ADC_USB IP核的设计和验证;凌波等;《北京联合大学学报》;20110630;第25卷(第02期);第12页第2段和图3 *

Also Published As

Publication number Publication date
CN102998560A (zh) 2013-03-27

Similar Documents

Publication Publication Date Title
CN104865457B (zh) 一种通用检测板卡
CN204884160U (zh) 一种电表数据采集器检测系统
CN102508151B (zh) 集成电路通用输入/输出参数自动测试装置及方法
CN109100579B (zh) 一种三相不平衡监测装置的高速数据采集系统及方法
CN102590733B (zh) 一种基于边界扫描机制的电路系统机内测试装置
CN202218068U (zh) 一种用于智能变电站检测的合并单元仿真器
CN201611379U (zh) 一种集成电路系统测试装置
CN203241515U (zh) 一种基于pc的逻辑分析仪
CN203786219U (zh) 一种多功能自动化测试系统
CN205004841U (zh) 智能变电设备及其数据传输系统
CN102998560B (zh) 一种高速adc接口与gpio接口相互测试的方法
CN101710168B (zh) 一种视频SoC芯片的系统级测试方法及其装置
CN103235279A (zh) 一种电子互感器输出校验装置
CN102438106A (zh) 一种视频采集系统
CN104581147B (zh) 一种hdmi和mipi功能互测的方法与装置
CN205721785U (zh) 一种多路信号多通道输出装置
CN201898511U (zh) 155Mb/s-300Mb/s光模块专用误码测试仪
CN102355264B (zh) 一种用于便携式电能监测装置的模数转换电路
CN104461960A (zh) 矩阵型遥测帧挑路遥测帧数据的处理方法
CN203178465U (zh) 电子互感器输出校验装置
CN204008993U (zh) 一种小型化非原理性复用自动测试装置
CN203276525U (zh) 便于近距离数据传输嵌入式测试系统
CN107748730B (zh) 一种基于PXIe总线的费控卡表交互故障分析系统
CN214539891U (zh) 一种印制电路板智能自动测试系统
CN202748479U (zh) 支持IPv6协议的地震数据采集装置

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee before: Fuzhou Rockchip Semiconductor Co., Ltd.

CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder