5自动化专业 单片机 外文文献 英文文献 外文翻译中英对照_第1页
5自动化专业 单片机 外文文献 英文文献 外文翻译中英对照_第2页
5自动化专业 单片机 外文文献 英文文献 外文翻译中英对照_第3页
5自动化专业 单片机 外文文献 英文文献 外文翻译中英对照_第4页
5自动化专业 单片机 外文文献 英文文献 外文翻译中英对照_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、dormancy of the one-chip computer-restore to the throne in the operation way and improve anti- interference ability abstract: introduce a kind of dormancy of using- restore to the throne in theoperation way and improve the anti-interference ability method of the one-chip computer;analyse its scope o

2、f application, provide and use the circuit concretly; combine the instance, analyse the characteristic of the hardware and software design under these kind of operation way. keyword: one-chip computer restore to the throne /dormancy anti-interference forewordintroduction: with the development at ful

3、l speed of the microelectric technique, the performance of the one-chip computer improves rapidly, demonstrate the outstanding advantage in the operation, logic control, intelligent respect, replaced and enlarged the measuring that the circuit made up, control circuit by digital logical circuit, ope

4、ration originally to a great extent, use very extensivly. but because it have system halted, procedure run critical defect of flying etc, make it limit in a lot of important application of occasion. a lot of technology in anti-interference , for example set up the software trap, add thehardware to g

5、uard the gate in dogs circuit etc, can make this problem havebetter settlement, but still the existing problem: guard the gate dog at the movement, mean and appear mistake already and run some time, this is not allowed in some occasions; procedure appear circulation mistake very much sometimes, but

6、just guard the gate dog control link include and enter, adopt and guard the gate as to such a mistake dog unable to discern; in measure and control cycle among the long system, one-chip computer spend wait for the peripheral hardware a large amount of time, will be interfered too when carry out and

7、wait for the order. to these situations, we have tried the method restored to the throne voluntarily in practice, alternate pulse of adopting etc or restore to the throne waking according to external terms to the one-chip computer up. after being restored to the throne each time, the one-chip comput

8、er carries out the corresponding procedure, enters dormancy in time after finishing carrying out the task, wait to be restored to the throne nextly. have solved above-mentioned problems well with this method , and has got better result in the agricultural voltage transformer comprehensive protector

9、experiment. now take 51 serial one-chip computers as an example and probe into the concrete principle and implementation method, restored to the throne the signal as the high level.1.a principle and implementation method1.1 restored to the throne the law regularly unconditionallyuse timer, special-p

10、urpose clock chip or other pulse generator, produce signal of restoring to the throne regularly according to interval that set for. this kind of method is especially suitable for the measuring instrument. in not running actually, sample the analog quantity of introduction with a/d converter often, t

11、hen store showing. this course is very fast, but steady for reading, the data per second are only upgraded 1 -2 times, a large amount of time of cpu is used for waiting. let cpu carry out and enter dormancy directly after the task , restore to the throne and wake by external world up it carry out th

12、e next operation, this is to restore to the throne the law regularly in this way can make anti-interference ability strengthen greatly , have 2 points mainly: . at the dormancy, procedure stop run, can appear pc indicator disorderly procedure that causes run and fly. work time in dormancy proportion

13、 1:9, that is to say 1 s have 0.1 time of s used for measuring, sending off showing, there is time dormancy of 0.9s, the probability that the procedure is interfered is 1/10 while running at full speed, whole anti-interference ability raise by 10 times. because every 1s is restored to the throne onc

14、e unconditionally, once present the system halted during a job, can certainly resume when restored to the throne next time. as to only instrument that show, some reading mistake that 1s appear accidentally there is no memory to the next measurement, be could bear , belong to “pass” mistake. this kin

15、d is restored to the throne the advantage of dogs circuit for guarding the gate regularly, first, change waiting time into a dormancy state, time to shorten and may be interfered; second, avoided happenning that the dog controls the death circulation of the link to include guarding the gate.1.2 the

16、external condition is restored to the throne the lawsome arrival that export or measure is controlled by the outside. for instance, the hot form. of heating, rotate the pulse produced and calculate heat by hot water water wheels, there is no hot water to flow, there is no heat to export, cpu only ne

17、ed in fact keep number value, do not need to count. can imagine hot water water wheels rotate when parking warm , cpu idle in will it be will it be one season autumn spring and summer, if let dormancy its , measure have water wheels pulse constantly, anti-interference ability can strengthen greatly.

18、 so, so long as link up the restoring to the throne of the pulse of the water wheels and cpu, the water wheels rotate a circle each time, cpu is restored to the throne once, hot form. can work normally , this is restored to the throne the law by the external condition . similar application have half

19、 electron kilowatt-hour meter , go on one count just when the machinery degree wheels and transfers to a circle, users do not need the electricity, cpu has been knowing the dormancy all the time . the restoring to the throne in the interval not to be regular, but confirmed according to the external

20、condition of this method. in some occasions, the time of the dormancy will be very long, very effective to improving anti-interference ability.2 .the hardware realizes the main point2.1 restored to the throne regularly unconditionallygenerally have 2 kinds of methods. use theitimer or the special-pu

21、rpose clock chip to be restored to the throne. fig1, in order to use the timing circuit that 555 circuit makes up; can use the clock chips of x1126 ,etc too , wake cpu up with the alarm signal after setting up warning time. this kind of method is suitable when the long interval is made, can also fol

22、low the result of this operation ,determine to wake time up in alarm next time temporarily, very flexible and convenient. the signal of using the system to be inherent is as reducing the pulse regularly. use 50hz worker power make reducing after having a facelift frequently, already omit the timer,

23、gathered the corresponding signal for the phase place which measured the electric current signal at the same time, as fig. 2 shows.2.2 external conditions are restored to the throne send external condition pulse to and is restored to the throne the end son after having a facelift. to that above-ment

24、ioned water wheels or the ammeter spend a pulse produced, can use schmitts trigger to have a facelift; for writing down the instrument of the biggest or minimum,can use the window comparator. in order to realize the electronization that is regulated,can use the electronic electric potential device,

25、establish upper and lower limits with the order of the one-chip computer.2.3 reduce cycle and restored to the throne the high electricity at ordinary timesin fig3, restored to the throne the signal during high level tr, the one-chip computer is in the state of restoring to the throne, the procedure

26、does not run, anti-interference ability is the strongest; after the high level, the one-chip computer begins to hold the conduct procedure. that is to say, are restored to the throne and suitable for the time that the procedure carries out during the low level td of the signal, this time should be g

27、reater than the execution cycle of the procedure each time. it is restore to the throne cycle and restore to the throne high level of signal take empty than very much important to choose rationally. as to simple to show instrument, restore to the throne cycle determine data break cycle, low electric

28、ity is it measure, hancl over all time shown to greater than to want at ordinary times; otherwise, cant present forever the mistake of the intact executive program.monolithic integrated circuit in ts and tr period all can effectively the antijamming, but is best the unnecessary time arrangement in t

29、r. when the program time is long, when as far as possible the request reduces tr, may join the differentiating circuit, like chart 1 center c30, r26, d9.2.4 treatment of output end sons(1) restore to the throne straight pulseduring all i/o mouth of one-chip computer turn into the high level when res

30、toring to the throne. that is to say output for low pin normally, will according to restore to the throne cycle appear the width for the straight pulse of tr. this straight pulse will influence the normal output, 2 methods are dealt with: connect in parallel electric capacity suppress , capacity con

31、firm according to tr time that restore to the throne on the son in end. reducing tr can be reduced and connected the electric capacity in parallel. it is invalid to design the peripheral circuit into the high level. (2) fault-tolerantchoose the capacity that the output end connects the electric capa

32、city in parallel fault-tolerantly and properly, can realize fault-tolerant control. reduced cycle in a certain, because interfered exporting the wrong level. because the keeping function of electric capacity, cant still enable exporting the change to the valid level within this cycle; next cycle , t

33、he mistake is corrected. so, so long as does not make mistakes in 2 cycles in succession, it is very fault-tolerant to export certainly, this kind of method will make the normal output change lag behind for one cycle, just really reflect the output end son.2.5 has the electricity to measure and rest

34、ore to the throne manuallysome system is it make some initialize and operate to want at electricity for the first time. restored to the throne and already become the beginning condition of normal running each time while adopting the way of restoring to the throne to run , it is unable to distinguish

35、 and have the electricity for the first time. in some pin connects the electric capacity of one ljif to the ground, measure this pin after being restored to the throne, if low level to have electricity for the first time. give system set up one restore to the throne button, that is to say a common o

36、ne manual to restore to the throne, this button is not joined and being restored to the throne in the end, is connected in parallel in the electric capacity both ends to the ground of above-mentioned pins.3. the software realizes the main point3.1 is it resume with zero clearing ram to outputrestore

37、 to the throne the last all pin turn high level into , is it should take place unnecessary change for low pin to make regularly, so, should resume the state.of all pins immediately after being restored to the throne. there are 2 kinds of methods : analyse and judge immediately after being restored t

38、o the throne this time, provide the state of the pin according to the need; in being ram it is the last last state that come down,these rams when restored.to the throne regularly can the zero clearing one; but electricity or manual to rstore to the throne when pushing in conformity with zero clearin

39、g, is it embody to want when the software is worked outing at the beginning. if calculate time allows, try ones best to take method 1. restore to the throne cycle probability made mistakes to calculate very little, according to 2 for the 2nd time in succession. 4 output end son that narrate connect

40、treatment method of electric capacity in parallel, can reach kind anti-interference result very.3.2 realizes crossing over and is restored to the throne alternate time sequenceregularly to controlwork in way of restoring to the throne now, start anew and carry out the same procedure repeatedly each

41、time. can be divided into 2 kinds of situations: as to simple to show instrument, carry on measurement ,send off showing after being restored to the throne each time, have causality between restoring to the throne twice . need is it switch over to the dormancy to waiting original only. should pay at

42、tention to, measurement, give total time used to show is it is it restore to the throne low electricity at ordinary times to smaller than to want, otherwise cant present forever the mistake of the intact executive program. for having application that time sequence controlled , after being restored t

43、o the throne each time , should check first that see the sign left last cycle , in order to determine what is done this cycle . that is to say every is it restore to the throne operation of cycle to stride , by is it transmit to indicate all, these indicate while leaving in inside ram , the zero cle

44、aring only when have the electricity for the first time. for example, the protecting synthetically device of above-mentioned voltage transformer , is restored to the throne regularly according to the interval of 20ms. it reaches the normal working state through, certain movement order after having t

45、he electricity, such as fig. 4; write a part of the procedure of the software according to this movement, such as fig. 5.in 4 fig, act as person who protect the beginning at the electricity, is it transmit power 0 to try at first. 5s, points out and transmits power soon; transmit power formally afte

46、r waiting for 30s. it is start-up time in 1s after transmitting power, does not measure the electric current. start after finishing, if all going well, the location is put normal sign , person who protect restore to the throne cycle enter normal running in the next one. try 0 that transmits power. 5

47、s is it is it realize to count once restoring to the throne to delay time, restore to the throne time 20ms each time. at having electricity for the first time, make all zero clearing to inside ram, make it is it time ts to transmit power not to try =dormancy after 25. after restoring to the throne,

48、is it have electric pin to have electricity for the first time already, is it is it is it is it time the measuring of ts to transmit power to try to get to go on to measure next time. if ts * 0, is it in is it prolong period to transmit power, is it enter dormancy after the 1 to reduce ts to prove.

49、act as ts-1 = 0, the course which waited for 30s that should enter and lose electrical power. just when ts decreases progressively to 0, make it is it indicate to wait for not to lose electrical power td =1500. when the procedure is restored to the throne beginning again, measure to ts =0 but td * 0

50、, is it is it is it transmit power to try to cross already to indicate, at is it wait for the course of 30s to lose electrical power now. in this way, the whole process is transmitted each other by such these parameters as tr, td , ts etc, go on step by step.result:conclusion anti-interference is an

51、 important problem in an electronic design, especially important in the one-chip computer. this is because the one-chip computer has procedures to run particularity that flies, the consequence that it is interfered may be the system halted, may send out various kinds of mistakes or illegal movements

52、 before the system halted too, make the whole system produce the mortality mistake. so, only guarantee it is not enough yet for one-chip computer not to crash, study how to reduce the risk interfered, it can befault-toierant how is it after and make mistakes. this text is it act as some exploration

53、from two these to try hard, hope these elementary opinions can play some function of casting a brick to attract jade, helpful to everybody; hope too every colleague explore together, improve our design level together.单片机休眠-复位运行方式提高抗干扰能力摘要:介绍一种用休眠-复位运行方式提高单片机抗干扰能力的方法;分析其适用范围,给出具体应用电路;结合实例,分析这种运行方式下硬件

54、和软件设计的特点。 关键词:单片机 复位/休眠 抗干扰 引 言随着微电子技术的飞速发展,单片机的性能迅速提高,在运算、逻辑控制、智能化方面显示出非凡的优势,在很大程度上取代了原来由数字逻辑电路、运算放大电路组成的检测、控制电路,应用非常广泛。但由于它存在着死机、程序跑飞等致命缺陷,使它在许多重要场合的应用受到限制。在抗干扰方面的许多技术,比如设软件陷阱、加硬件看门狗电路等,可使这一问题有较好的解决,但仍然存在问题: 看门狗动作时,意味着已经出现了错误,且运行了一段时间,这在有些场合是不允许的; 有时程序出现死循环错误,但是刚好把看门狗控制环节包含进去,对于这样的错误采用看门狗无法识别; 在检测

55、控制周期比较长的系统中,单片机花大量时间等待外设,执行等待命令时同样会受到干扰。针对这些情况,我们在实践中尝试了主动复位的办法,采用等间隔的脉冲或根据外部条件对单片机进行复位唤醒。每次复位后,单片机执行相应的程序,执行完任务后及时进入休眠,等待下次复位。用此方法较好地解决了上述问题,并在农用变压器综合保护器实验中得到了较好的效果。下面以51系列单片机为例探讨具体原理与实现方法,复位信号为高电平。1 原理与实现方法1.1 无条件定时复位法用定时器、专用时钟芯片或其它脉冲产生器,按照设定的间隔定时产生复位信号。这种方法特别适合监测仪表。在实际运行中,往往是用a/d转换器采样输入的模拟量,然后进行存

56、储显示。这一过程很快,但为了读数稳定,每秒数据更新不过12次,cpu的大量时间用于等待。如果让cpu执行完任务后直接进入休眠,然后由外界复位唤醒它去执行下一次操作,这就是定时复位法。这样会使抗干扰能力大大增强,主要有2点: 休眠时,程序停止运行,不会出现pc指针紊乱引起的程序跑飞。如果工作与休眠的时间比例为1:9,也就是说,1s内有0.1s的时间用来检测、送显示,有0.9s的时间休眠,程序受干扰的概率是全速运行时的1/10,整体抗干扰能力提高了10倍。 由于每1s无条件复位1次,一旦某次工作期间出现死机,在下次复位时肯定得以恢复。对于只是显示的仪表,某1s偶然出现的读数错误对下一次测量并没有记

57、忆,是可以承受的,属“一过性”错误。这种定时复位相对于看门狗电路的优点,一是把等待时间改为休眠状态 ,缩短可能受干扰的时间;二是避免了恰好包含看门狗控制环节的死循环。1.2 外部条件复位法有些输出或测量的启动是由外部控制的。如暖气热表,靠热水水轮旋转产生的脉冲计算热量,没有热水流动,就没有热量输出,cpu只要保持原来数值即可,不需要计数。可以想象,停暖时热水水轮不转,cpu在春夏秋三季则无事可做;如果让其休眠,而不是时刻检测有无水轮脉冲,抗干扰能力会大大增强。因此,只要把水轮脉冲与cpu的复位联系起来,水轮每旋转1周,cpu复位1次,热表就可以正常工作了,这就是外部条件复位法。类似的应用还有半

58、电子式电度表,当机械度盘旋转1周时才进行1个计数,用户不用电,cpu会一直休眠。这种方法的复位间隔不是固定的,而是根据外部条件确定的。在有些场合,休眠的时间会很长,对提高抗干扰能力非常有效。2 硬件实现要点2.1 无条件定时复位 一般有2种方法。 使用定时器或专用时钟芯片复位。图1为使用555电路组成的定时电路;也可以使用x1126之类的时钟芯片,设置报警时间后用报警信号唤醒cpu。这种方法适用于长间隔定时,还可以根据本次运算的结果,临时决定下一次的报警唤醒时间,非常灵活方便。 使用系统固有的信号作为定时复位脉冲。例如使用50hz工频电源整形后作复位,既省略了定时器,同时又为检测电流信号的相位采集了相应的信号,如图2所示。2.2 外部条件复位把外部条件脉冲整形后送到复位端子。对于上述水轮或电表度盘产生的脉冲,可以使用施密特触发器整形;对于记录最大或最小值的仪器,可使用窗口比较器。为了实现调节的电子

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论