5自動(dòng)化專業(yè) 單片機(jī) 外文文獻(xiàn) 英文文獻(xiàn) 外文翻譯中英對(duì)照_第1頁(yè)
5自動(dòng)化專業(yè) 單片機(jī) 外文文獻(xiàn) 英文文獻(xiàn) 外文翻譯中英對(duì)照_第2頁(yè)
5自動(dòng)化專業(yè) 單片機(jī) 外文文獻(xiàn) 英文文獻(xiàn) 外文翻譯中英對(duì)照_第3頁(yè)
5自動(dòng)化專業(yè) 單片機(jī) 外文文獻(xiàn) 英文文獻(xiàn) 外文翻譯中英對(duì)照_第4頁(yè)
5自動(dòng)化專業(yè) 單片機(jī) 外文文獻(xiàn) 英文文獻(xiàn) 外文翻譯中英對(duì)照_第5頁(yè)
已閱讀5頁(yè),還剩10頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

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.單片機(jī)休眠-復(fù)位運(yùn)行方式提高抗干擾能力摘要:介紹一種用休眠-復(fù)位運(yùn)行方式提高單片機(jī)抗干擾能力的方法;分析其適用范圍,給出具體應(yīng)用電路;結(jié)合實(shí)例,分析這種運(yùn)行方式下硬件

54、和軟件設(shè)計(jì)的特點(diǎn)。 關(guān)鍵詞:?jiǎn)纹瑱C(jī) 復(fù)位/休眠 抗干擾 引 言隨著微電子技術(shù)的飛速發(fā)展,單片機(jī)的性能迅速提高,在運(yùn)算、邏輯控制、智能化方面顯示出非凡的優(yōu)勢(shì),在很大程度上取代了原來(lái)由數(shù)字邏輯電路、運(yùn)算放大電路組成的檢測(cè)、控制電路,應(yīng)用非常廣泛。但由于它存在著死機(jī)、程序跑飛等致命缺陷,使它在許多重要場(chǎng)合的應(yīng)用受到限制。在抗干擾方面的許多技術(shù),比如設(shè)軟件陷阱、加硬件看門狗電路等,可使這一問題有較好的解決,但仍然存在問題: 看門狗動(dòng)作時(shí),意味著已經(jīng)出現(xiàn)了錯(cuò)誤,且運(yùn)行了一段時(shí)間,這在有些場(chǎng)合是不允許的; 有時(shí)程序出現(xiàn)死循環(huán)錯(cuò)誤,但是剛好把看門狗控制環(huán)節(jié)包含進(jìn)去,對(duì)于這樣的錯(cuò)誤采用看門狗無(wú)法識(shí)別; 在檢測(cè)

55、控制周期比較長(zhǎng)的系統(tǒng)中,單片機(jī)花大量時(shí)間等待外設(shè),執(zhí)行等待命令時(shí)同樣會(huì)受到干擾。針對(duì)這些情況,我們?cè)趯?shí)踐中嘗試了主動(dòng)復(fù)位的辦法,采用等間隔的脈沖或根據(jù)外部條件對(duì)單片機(jī)進(jìn)行復(fù)位喚醒。每次復(fù)位后,單片機(jī)執(zhí)行相應(yīng)的程序,執(zhí)行完任務(wù)后及時(shí)進(jìn)入休眠,等待下次復(fù)位。用此方法較好地解決了上述問題,并在農(nóng)用變壓器綜合保護(hù)器實(shí)驗(yàn)中得到了較好的效果。下面以51系列單片機(jī)為例探討具體原理與實(shí)現(xiàn)方法,復(fù)位信號(hào)為高電平。1 原理與實(shí)現(xiàn)方法1.1 無(wú)條件定時(shí)復(fù)位法用定時(shí)器、專用時(shí)鐘芯片或其它脈沖產(chǎn)生器,按照設(shè)定的間隔定時(shí)產(chǎn)生復(fù)位信號(hào)。這種方法特別適合監(jiān)測(cè)儀表。在實(shí)際運(yùn)行中,往往是用a/d轉(zhuǎn)換器采樣輸入的模擬量,然后進(jìn)行存

56、儲(chǔ)顯示。這一過程很快,但為了讀數(shù)穩(wěn)定,每秒數(shù)據(jù)更新不過12次,cpu的大量時(shí)間用于等待。如果讓cpu執(zhí)行完任務(wù)后直接進(jìn)入休眠,然后由外界復(fù)位喚醒它去執(zhí)行下一次操作,這就是定時(shí)復(fù)位法。這樣會(huì)使抗干擾能力大大增強(qiáng),主要有2點(diǎn): 休眠時(shí),程序停止運(yùn)行,不會(huì)出現(xiàn)pc指針紊亂引起的程序跑飛。如果工作與休眠的時(shí)間比例為1:9,也就是說,1s內(nèi)有0.1s的時(shí)間用來(lái)檢測(cè)、送顯示,有0.9s的時(shí)間休眠,程序受干擾的概率是全速運(yùn)行時(shí)的1/10,整體抗干擾能力提高了10倍。 由于每1s無(wú)條件復(fù)位1次,一旦某次工作期間出現(xiàn)死機(jī),在下次復(fù)位時(shí)肯定得以恢復(fù)。對(duì)于只是顯示的儀表,某1s偶然出現(xiàn)的讀數(shù)錯(cuò)誤對(duì)下一次測(cè)量并沒有記

57、憶,是可以承受的,屬“一過性”錯(cuò)誤。這種定時(shí)復(fù)位相對(duì)于看門狗電路的優(yōu)點(diǎn),一是把等待時(shí)間改為休眠狀態(tài) ,縮短可能受干擾的時(shí)間;二是避免了恰好包含看門狗控制環(huán)節(jié)的死循環(huán)。1.2 外部條件復(fù)位法有些輸出或測(cè)量的啟動(dòng)是由外部控制的。如暖氣熱表,靠熱水水輪旋轉(zhuǎn)產(chǎn)生的脈沖計(jì)算熱量,沒有熱水流動(dòng),就沒有熱量輸出,cpu只要保持原來(lái)數(shù)值即可,不需要計(jì)數(shù)??梢韵胂?,停暖時(shí)熱水水輪不轉(zhuǎn),cpu在春夏秋三季則無(wú)事可做;如果讓其休眠,而不是時(shí)刻檢測(cè)有無(wú)水輪脈沖,抗干擾能力會(huì)大大增強(qiáng)。因此,只要把水輪脈沖與cpu的復(fù)位聯(lián)系起來(lái),水輪每旋轉(zhuǎn)1周,cpu復(fù)位1次,熱表就可以正常工作了,這就是外部條件復(fù)位法。類似的應(yīng)用還有半

58、電子式電度表,當(dāng)機(jī)械度盤旋轉(zhuǎn)1周時(shí)才進(jìn)行1個(gè)計(jì)數(shù),用戶不用電,cpu會(huì)一直休眠。這種方法的復(fù)位間隔不是固定的,而是根據(jù)外部條件確定的。在有些場(chǎng)合,休眠的時(shí)間會(huì)很長(zhǎng),對(duì)提高抗干擾能力非常有效。2 硬件實(shí)現(xiàn)要點(diǎn)2.1 無(wú)條件定時(shí)復(fù)位 一般有2種方法。 使用定時(shí)器或?qū)S脮r(shí)鐘芯片復(fù)位。圖1為使用555電路組成的定時(shí)電路;也可以使用x1126之類的時(shí)鐘芯片,設(shè)置報(bào)警時(shí)間后用報(bào)警信號(hào)喚醒cpu。這種方法適用于長(zhǎng)間隔定時(shí),還可以根據(jù)本次運(yùn)算的結(jié)果,臨時(shí)決定下一次的報(bào)警喚醒時(shí)間,非常靈活方便。 使用系統(tǒng)固有的信號(hào)作為定時(shí)復(fù)位脈沖。例如使用50hz工頻電源整形后作復(fù)位,既省略了定時(shí)器,同時(shí)又為檢測(cè)電流信號(hào)的相位采集了相應(yīng)的信號(hào),如圖2所示。2.2 外部條件復(fù)位把外部條件脈沖整形后送到復(fù)位端子。對(duì)于上述水輪或電表度盤產(chǎn)生的脈沖,可以使用施密特觸發(fā)器整形;對(duì)于記錄最大或最小值的儀器,可使用窗口比較器。為了實(shí)現(xiàn)調(diào)節(jié)的電子

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論