用户名: 密码: 验证码:
基于USB的并行多通道频率测试仪的设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
由于在电子测量中频率信号抗干扰能力强,测量精度高,因而测频仪在实际应用中越来越广泛。针对大型系统中多通道、并行、大范围、动态频率信号的测量,提出了基于USB的并行多通道频率测试仪的设计,该测试仪主要由下面几部分组成:含USB接口的CPU模块、核心计数模块、信号调理模块、键盘和显示模块、以及配套的软件等。
     论文首先介绍了对频率测量方法的研究,随后介绍频率测试仪硬件设计的实现,并分章详细说明了CPU固件程序的开发,以及FPGA核心测量模块的设计,最后经过软硬件的联合调试验证了频率测试仪的可行性。
     作者主要工作有如下几个方面:
     1.结合经典频率测量方法——电子计数器测频法和电子计数器测周法的优点,给出了一种实现并行、多通道频率信号的测试方法——频率综合测量法。它具有测试范围宽、占用硬件中断资源少、通道容易扩充等优点,可满足过渡过程宽幅变化的频率信号的测试。
     2.在综合测量方法的基础上,提出了基于USB总线技术的并行多通道频率测试仪的设计方案。此测试仪可实现程控和本地测试控制两种控制方式。具有很强的实用性。
     3.本文进一步给出了基于USB总线技术的并行多通道频率测试仪的具体的硬件设计,包捂CPU板的硬件实现、键盘和显示模块电路原理、信号调理电路的设计等,使测试仪变的更加智能、小巧。
     4.应用FPGA的设计,可缩短开发时间,提高集成度。设计中应用EDA技术,以Verilog HDL为设计语言,以FPGA为载体,应用频率综合测量方法原理,完成核心测量模块的设计,并给出仿真验证波形图,实现了大范围、动态频率信号的连续测量。
     5.在Keil uVision2开发环境下利用C语言编写USB控制器的固件程序,控制硬件实现并完成了两种不同工作模式的设定,通过联合调试验证了测试仪可适应不同场合、不同频率范围下的测频。
Since frequency signal has advantages of strong anti-interference capability, high accuracy in electronic measurement, frequency tester is widely used. Due to large system with multi-channel, parallel, large-scale dynamic frequency signals measurement, it presents a design based on USB to parallel multi-channel frequency tester. The tester is mainly composed of several parts: CPU module with USB interface, counting module, signal conditioning modules, keyboard and display module, and its supporting software.
     Firstly, the paper presents the method of researching frequency measurement; secondly, it introduces the frequency tester hardware circuit design, CPU firmware development in details by sub-chapter and FPGA core measurement module design, finally, debugging is induced through combining hardware with software and experiment indicates frequency tester design is correct.
     The paper is mainly studying in serval aspects as followings:
     1. Considering the working principle of classical frequency measurement and frequency test cycle method's merits, it introduces frequency measurement method which can achieve parallel, multi-channel signals measurement. It has great advantages of wide range measurement, less occupation of hardware interrupted resources, easy to expand channels. It can meet transition process of frequency signals broad width change in the testing process.
     2. Based on the synthetic measurement methods, it presents a design based on USB parallel multi-channel frequency tester. The tester can realize programmable control instrument debugging and off-line control. The plant is strongly practical.
     3. This paper further proposes the parallel, multi-channel frequency tester's specific hardware design based on USB bus technology, including the CPU board hardware, the keyboard and display module circuit theory, signal conditioning circuit design. It makes frequency tester more intelligent and small.
     4. FPGA is used to shorten development time and improve integration. Using EDA technology, Verilog HDL as design language, FPGA as a carrier, frequency integrated application of principles of measurement methods; it realizes the core measuring module design and gives simulation waveform. It realizes larges range, dynamic frequency signal continuous measurement.
     5. USB controller's firmware program adopts C language under Keil uVision2 development environment. Controller design achieves two different working mode's setting, it's tested in different working conditions and different working frequency. The result proves the method is very effective.
引文
[1]蒋焕文,孙续,电子测量(第二版),北京:中国计量出版社,1988.5,188-196
    [2]陆渭林,数字化仪器程控接口技术,声学与电子工程,2004年第3期,38-42
    [3]许永和,EZ-USB FX系列单片机USB外围设备设计与应用,北京:北京航空航天大学出版社 2002.11,64-74
    [4]宋吉超,基于USB2.0接口的虚拟仪器研究,西安电子科技大学硕士学位论文,2005
    [5]Cypress Semiconductor,EZ-USB Technical Reference Manual,Version 1.2.
    [6]孙华锦,基于VHDL语言的电子设计自动化及其应用,西北工业大学硕士学位论文,2001
    [7]颜荣江,余志强,张进等,EZ-USB 2100系列单片机原理、编程及应用,北京:北京航空航天大学出版社,2002.9,1-3
    [8]夏宇文,Verilog数字系统设计教程,北京:北京航空航天大学出版社,2003.7
    [9]黄智伟,王彦,陈琼等,FPGA系统设计与实现,北京:电子工业出版社,2005.1
    [10]董代洁,郭怀理,曹春雨,基于FPGA的可编程SOC设计,北京:北京航空航天大学出版社,2006.6
    [11]刘皖,何道君,谭明,FPGA设计与应用,北京:清华大学出版社 2006.6
    [12]钱锋,EZ-USB FX2单片机原理、编程及应用,北京:北京航空航天大学出版社,2006.3,23-25,250-252
    [13]Cypress Semiconductor Corporation,CY7C68013 EZ-USB(?)FX2~(TM)USB Microcontroller High-Speed USB Peripheral Controller,2002
    [14]廖日坤,CPLD/FPGA嵌入式应用开发技术白金手册,北京:中国电流出版社,2005.9,2-10
    [15]周立功,USB2.0与OTG规范及开发指南,北京:北京航空航天大学出版社,2004.9,23-28
    [16]嵇碧波,刘吉,基于FPGA数字频率计,电子测量技术2006年8月第29卷第4期,84-117
    [17]张杰,姚剑,叶林等,频率测量的新方法,工业仪表与自动化装置,2003年第1期,63-66
    [18]李雪梅,路而红,基于Verilog HDL双向端口的设计与实现,现代电子技术,2006年第14期总第229期,73-75
    [19]蔡本华,高文炜,EZ-USB FX2单片机CY7C68013的特性介绍,21IC中国电子网,2003 年11月
    [20]夏益民,王广君,基于USB总线的高速数据采集系统,国外电子元器件,2003年,10月,第10期,第20页
    [21]刘彤,周功业,倪浆铭,USB接口技术在外置式采样系统中的应用,今日电子,2000年第7期,18-20
    [22]荣蓉,吕强中,如何仿真单片机的外围设备,单片机与嵌入式系统应用,2003年6期,15-17
    [23]刘泽西,程晶晶,孔力,基于USB2.0接口的高速实时数据采集系统,测控技术,2007年第26卷第2期,34-37
    [24]吴振宇,常玉保,冯林,基于FPGA和USB2.0的高速数据采集系统,仪器仪表学报,2006年6月第27卷第6期,26-27
    [25]谢海鸿,李萍,林德彬,基于FPGA芯片的数字频率计设计,现代电子技术,2005年第18期总第209期,13-16
    [26]郭改枝,李树华,王志慧,基于单片机控制多功能频率计的CPLD实现,内蒙古大学学报(自然科学版),2004年1月第35卷第1期,83-86
    [27]赵雅兴,FPGA原理、设计与应用,天津,天津大学出版社,1999
    [28]徐爱钧,彭秀华,Keil Cx51 V7.0单片机高级语言编程与μVision2应用实践,北京-电子工业出版社 2005
    [29]余水宝,单片机在高精度测频中的应用,电子测量技术,1994年3期,25-29
    [30]王为青,程国钢,单片机Keil Cx51应用开发技术,北京-人民邮电出版社 200702
    [31]朱大奇,李念强,单片机原理·接口及应用,南京-南京大学出版社,2003.05
    [32]严宁宁,周杏鹏,杨东升,利用CPLD扩展仪器测频范围和提高测频精度的方法,仪器仪表用户,2002年第6期,47-48
    [33]艾树峰,基于PIC单片机的测频仪的设计与实现,电讯技术,2006年第4期,193-195
    [34]Wei Zhou,Zongqiang Xuan,Jianguo Yu。Some new developments of precision frequency measurement technioue,1995 IEEE international frequency control symposium,0-7803-2500-1/95,354-359。
    [35]刘永军,万频,谢云基,于FPGA的发电机组频率测量计的实现,微计算机信息,2007,23-3-2:200-221
    [36]张兆莉,蔡永泉,王钰,基于FPGA的数字频率计的设计与实现,自动化仪表,2006年11月第27卷第11期,10-17
    [37]毛智德,吕善伟,基于FPGA的等精度频率计设计,电子测量技术,2006年8月第29卷第4期,85-86
    [38]Cypress Semiconductor Corporation,CY3684_A_SCH
    [39]Cypress Semiconductor,EZ-USB Advanced Development Kit Users
    [40]Cypress Semiconductor,FX2LP USB to ATA Operating Instructions
    [41]金炯泰著,金奎焕,李允俊,任正权译,如何使用KEIL 8051 C编译器,北京-北京航空航天大学出版社 2002
    [42]陈汝全,USB2.0特性和USB单片机,单片机与嵌入式系统应用,www.21IC.com转载
    [43]萧世文,USB 2.0硬件设计,北京,清华大学出版社,2002
    [44]张念怀,江浩,USB总线接口开发指南,北京,国防工业出版社,2001
    [45]李颖,郑相启,刘金刚,USB设备与PC机之间的通信机制的实现技术研究,微电子学与计算机,2002年第8期,45-48
    [46]王宏,粟登馥,刘新国,基于CY7C68013的高速多路同步数据采集的实现,电子技术2004年第8期,48-51
    [47]戴红梅,胡仁杰,带USB(通用串行总线)接口的单片机EZ_USB,电测与仪表,2001年第3期25-28
    [48]Jan Axelson,USB大全,北京,中国电力出版社,2001
    [49]史波,田凯,通用串行总线USB技术概述,信息技术,2001年第4期,35-36
    [50]路永砷,基于USB接口的数据采集模块的设计与实现,自动化仪表第26卷第2期,2005年2月,35-37
    [51]贾好来,MCS-51单片机原理及应用,北京,机械工业出版社,200702

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700