毕业论文外文翻译-数字式转速测量仪.doc
《毕业论文外文翻译-数字式转速测量仪.doc》由会员分享,可在线阅读,更多相关《毕业论文外文翻译-数字式转速测量仪.doc(14页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、附件1:外文资料翻译译文数字式转速测量仪摘要 介绍了一种以MCS-51系列单片机8032为控制主体的数字式转速测量仪。该测量仪具有设计合理、精度高、测速范围宽、功能强、可靠性好、使用灵活方便等特点。文中详细介绍了该仪表的工作原理,给出了它的硬件原理图和软件流程图。关键词:数字式测量仪器;转速;单片机转动体的速度是工业测控系统中的重要参数之一。机械式转速表在测量转速时,必须将转轴接触被测物体,以获得同步转速,通过内部齿轮变速后用表头指针指示转速大小。使用机械式转速表会干扰被测物体的运动,特别是当被测转动体质量很小时,测速表对转动体施加的压力就是一个不小的附加负载,这影响测量的准确性。本文介绍一种
2、以8032单片微机为核心的测速仪。1 转速测量仪原理本测速仪的测速敏感器件采用红外线传感器,由专门的探测装置发射红外线,同时接受从被测物体反射回来的红外线,通过光电转换变为电脉冲信号,不影响物体的转动。发射管和接受管都固定在探测架上,通过透镜聚焦,半透明膜既能使反射的红外光线射向转动物体,又能使由转动物体反射回来的红外线通过半透明膜射向接受管。在转动体上沿圆周均匀贴上若干反射纸,它能定向反射红外线,使接受管接受到反射回来的红外线。光电转换原理见图1。在光电三极管3DU5C上加一适当偏压,当3DU5C受红外线照射时,处于导通状态,A点为低压电平,3DG6截止,B点为高电平;当没有红外线照射时,光
3、电三极管截止,A点呈现高电平,使3DG6集电极B点为低电平,B点的脉冲信号经过反相器1、2的整形,再经门3反相,便得到频率与转速大小相应成比例变化的转速脉冲信号。转速脉冲信号送入8032单片机的定时/计数器,经过单片机的软件处理计算出转速。图1 光电转换原理图本机在测量转速时采用了M/T法和定时法两种方法。M/T法是在检测时间Tc内,根据转速脉冲m1和计时脉冲m2来计算转速。如在固定周期Tc内,计取转动脉冲fp和计时脉冲fc的脉冲个数分别为m1和m2,计时脉冲的频率为f,转动体每转输出的脉冲数为p,则转速n=60fm1/pm2(r/min)。定时法是在给定的时间间隔1 s内,对转速脉冲进行计数
4、。如在1 s内测得的转速脉冲数为m1,转动体每转输出的脉冲个数,即极数为p,则转速n=60m1/p(r/min)。2 转速测量仪的硬件结构图2为由8032单片机构成的转速测量仪电路图。8032属于MCS-51系列单片机,与常用的8031芯片相比,8032多了一个功能较强的T2定时/计数器和128字节内部RAM,其中T2计数器具有16位自动重载和捕获能力,既可作定时/计数用,又可作为波特率发生器用。本系统T2用于定时,即计取定时脉冲信号,定时脉冲信号直接从8032芯片的地址锁存信号端ALE引出,并经过74LS74双D触发器两分频后获得。当晶振采用6 MHz时,定时脉冲的频率fc为0.5 MHz。
5、T0计数器计取转速脉冲fp,T1计数器用于计取定时脉冲fc,触发器DFF1,DFF2和与门1,2,3,4组成计数控制电路,能使T0和T1计数器同时启停。系统采用动态显示方式。P0口通过带允许控制端的8D锁存器74LS377扩展了一个8位输出口,作为5位LED数码管显示的段选码数据线。P1.3-P1.75根口线作为五位LED显示的位选线。P3.0、P3.1接S1和S4开关,S1为极数P设定选择开关,S4为极数输入脉冲键。P3.2和P3.3分别接S2和S3开关,S2开关为测速方法选择键,选择用M/T法测速,还是用定时法测速。S3为转速/频率选择开关,用来选择测转速还是测频率。当用定时法测转速时,系
6、统可以很方便地测出所测频率。3 软件设计及抗干扰措施系统的程序设计主要包括主程序、中断程序、代码转换子程序、显示子程序等。两种测速方法硬件结构完全相同,只是软件流程不同,通过P3.2口来设定测速方法。下面分别论述两种测速方法的工作原理。M/T法中,首先由8032的P1.1端输出启动脉冲信号,该启动脉冲清零DFF1和DFF2两个触发器,使Q1端输出低电平,封锁门2、3、4,Q-1端为高电平打开门1,而触发器DFF2的Q-2端输出为高电平,为启动工作做好准备。当接受到转速脉冲信号fp的上升沿时,触发器DFF1翻转,Q-1为低电平,封锁门1,Q1为高电平,打开门2、3、4,从而使T2开始定时,m1,
7、m2同时开始计数。当T2定时到100 ms时,向8032申请中断。在中断程序中,8032的P1.2端输出停止脉冲信号,置位触发器DFF2,Q-2端输出低电平,封锁门2、3、4,T0、T1同时停止计数。同时在中断程序中读出转速信号脉冲数m1和定时信号脉冲数m2,在主程序中根据m1、m2,P和f算出转速n=60fm1/pm2,并转换为BCD码,查表送至数码管显示,完成一次数据的采集和显示。在定时法中,由于要产生1 s的定时信号,而本系统中定时最大值为131 ms,故在定时法中,采取连续定时10次100 ms的方法,当到了100 ms定时时,定时器T2溢出向8032申请中断。在中断程序中对中断次数进
8、行累计,如果累计中断次数未到10次,则不作任何运算就返回,T2继续下一次的100ms的定时,T0继续计数转速脉冲,当中断次数达到10次时,在中断程序中,置位P1.2,停止计数,并且读出T0的计数值m1,在主程序中进行相应运算算出转速,并转换为BCD码,送LED显示。这里定时计数器采用了具有16位自动重装载功能的T2计数器,当T2溢出产生中断的同时,计数器自动重载计数初值,继续定时。因此它的定时是连续的,不受响应中断和处理中断程序的影响。而如果采用没有重载功能的定时器如T0或T1,则当定时器溢出时,须在响应中断后,在中断程序中重置定时器初值。定时器的定时是断续的,影响定时精度,继而影响测速精度。
9、可见采用8032中的T2计数器定时是本系统一个特点,它能显著提高测速精度。本测速仪在0-49r/min范围内,精度可达0.1 r/min,在50-99 999r/min范围内,精度可达1 r/min。本测速仪可以测量不同极数的脉冲发生器发生的脉冲,如前述的红外线探测器,当改变贴在转动体上反射纸的数量时,转动体每转发出的脉冲数p也相应改变,此时如果仍按照程序中原定的p值进行计算,就会运算出错。因此本系统提供了现场设置极数的功能:P3.0口接极数设定选择开关,当P3.0高电平时,表明需要设置极数,此时系统等待由P3.1口输进的脉冲信号,每一个脉冲信号可使系统的极数寄存器数值加1,并显示在LED数码
10、管上。在定时法测速时,当不进行n=60m1/p的运算,直接将1 s内的转速脉冲数m1变换为BCD码显示,所得的数值显然就是输入脉冲信号的频率。因此系统设置了转速/频率选择功能。P3.3口接转速/频率选择开关S3,当P3.3为高电平时,表示测频率。同时,系统软件还设置了一些逻辑错误诊断功能,如当转速超过99 999 r/min,系统将显示PPPPP,表示超出本测速仪所测范围,又如当在M/T法测速时,选择了测频率,则显示EEEEE,提示用户出错等。由于测速仪一般都在工业生产现场工作,工作环境干扰来源多,因此在设计中,采用了抗干扰措施,如电源滤波、去耦、注意地线的走向,接地点的安排等硬件抗干扰办法,
11、以CPU、RAM自检、软件冗余、软件陷阱等软件抗干扰技术。图2 数字式转速测量仪电路图参考文献1 Yurish S.Y., Kirianaki N.V. Design of High Performances Digital Tachometers and Tachometric Systems Based on the Method of the Depended Count, In Proceedings of the VII-th International Conference CADSM 2003, Lviv-Slavsko, UKRAINE, 18-22 February, 200
12、32Kirianaki N.V., Deynega V.P., Yurish S.Y., Microprocessor Tachometers of New Generation for Turbogenerators of Thermal and Nuclear Electric Power Stations, Automatic, Measurements and Control, 1995, No. 292, pp. 52-60.3Yurish S.Y., Kirianaki N.V., Shpak N.O., Novel Rotation Speed Measurement Conce
13、pt for ABS Appropriated for Microsystem Creation. In: Advanced Microsystems for Automotive Applications 99 (Ed. by Ricken D.E. and Gesner W., Springer, 1999, pp.215-223.附件2:外文原文(复印件)Digital Meter for Measuring Rotational SpeedAbstract A digital meter for measuring the rotational speed is introduced
14、in this paper. It is controlled by an MCS-51 series single-chip microcomputer 8032. It contains the following features: rational design, high accuracy, wide measurability range and powerful function and dependability. Moreover, it is very nimble and convenient to use. The work principle is presented
15、 in detail in the paper and the block diagram and program flowchart are given as well.Key works: digital measuring apparatus; rotation speed; single-chip micro-computerThe rotor speed control system of industry is one of the important parameters. Mechanical tachometer measuring speed, the rotor cont
16、act with the measured object must be to get the synchronous speed, through the internal gear shift instruction after the pointer speed with the size of the header. Use of mechanical tachometer measured object can interfere with movement, especially when measured rotor mass is very small, speed table
17、s on the rotor pressure is not a small additional load, which affects the measurement accuracy. This paper describes a 8032 single-chip microcomputer as the core to the non-contact Digital Tachometer. 1 speed measuring principle The gun speed-sensitive devices with infrared sensors, launched by the
18、specialized infrared detection devices, while receiving reflected back from the measured object infrared, photoelectric conversion into electrical pulses through the signal, does not affect the rotation of the object. Tubes and pipes are fixed in the detection of acceptable shelf, through the lens f
19、ocus, semi-transparent film not only to the reflected infrared light fired rotating objects, they can rotate the object by the reflected infrared light through the translucent membrane back fired for management. Along the circumference of a rotating body even paste some reflection paper, it directed
20、 reflection infrared to receive the reflected acceptance of the infrared control. Photovoltaic conversion shown in Figure In the optical triode 3DU5C adding an appropriate bias, when 3DU5C by infrared irradiation, at the conduction state, A point for the low level, 3DG6 end, B point is high; when no
21、 infrared radiation, the photoelectric transistor closed A high point presentation, so 3DG6 low collector point B, B point of the pulse signal through the inverter 1,2 plastic, and then the door 3 RP, frequency and speed will be proportional to the size of the corresponding changes The speed pulse s
22、ignal. Speed pulse signal into the 8032 microcontroller timer / counter, through the microcontroller to calculate speed software processing. Figure 1 Schematic photoelectric conversionWhen the machine used in the measurement speed M / T method and timing method were used. M/T M / T method is the det
23、ection time Tc, the time according to speed pulse m1 and m2 to calculate the speed pulse. If a fixed period Tc, the total time taken and pulse rotation pulse fp fcs Pulse on m1 and m2, timing pulse frequency f, rotor output pulses per revolution for the p, the speed n = 60fm1 / pm2 (r / min). Such a
24、s the speed measured over 1 s pulses for the m1, rotor output pulse number per revolution, that great number of p, the speed n = 60m1 / p (r / min). 2 hardware speed measurement instrument Figure 2 constitute the grounds of speed 8032 MCU measuring circuit. 8032 is MCS-51 series single chip, compare
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 毕业论文 外文 翻译 数字式 转速 测量仪
限制150内