版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 淮 阴 工 学 院毕业设计(论文)外文资料翻译系 (院):电子信息工程系专 业:测控技术与仪器姓 名:马 宇学 号:1061203228外文出处:download from ieee xplore of(用外文写)huaiyin institute of technology library附 件:1.外文资料翻译译文;2.外文原文。指导教师评语:所选内容与课题相关,对课题设计参考有一定的帮助;翻译难度一般,工作量适中;译文基本正确,语句通顺,但也存在部分错误。总体评价:中2010年4月20日签名: 注:请将该封面与附件装订成册。附件1:外文资料翻译译文数字式转速测量仪摘要 介绍了一种以mc
2、s-51系列单片机8032为控制主体的数字式转速测量仪。该测量仪具有设计合理、精度高、测速范围宽、功能强、可靠性好、使用灵活方便等特点。文中详细介绍了该仪表的工作原理,给出了它的硬件原理图和软件流程图。关键词:数字式测量仪器;转速;单片机转动体的速度是工业测控系统中的重要参数之一。机械式转速表在测量转速时,必须将转轴接触被测物体,以获得同步转速,通过内部齿轮变速后用表头指针指示转速大小。使用机械式转速表会干扰被测物体的运动,特别是当被测转动体质量很小时,测速表对转动体施加的压力就是一个不小的附加负载,这影响测量的准确性。本文介绍一种以8032单片微机为核心的测速仪。1 转速测量仪原理本测速仪的
3、测速敏感器件采用红外线传感器,由专门的探测装置发射红外线,同时接受从被测物体反射回来的红外线,通过光电转换变为电脉冲信号,不影响物体的转动。发射管和接受管都固定在探测架上,通过透镜聚焦,半透明膜既能使反射的红外光线射向转动物体,又能使由转动物体反射回来的红外线通过半透明膜射向接受管。在转动体上沿圆周均匀贴上若干反射纸,它能定向反射红外线,使接受管接受到反射回来的红外线。光电转换原理见图1。在光电三极管3du5c上加一适当偏压,当3du5c受红外线照射时,处于导通状态,a点为低压电平,3dg6截止,b点为高电平;当没有红外线照射时,光电三极管截止,a点呈现高电平,使3dg6集电极b点为低电平,b
4、点的脉冲信号经过反相器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内,对转速脉冲进行计数。如在1 s内测得的转速脉冲数为m1,转动体每转输出的脉冲个数
5、,即极数为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。t0计数器计取转速脉冲fp,t1计数器用于计取定时脉冲fc,触
6、发器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为转速/频率选择开关,用来选择测转速还是测频率。当用定时法测转速时,系统可以很方便地测出所测频率。3 软件设计及抗干扰措施系统的程序
7、设计主要包括主程序、中断程序、代码转换子程序、显示子程序等。两种测速方法硬件结构完全相同,只是软件流程不同,通过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,m2同时开始计数。当t2定时到100 ms时,向8032申请中
8、断。在中断程序中,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申请中断。在中断程序中对中断次数进行累计,如果累计中断次数未到10次,则不作任何运算就返回,t2
9、继续下一次的100ms的定时,t0继续计数转速脉冲,当中断次数达到10次时,在中断程序中,置位p1.2,停止计数,并且读出t0的计数值m1,在主程序中进行相应运算算出转速,并转换为bcd码,送led显示。这里定时计数器采用了具有16位自动重装载功能的t2计数器,当t2溢出产生中断的同时,计数器自动重载计数初值,继续定时。因此它的定时是连续的,不受响应中断和处理中断程序的影响。而如果采用没有重载功能的定时器如t0或t1,则当定时器溢出时,须在响应中断后,在中断程序中重置定时器初值。定时器的定时是断续的,影响定时精度,继而影响测速精度。可见采用8032中的t2计数器定时是本系统一个特点,它能显著提
10、高测速精度。本测速仪在0-49r/min范围内,精度可达±0.1 r/min,在50-99 999r/min范围内,精度可达±1 r/min。本测速仪可以测量不同极数的脉冲发生器发生的脉冲,如前述的红外线探测器,当改变贴在转动体上反射纸的数量时,转动体每转发出的脉冲数p也相应改变,此时如果仍按照程序中原定的p值进行计算,就会运算出错。因此本系统提供了现场设置极数的功能:p3.0口接极数设定选择开关,当p3.0高电平时,表明需要设置极数,此时系统等待由p3.1口输进的脉冲信号,每一个脉冲信号可使系统的极数寄存器数值加1,并显示在led数码管上。在定时法测速时,当不进行n=60
11、m1/p的运算,直接将1 s内的转速脉冲数m1变换为bcd码显示,所得的数值显然就是输入脉冲信号的频率。因此系统设置了转速/频率选择功能。p3.3口接转速/频率选择开关s3,当p3.3为高电平时,表示测频率。同时,系统软件还设置了一些逻辑错误诊断功能,如当转速超过99 999 r/min,系统将显示ppppp,表示超出本测速仪所测范围,又如当在m/t法测速时,选择了测频率,则显示eeeee,提示用户出错等。由于测速仪一般都在工业生产现场工作,工作环境干扰来源多,因此在设计中,采用了抗干扰措施,如电源滤波、去耦、注意地线的走向,接地点的安排等硬件抗干扰办法,以cpu、ram自检、软件冗余、软件陷
12、阱等软件抗干扰技术。图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, 20032 kirianaki n
13、.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.3 yurish s.y., kirianaki n.v., shpak n.o., novel rotation speed measurement concept for
14、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 in this
15、 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 in det
16、ail 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 contact wit
17、h 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 tables on th
18、e 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 special
19、ized 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 focus, s
20、emi-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 reflec
21、tion 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 infrar
22、ed 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 signal.
23、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 detection
24、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 fc's 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 as
25、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, compared
26、with the common 8031 chip, a feature more than 8032 strong t2 timer / counters and 128 bytes of internal ram, which t2 counter with 16-bit auto-reload and capture, can for timer / counter with, but also used as a baud rate generator. the system used for time t2, which take into account regular pulse
27、, regular pulse signal directly from the 8032 chip address latch signal ale client leads, and through the 74ls74 dual d flip-flop frequency, was two points. when using 6 mhz crystal oscillator, the time pulse frequency fc is 0.5 mhz. t0 accrual speed pulse counter fp, t1 time pulse counter for takin
28、g into account fc, trigger dff1, dff2 and 1,2,3,4 component count and gate control circuit, can also start and stop counters t0 and t1. p0 port to allow control through the end of 8d with latch 74ls377 extends an 8-bit output, as a five segment led digital display of the data line selection code. p3
29、.0, p3.1 access switches s1 and s4, s1 for the very few p set selector switch, s4 input pulse for the very few keys. p3.2 and p3.3 are connected s2 and s3 switch, s2 switch method for the speed selection key; select the use of m / t method speed, or velocity measurement with time. s3 for the speed f
30、requency select switch, to select the measuring speed or frequency measurements. when using regular method to measure the speed, the system can be easily measured by measuring the frequency. 3 software design and anti-interference measures system programming includes the main program, interrupt proc
31、edures, code conversion routines, display routines, etc. the hardware structure of two measurement methods are identical, but different software process, to set the speed through the p3.2 port approach. the following two measurement methods were discussed works. m / t method, first of all by the end
32、 of 8032 the p1.1 output start pulse signal, the start pulse cleared dff1 and dff2 two triggers, so that q1 ended output low, blocking the door 2,3,4, q- 1 side open the door for the high one, and trigger dff2 the q-2-ended output is high, ready for the start of work. when the speed pulse signal fp
33、receives the rising edge, the flip-flop dff1 turn, q-1 is low, blocking the door 1, q1 is high, open the door 2,3,4, so that start time t2, m1, m2 and started counting. in the interrupt program, the p1.2 8032 ended output pulse signal to stop, set bit trigger dff2, q-2 low-side outputs, blocking the
34、 door 2,3,4, t0, t1 and stop counting. interrupt the program while reading speed signal pulses and timing signal pulses m1 m2, in the main program, in accordance with m1, m2, p and f calculated speed n = 60fm1/pm2, and converted to bcd code sent to the digital look-up table display, complete a data
35、collection and display. in the regular method, due to the timing signal generated 1 s, while the maximum time the system 131 ms, it is the law in time to take 10 consecutive 100 ms time method, when the time to 100 ms, the timer t2 overflow interrupt to the 8032 application. interrupt in the interru
36、pt process of the cumulative number of times, if the cumulative number of times until they break 10, not to make any operation on the return, t2 to the next 100ms the time, t0 to count speed pulse, when the interrupt when the number reached 10 in interrupt the program, set bit p1.2, stop counting, a
37、nd reading the count value t0 m1, corresponding in the main program to calculate the speed of operation, and converted to bcd code, send led display. time here with 16-bit counter with auto-loading feature of the t2 counter, when t2 overflow interrupt the same time, the counter counts automatically
38、reload the initial value, continue to regularly. so it's time is continuous, without interruption and response procedures for dealing with the impact of disruption. if not overloaded by features such as timers t0 or t1, then when the timer overflow, it should be in response to failure, reset the
39、 timer interrupt program, the initial value. timer timing is intermittent, the impact of timing accuracy, thereby affecting measurement precision. visible by 8032 in the t2 counter timer is a feature of the system, it can significantly improve measurement precision. the guns range in 0-49r/min accur
40、acy up to ± 0.1 r / min, at 50-99 999r/min range of accuracy up to ± 1 r / min. the gun can measure the number of different pole pulse generator pulse occurs, such as infrared detectors above, when changing the rotating body attached to the amount of reflection paper, issued by the rotor p
41、er revolution pulse number p is also changed accordingly, at this point, if still in accordance with the procedures in the original p value calculation, calculation error will be. therefore, the system provides very few of the features set the scene: p3.0 i take very few set selector switch, when p3
42、.0 is high time that need to set the pole, then the system waiting for input into the mouth by the p3.1 pulse signal, each pulse makes the system very few register value plus 1, and displayed in the led digital tube. velocity measurement at the time, and when not to n = 60m1 / p the operators direct
43、ly to the speed of 1 s pulses m1 transformed into bcd code shows that the value obtained is obviously the input pulse frequency. therefore, the system set up speed frequency options. p3.3 port access speed frequency select switch s3, when p3.3 is high time that test frequency. meanwhile, the system software has set a number of logical fault diag
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 银行大楼干挂不锈钢施工合同
- 遐想网络纯净驱动版RevisionandwritingforModule5培训讲学
- 工业园区通信管网改造施工合同
- 旅游景区开发招投标廉政合同
- 2024版顾问咨询简单合同范本
- 医疗卫生彩钢房搭建协议
- 工业园区钻孔桩施工协议
- 2024样板房精装修工程承包合同范本6篇
- 2024版离婚协议书见证人
- 代理融资委托协议
- 35kV线路工程电杆组立工程施工组织方案
- QC成果提高钢结构焊缝一次合格率
- 森林报测试题
- 刑法涉及安全生产的16宗罪解读
- 铜精矿加工费简析
- 机电拆除专项施工方案
- 平键键槽的尺寸与公差
- 8S目视化管理实施计划表(放大)
- 分式混合运算专项练习158题(有答案)26页
- 牛津译林版四年级英语上册专项训练排序
- 毕业设计(论文)-多轴自动螺栓拧紧机的设计
评论
0/150
提交评论