节点文献
内螺纹检测系统及其USB接口电路研究
Research on Internal Thread Detection System and Its USB Interface Circuit
【作者】 赵震方;
【导师】 刘治华;
【作者基本信息】 郑州大学 , 机械制造及其自动化, 2011, 硕士
【摘要】 螺纹零件作为机械领域的常用件,其参数测量是机械制造工业中一项基础性测量技术,而其非接触测量是将机电技术、光测技术与计算机图像处理技术相结合的综合测量技术。本论文研究了应用于内螺纹测量的检测系统和USB接口电路,建立了内螺纹检测系统模型框架和数据采集软硬件系统。论文简要介绍了内螺纹检测系统的原理和结构,给出了整个系统的结构框图,建立了基于激光三角测量原理的光学分系统、用于轴向进给的精密机械位移平台分系统和数据采集传输分系统。根据非接触式内螺纹检测系统的高速化和微型化特性,设计了一套高速数据采集、存储、传输系统。采用CPLD产生的时序电路驱动光电传感器CCD输出信号,同时控制A/D采样和进行模数转换;随后,数字信号存入FIFO并与采用GPIF接口模式的USB相连,等待FIFO触发GPIF波形时将数据高速读入USB端点暂存,等候主机读取到内存缓存区进行进一步的存储显示。在硬件设计方面,论文提出了数据采集系统总体方案,给出了数据采集系统的工作原理。介绍了数据采集系统中用到的主要芯片CCD和USB,并对系统硬件电路中的主要模块、CPLD内部逻辑等内容进行了设计。在软件设计方面,论文分析了USB总线体系、通信协议和WDM驱动程序模型,建立了数据传输系统中USB固件程序框架,设计了系统固件程序、USB设备驱动程序和主机应用程序。完成了整个USB通信功能和界面显示等功能设计。
【Abstract】 The parameter measurement of threaded parts is a basic measurement technique in the machinery industry, and the non-contact measurement technology is a new measurement technology which combined with electromechanical, optical measurement and computer image processing technology. In this paper, the detection system of internal thread measurement and the USB interface circuit are researched, and then the detection system model framework and data acquisition hardware and software systems are established.The principle and structure of internal thread detection system are introduced, and the whole system diagram is given. The optical subsystem based on the principle of laser triangulation, precision machinery platform subsystem used in axial feed displacement and data acquisition and transmission subsystem are established.A system with high-speed data acquisition, storage and transmission is designed, according to the non-contact thread detection system features of high-speed and miniaturization. Sequential circuits generated by CPLD driver CCD output signal, while controlling the AD sampling and conversion, subsequently, the digital signal is got into the FIFO,which is connected with USB through GPIF moden when the GPIF waveform is triggered, the data is got into the high-speed USB endpoint buffer and waits for the host to read into memory buffer for further storage display;In hardware design, a general scheme of the data acquisition system is proposed and its work principle is given. The main chip CCD and USB using in the acquisition system are introduced, furthermore, the main modules of hardware circuit and the CPLD logic are designed.In software design, USB firmware framework is established with the analysis of the USB bus system, communication protocols and WDM driver model. The system of firmware, USB device drivers and host applications are designed. The entire USB communication design and interface display functions are completed.
【Key words】 internal thread detection; CCD driving circuit; CPLD; USB2.0;