【正文】
CALL DELAY1SETB SETB ACALL DISPACALL DELAY1DISP:MOV A, R3MOV DPTR,TABLEMOVC A,A+DPTRMOV BUFF, AWAIT:JNB TI,WAITCLR TIRETDELAY1:MOV R6,10HLOOP1:MOV R7,38HLOOP2:DJNZ R7,LOOP2DJNZ R6,LOOP1RETTABLE:DB 0C0H,0F9H,0A4H,0B0H,99H, DB 92H,82H, 0F8H,80H,90HEND報警程序清單: MOV NUM,03HCHECK: CLR C MOV A,Amax SUBB A,SAMP JC ABNORMAL MOV A,Amin SUBB A,SAMP JNC ABNORMAL AJMP RETUABNORMAL: JB FLAG,ABNORL MOV NUB,03H SETB FLAG AJMP RETU ABNORL: MOV A,NUM JZ ALARM DEC NUM SERB FLAG AJMP RETU RETU: RET附 錄 二 電路原理圖外文資料譯文With the rapid development of electronic technology, puters have been deeply infiltrated into our lives, many elearning enthusiasts SCM knowledge, but the content of SCM abstract parison, the relative electronic enthusiasts already familiar with the analog circuits, digital Circuit, SCM in a number of new concepts, even these very basic concept of the general disdain the author, natural materials will not be very indepth on these concepts, but they are learning in the content must be understandable, the bination of the following I am learning, teaching experience, the most basic of these concepts to make a note of hope one’s help. Microcontroller Features (1) High integration, small size, high reliabilitySCM will each feature integrated in a crystal chip, highly integrated, pact nature is also the smallest. The chip itself is designed according to industrial measurement and control environmental requirements, and internal wiring is very short, its antiindustrial noise performance is better than the general mon CPU. Microcontroller program instructions, constants and tables in the ROM is not easy to cure such damage, many signal channel within a chip, so high reliability(2) Strong controlTo meet the requirements of the control object, the microcontroller has a very rich instruction conditions: ability to branch transfer, I / O port logic operations and bit processing power, ideal for special control functions.(3) lowvoltage, low power, ease of production of portable productsIn order to meet widely used in portable systems, many microcontroller operating voltage of only ~ , the operating current of only hundreds of microamps.(4) easy to expandWith a puter chip ponents required for normal operation. There are many external chips for expansion and parallel with the threebus, serial input / output pins, it is easy to create various size of puter applications.(5) Excellent cost performanceSingle chip with high performance. To improve the speed and efficiency, have begun to use the RISC MCU and DSP technologies such lines. MCU 64KB addressing capacity constraints have been exceeded, and some have up to 1MB and 16MB, the onchip ROM capacity of up to 62MB, RAM capacity of up to 2MB. Since the widespread use of single chip, thus greatly sales, panies make business more petitive price is very low, its high cost performance.隨著電子技術的迅速發(fā)展,計算機已深入地滲透到我們的生活中,許多電子愛好者開始學習單片機知識,但單片機的內容比較抽象,相對電子愛好者已熟悉的模擬電路、數字電路,單片機中有一些新的概念,這些概念非?;疽灾劣谝话阕髡卟恍既フ?,教材自然也不會很深入地講解這些概念,但這些內容又是學習中必須要理解的,下面就結合本人的學習、教學經驗,對這些最基本概念作一說明,希望對別人有所幫助下面是單片機的主要特點(1)高集成度,體積小,高可靠性單片機將各功能部件集成在一塊晶體芯片上,集成度很高,體積自然也是最小的。芯片外部有許多供擴展用的三總線及并行、串行輸入/輸出管腳,很容易構成各種規(guī)模的計算機應用系統。報警程序流程框圖56所示:圖56 報警程序流程框圖 結 論本系統比較設計簡單適合于但范圍推廣,由于有專門的穩(wěn)壓設計電路并且在穩(wěn)壓電路中有MC7805T使得性能穩(wěn)定,可靠性高,且對信號連續(xù)采集動態(tài)掃描實時性高。 A/D轉換完成中斷程序流程圖如圖54所示。采樣開關通道號的控制:控制采樣開關選擇要監(jiān)測數據的通道。報警系統的電路圖如圖43所示。共陽極七段LED顯示器工作時,二