單片機(jī) 電氣工程及其自動(dòng)化 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 單片機(jī)的休眠運(yùn)算復(fù)位和抗干擾能力完善
《單片機(jī) 電氣工程及其自動(dòng)化 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 單片機(jī)的休眠運(yùn)算復(fù)位和抗干擾能力完善》由會(huì)員分享,可在線閱讀,更多相關(guān)《單片機(jī) 電氣工程及其自動(dòng)化 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 單片機(jī)的休眠運(yùn)算復(fù)位和抗干擾能力完善(9頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、英文資料 Single-Chip Microcomputer dormancy computing reset and the anti-interference ability is perfect Abstract: Introduce a kind of dormancy of using- restore to the throne in the operation way and improve the anti-interference ability method of the one-chip computer,Analyse its scope of applicati
2、on, provide and use the circuit concretely; Combine the instance, analyze the characteristic of the hardware and software design under these kind of operation way. Keyword: Single-Chip Microcomputer Restore to the throne, dormancy, anti-interference Preface: With the development at full speed
3、of the micro electric 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, operation
4、originally to a great extent, use very extensively. 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 the hardware to guard
5、the gate in dog's circuit etc, can make this problem have better 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 an
7、d 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 comp
8、uter carries out the corresponding procedure, enters dormancy in time after finishing carrying out the task, wait to be restored to the throne neatly. 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 method 1.1 Unconditional regular reset Use timer, special clock chip or other
10、pulse generator in a certain part of the regular produce reset signal. This method is especially suited for measuring instrument; 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, the
11、n 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 the
12、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 1
13、: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 kind
15、 is restored to the throne the advantage of dog's circuit for guarding the gate regularly, first, change waiting time into a dormancy state, time to shorten and may be interfered; Second, avoided happening that the dog controls the death circulation of the link to include guarding the gate. 1.2 Th
16、e external condition is restored to the throne the law Some 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 wheels, there is no hot water to flow, there is no heat to export, CPU only need
17、 in fact keep number value, do not need to count. Can imagine hot 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. So, so
18、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 electron
19、 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 condition
20、 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 point 2.1 Restored to the throne regularly unconditionally Generally it has 2 kinds of methods. ① Use the timer or the special-
21、purpose 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, 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 follow
22、 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, g
23、athered 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-m
24、entioned water wheels or the ammeter spend a pulse produced, can use Schmitt's 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 electrification that is regulated,can use the electronic electric potential devi
25、ce, 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 times In 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
26、procedure 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 s
27、hould be greater 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, lo
28、w electricity is it measure, hence over all time shown to greater than to want at ordinary times; otherwise, it can’t present forever the mistake of the intact executive program. Monolithic integrated circuit in Ts and Tr period all can effectively the antigambling, but is best the unnecessary time
29、arrangement in Tr. When the program time is long, as far as possible the request reduces Tr,it may join the differentiating circuit, like chart 1 center C30, R26, D9. 2.4 Have the electricity to measure and restore to the throne manually Some systems in its initialization and run-time need first
30、electrical impulses. 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 and have the electricity for the first time. In some pin connects the electric capacity of one Leif
31、 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 one manual to restore to the throne, this button is not joined and being restored to the throne in th
32、e end, is connected in parallel in the electric capacity both ends to the ground of above-mentioned pins. Result: Conclusion Anti-interference is an important problem in an electronic design, especially Important in the one-chip computer. This is because the one-chip computer has procedures to ru
33、n particularity that flies, the consequence that it is interfered may be the system halted, may send out various kinds of mistakes or illegal movements 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
34、 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 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 to e
35、very colleague explore together, improve our design level together. 中文翻譯 單片機(jī)的休眠運(yùn)算復(fù)位和抗干擾能力完善 摘要: 介紹了一種通過(guò)運(yùn)算復(fù)位來(lái)改善抗干擾能力的重復(fù)使用的單片機(jī),分析其適用范圍,提供和分析其所使用的電路,結(jié)合實(shí)例分析在某些運(yùn)行方式下的軟硬件設(shè)計(jì)。 關(guān)鍵詞: 單片機(jī)復(fù)位,休眠,反干擾 前言: 隨著微電子技術(shù)迅速開展,單片機(jī)性能也得到迅速提高。智能維護(hù)邏輯控制電路取代了以往的測(cè)量電路的數(shù)字邏輯控制電路,并將其開展。這操作被擴(kuò)展到更大的范圍
36、,并得到廣泛使用。因?yàn)樗邢到y(tǒng)的停頓,所以運(yùn)行程序有致命缺陷在許多重要場(chǎng)合受到限制。很多反干擾技術(shù)〔例如有軟件隔欄;將硬件的接口放入狗的電路中等等〕可以使這一問(wèn)題的到很好的解決,但仍然存在著問(wèn)題:① 連接狗的電路運(yùn)行時(shí)好時(shí)壞,這是在某些場(chǎng)合是不允許的。② 程序時(shí)常出現(xiàn)很多電路錯(cuò)誤,僅僅是狗的連接環(huán)節(jié)也會(huì)時(shí)常出現(xiàn)無(wú)法識(shí)別的錯(cuò)誤。③ 在測(cè)量和控制周期之間的時(shí)間長(zhǎng)時(shí),單片機(jī)要花費(fèi)大量時(shí)間等待周邊其他硬件,在運(yùn)算處理等待命令時(shí)它將會(huì)受到太多的干擾,對(duì)于這些情況,在實(shí)踐中我們已經(jīng)嘗試過(guò)主動(dòng)復(fù)位的方法,采用后續(xù)脈沖外界條件觸發(fā)單片機(jī)工作。在每次復(fù)位后單片機(jī)將進(jìn)行相應(yīng)的程序,執(zhí)行命令后立即進(jìn)入休眠,為下次復(fù)
37、位做好準(zhǔn)備,用此種方法很好的解決了上述的問(wèn)題,在農(nóng)業(yè)電壓互感器綜合保護(hù)裝置實(shí)驗(yàn)中得到很好的效果。現(xiàn)在用51系列單片機(jī)作為一個(gè)例子,并具體探討高電平復(fù)位的原理和實(shí)施方法。 1 原理和實(shí)施方法 1.1 無(wú)條件定期復(fù)位 使用定時(shí)器,專用時(shí)鐘芯片或其它脈沖發(fā)生器在某一局部定期產(chǎn)生復(fù)位信號(hào)。這種方法尤其適合于測(cè)量?jī)x器。在這種運(yùn)行中,模擬量通過(guò)A/D轉(zhuǎn)換器后并將其存入顯示。這當(dāng)然是非??斓?,但在穩(wěn)定的運(yùn)行中,數(shù)據(jù)每秒只有1-2倍的提高,在大量的時(shí)間內(nèi)CPU是用來(lái)等待讓CPU的工作并工作后進(jìn)入休眠,復(fù)位和外界條件觸發(fā)CPU執(zhí)行下次指令,這就是復(fù)位,這樣才能使抗干擾能力大大加強(qiáng)。其有兩個(gè)主要內(nèi)容:① 在
38、休眠〔程序停止運(yùn)行〕時(shí)可以出現(xiàn)CP機(jī)指示無(wú)序的程序。工作時(shí)間與休眠時(shí)間比例為1:9,那就是說(shuō)1秒內(nèi)有0.1秒時(shí)間是用于測(cè)量,傳送,顯示,有0.9秒時(shí)間是休眠。這概率也就是說(shuō)一程序在全速運(yùn)行時(shí)間只有十分之一的干預(yù)時(shí)間,整個(gè)抗干擾能力提高十倍。② 因?yàn)槭敲棵氲膹?fù)位,一旦無(wú)條件或目前的工作運(yùn)行停止,下一個(gè)周期一定能夠?qū)崿F(xiàn)恢復(fù)復(fù)位。至于唯一的數(shù)據(jù)顯示,雖然有些讀入數(shù)據(jù)在1秒內(nèi)出現(xiàn)錯(cuò)誤但對(duì)下次測(cè)量沒(méi)有影響或可以承受的都屬于可忽略的錯(cuò)誤。這種復(fù)位的好處是狗的電路在定期控制著。首先,改工作到休眠狀態(tài)的時(shí)間,并有可能干預(yù),二是可以防止發(fā)生該狗門電路的控制導(dǎo)致接口連接不暢。 1.2 外部條件復(fù)位法 局部進(jìn)入
39、是由外界控制的,舉例來(lái)說(shuō),加熱升溫供暖的旋轉(zhuǎn)脈沖產(chǎn)生,并計(jì)算有熱水車輪產(chǎn)生的熱量,沒(méi)有熱水流量也沒(méi)有熱出口量時(shí)中央處理器只需要在事實(shí)上使用的數(shù)值,也不用計(jì)數(shù)。可以想象熱水車輪轉(zhuǎn)動(dòng)時(shí)保持溫度,CPU空閑,它可能會(huì)有高溫情況,如果讓其有休眠情況,并衡量水車脈沖不間斷,其反干擾能力可以得到大大的加強(qiáng)。所以,只要把復(fù)位的脈沖水車輪和CPU連接其來(lái),水車輪每轉(zhuǎn)一圈CPU復(fù)位一次,供暖才能正常進(jìn)行,這就是復(fù)位法的外部條件。類似的專利申請(qǐng)有一半是電子電度表,正當(dāng)機(jī)械程度車輪和轉(zhuǎn)移到一個(gè)循環(huán)時(shí)用戶不需要用電,此時(shí)中央處理器已經(jīng)知道所有的休眠時(shí)間。該復(fù)位無(wú)規(guī)律間隔出現(xiàn),但它被證實(shí)了是有根據(jù)的外部條件方法。在某些
40、場(chǎng)合,時(shí)間的休眠會(huì)很長(zhǎng),但更有效的提高了抗干擾能力。 2 硬件的具體主要點(diǎn) 2.1 定期無(wú)條件復(fù)位 一般有兩種方法:① 使用定時(shí)器或特殊用途的時(shí)鐘芯片來(lái)復(fù)位或使用由555電路組成的時(shí)鐘電路可以使用時(shí)鐘芯片的X1126等設(shè)立預(yù)警時(shí)間后通過(guò)報(bào)警信號(hào)喚醒CPU。這種方法適用于間隔時(shí)間比擬長(zhǎng)的情況下,還可以按照對(duì)這次行動(dòng)結(jié)果,快速確定下次喚醒的時(shí)間,非常靈活方便② 信號(hào)的固定使用制度是為降低脈沖定時(shí)性。50Hz電力使用后已經(jīng)省略定時(shí)器,在同一時(shí)間內(nèi)聚結(jié)相應(yīng)的信號(hào)相位,其中包括測(cè)量電流信號(hào)。 2.2 外部條件復(fù)位 發(fā)送外部條件脈沖復(fù)位后立刻有了新的進(jìn)展。在這上面提到的水車輪或電流表產(chǎn)生脈沖也可
41、以使用施密特的觸發(fā)代替會(huì)有個(gè)新的效果??梢岳么翱诒葦M器得到儀器的最大最小值。為了實(shí)現(xiàn)電子化即標(biāo)準(zhǔn),可以使用電子電氣設(shè)備的潛力,也可以通過(guò)常規(guī)單片機(jī)來(lái)制定上限下限。 2.3 在日常生活中減少周期和復(fù)位的用電量 復(fù)位信號(hào)在高層次的TR和單片機(jī)是在程序不運(yùn)行時(shí)抗干擾能力是最強(qiáng)的,之后高層次的單片機(jī)開始進(jìn)行執(zhí)行程序。這就是說(shuō),復(fù)位也適合在這一段程序的低層次TD信號(hào)進(jìn)行,這個(gè)時(shí)候時(shí)間應(yīng)該大于執(zhí)行周期的每個(gè)程序時(shí)間。這是復(fù)位周期的復(fù)位高電平采取占空比的非常重要的選擇理由。以簡(jiǎn)單的顯示工具來(lái)確定復(fù)位周期數(shù)據(jù)打破原周期,低電平就是它的措施,有時(shí)其會(huì)超過(guò)平常任何時(shí)候所表現(xiàn)出來(lái)的數(shù)據(jù),否那么目前完整執(zhí)行方案
42、永遠(yuǎn)是錯(cuò)的。單片集成電路在TS和TR時(shí)期里都可以有效的抗干擾,但最好是不必要的時(shí)間安排TR。當(dāng)程序的時(shí)間很長(zhǎng),盡量要求降低TR,可以參加電路鑒別。 2.4 具有電力測(cè)量,手動(dòng)復(fù)位 有些系統(tǒng)在它初始化和運(yùn)行時(shí)還是需要第一次電脈沖。復(fù)位造成一開始正常運(yùn)行的狀況,對(duì)每個(gè)時(shí)間而采用的復(fù)位方法來(lái)說(shuō),它是無(wú)法識(shí)別第一次電脈沖的。在復(fù)位后測(cè)量這些引腳如果第一次測(cè)量是低電平那么一些引腳是連接電容后接地。給系統(tǒng)設(shè)置一個(gè)復(fù)位按鈕,那就是說(shuō)一個(gè)共同的復(fù)位,此按鈕是不是參加復(fù)位,要看最后并聯(lián)在電容兩端的引腳接地情況。 結(jié)果: 反干擾是電子設(shè)計(jì)中的重要問(wèn)題,尤其是在單片機(jī)中。這是因?yàn)閱纹瑱C(jī)程序運(yùn)行的特殊性所導(dǎo)致的。干預(yù)可能導(dǎo)致該系統(tǒng)停止運(yùn)行,也可能引發(fā)個(gè)種錯(cuò)誤或非法轉(zhuǎn)移,使整個(gè)系統(tǒng)產(chǎn)生死機(jī)的錯(cuò)誤。就這么一說(shuō)對(duì)單片機(jī)整個(gè)開展來(lái)說(shuō)是不夠的,我們要研究如何降低干擾風(fēng)險(xiǎn),使它完善以減少不必要的錯(cuò)誤。這文章只是充當(dāng)一些探索,從這兩個(gè)方面努力,希望這些小小的建議,可以發(fā)揮一些效果,鑄造拋磚引玉,幫助大家,也希望每為同時(shí)共同探討,提高我們?cè)O(shè)計(jì)水平。
- 溫馨提示:
1: 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 24香港璀璨的明珠
- 第02講 第一章 綜合布線基礎(chǔ)知識(shí)
- 預(yù)防傳染病課件
- 【創(chuàng)新設(shè)計(jì)】2011屆高考生物一輪復(fù)習(xí) 第5章單元綜合提升 細(xì)胞增殖、分化、衰老和凋亡課件 蘇教版必修1
- 512防震減災(zāi)安全教育班會(huì)課件
- 2022年浙教初中數(shù)學(xué)八下《反證法》課件10
- 1山中訪友課后作業(yè)(A組-基礎(chǔ)篇)
- 產(chǎn)后出血完整版
- 質(zhì)量培訓(xùn)教材(2)
- 部編版一年級(jí)下冊(cè)語(yǔ)文課件第三單元語(yǔ)文園地三(完美版)
- 我最好老師課件
- 面向?qū)ο蟾呒?jí)應(yīng)用及C-sharp-語(yǔ)法新特性課件
- 堿金屬元素課件
- 部編人教版六年級(jí)語(yǔ)文下冊(cè)14《文言文二則-》學(xué)-弈課件
- 部編版六年級(jí)上冊(cè)語(yǔ)文課件--宇宙生命之謎