單片機應用系統(tǒng)設(shè)計——溫度巡檢系統(tǒng).doc
約73頁DOC格式手機打開展開
單片機應用系統(tǒng)設(shè)計——溫度巡檢系統(tǒng),論文標準word格式排版 73頁摘要本論文采用臺灣凌陽公司生產(chǎn)的’nsp系列16位spce061a單片機,設(shè)計了用于檢測爐窯溫度的溫度巡檢系統(tǒng), 該系統(tǒng)在冶金、化工等領(lǐng)域應用較為廣泛。課題主要內(nèi)容包括硬件設(shè)計(熱電偶溫度傳感器、熱電偶溫度變送器、驅(qū)動芯片、led顯示器等)以及軟件程序設(shè)計(模擬量的采集、a/d轉(zhuǎn)換模塊、...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/261087.gif)
內(nèi)容介紹
此文檔由會員 莎士比亞 發(fā)布
論文標準WORD格式排版 73頁
摘要
本論文采用臺灣凌陽公司生產(chǎn)的’nSP系列16位SPCE061A單片機,設(shè)計了用于檢測爐窯溫度的溫度巡檢系統(tǒng), 該系統(tǒng)在冶金、化工等領(lǐng)域應用較為廣泛。課題主要內(nèi)容包括硬件設(shè)計(熱電偶溫度傳感器、熱電偶溫度變送器、驅(qū)動芯片、LED顯示器等)以及軟件程序設(shè)計(模擬量的采集、A/D轉(zhuǎn)換模塊、定時器、I/O模塊等)。
該系統(tǒng)可以在一個采樣周期內(nèi)實現(xiàn)四個溫度采集點的巡回檢測、各個采集點的溫度的LED顯示、溫度的超限報警功能。論文詳細闡述了軟件設(shè)計的思路,并對硬件接口電路和程序流程圖進行了詳細的分析,并對系統(tǒng)的抗干擾性能進行了優(yōu)化設(shè)置。
大部分程序采用了C語言編程,相較于匯編語言來說它具有結(jié)構(gòu)靈活,數(shù)字信號處理能力強的特點,而且只要修改參數(shù)就可以方便地應用于其它類似的系統(tǒng)。
關(guān)鍵字:SPCE061A單片機,采樣,A/D轉(zhuǎn)換
The Design of System for Itinerant Temperature Measurement Using MCU
Abstract
The author of the paper designs a itinerant measurement system of temperature in measuring the furnace temperature using the SPCE061A 16-bit MCU in the ’nSP series made by Taiwan Sunplus Ltd , which is used widely in the filed of metallurgical engineering and chemical industry. This paper contains the designs of hardware (the thermocouple sensor, the thermocouple convert, the driver, the LED displayer etc.) and the software (the analog data collect, the ADC convert unit, the Timer,the I/O unit etc.).
The system can measure the furnace temperature of the four points in a sample period, display the temperature data of each point on the LED displayer and give an alarm when the temperature oversteps the normal boundaries. The paper tells the designing thought in detail and analyses the circuit diagrams and charts with clarity.
Most of the programs are described by C language, which has the advantages of agility structure and strong Digital Signal Processing ability to the assemble language. The program can be transplanted conveniently to other similar system just by modifying the parameters.
Keywords: SPCE061A MCU, sample,analogy-digital-convert
目錄
1 緒論1
1.1 課題的提出1
1.2 單片機的發(fā)展及現(xiàn)狀1
1.3 課題的系統(tǒng)構(gòu)成2
2 系統(tǒng)基本硬件4
2.1 凌陽16位單片機SPCE061A介紹4
2.1.1 SPCE061A的性能5
2.1.2 SPCE061A的內(nèi)部結(jié)構(gòu)和最小系統(tǒng)6
2.1.3 定時器和計數(shù)器8
2.1.4 輸入輸出接口11
2.1.5 A/D轉(zhuǎn)換器13
2.1.6 凌陽SPCE061A的指令系統(tǒng)15
2.2 溫度傳感器17
2.2.1熱電偶的測溫原理18
2.2.2 熱電偶傳感器的選型18
2.2.3 熱電偶的結(jié)構(gòu)形式19
2.2.4 熱電偶的冷端補償19
2.3 溫度變送器21
3 系統(tǒng)硬件設(shè)計24
3.1 電路方框圖其說明24
3.2 SPCE061A與計算機的接口24
3.3 SPCE61A與外部傳感器、變送器的接口25
3.3.1 被測溫度的輸入通道25
3.3.2 溫度傳感器和溫度變送器與SPCE061A的接口電路26
3.4 LED顯示器接口電路26
3.4.1 七段數(shù)碼管27
3.4.2 靜態(tài)顯示方式和動態(tài)顯示方式27
3.4.3 LED顯示器的接口電路28
3.4.4驅(qū)動芯片BIC781829
3.5聲光報警電路30
3.5.1 通道1~4的報警電路接口30
3.5.2 SPCE061A的DAC輸出通道與揚聲器的接口31
3.6 SPCE061A的電源模塊32
4 系統(tǒng)的軟件程序設(shè)計33
4.1 主程序33
4.2 FIQ中斷子程序35
4.3 采樣及A/D轉(zhuǎn)換子程序36
4.4數(shù)字濾波子程序38
4.5標度轉(zhuǎn)換子程序39
4.6報警子程序39
4.6.1 報警子程序Sgbj()40
4.6.2報警子程序Alarm()41
4.7 LED顯示子程序42
4.7.1 LED顯示子程序Display()42
4.7.2 LED顯示器的段選碼43
4.7.3 LED顯示子程序F_show()43
4.8 放音子程序44
4.9 編程工作的總結(jié)45
5 系統(tǒng)調(diào)試47
5.1編程工具’nSP IDE的簡介47
5.2 程序的調(diào)試51
6 總 結(jié)53
參考文獻54
附錄55
附錄一:SPCE061A引腳說明(PLCC84封裝形式)55
附錄二:源程序代碼57
附錄三:系統(tǒng)硬件電路圖67
致謝68
摘要
本論文采用臺灣凌陽公司生產(chǎn)的’nSP系列16位SPCE061A單片機,設(shè)計了用于檢測爐窯溫度的溫度巡檢系統(tǒng), 該系統(tǒng)在冶金、化工等領(lǐng)域應用較為廣泛。課題主要內(nèi)容包括硬件設(shè)計(熱電偶溫度傳感器、熱電偶溫度變送器、驅(qū)動芯片、LED顯示器等)以及軟件程序設(shè)計(模擬量的采集、A/D轉(zhuǎn)換模塊、定時器、I/O模塊等)。
該系統(tǒng)可以在一個采樣周期內(nèi)實現(xiàn)四個溫度采集點的巡回檢測、各個采集點的溫度的LED顯示、溫度的超限報警功能。論文詳細闡述了軟件設(shè)計的思路,并對硬件接口電路和程序流程圖進行了詳細的分析,并對系統(tǒng)的抗干擾性能進行了優(yōu)化設(shè)置。
大部分程序采用了C語言編程,相較于匯編語言來說它具有結(jié)構(gòu)靈活,數(shù)字信號處理能力強的特點,而且只要修改參數(shù)就可以方便地應用于其它類似的系統(tǒng)。
關(guān)鍵字:SPCE061A單片機,采樣,A/D轉(zhuǎn)換
The Design of System for Itinerant Temperature Measurement Using MCU
Abstract
The author of the paper designs a itinerant measurement system of temperature in measuring the furnace temperature using the SPCE061A 16-bit MCU in the ’nSP series made by Taiwan Sunplus Ltd , which is used widely in the filed of metallurgical engineering and chemical industry. This paper contains the designs of hardware (the thermocouple sensor, the thermocouple convert, the driver, the LED displayer etc.) and the software (the analog data collect, the ADC convert unit, the Timer,the I/O unit etc.).
The system can measure the furnace temperature of the four points in a sample period, display the temperature data of each point on the LED displayer and give an alarm when the temperature oversteps the normal boundaries. The paper tells the designing thought in detail and analyses the circuit diagrams and charts with clarity.
Most of the programs are described by C language, which has the advantages of agility structure and strong Digital Signal Processing ability to the assemble language. The program can be transplanted conveniently to other similar system just by modifying the parameters.
Keywords: SPCE061A MCU, sample,analogy-digital-convert
目錄
1 緒論1
1.1 課題的提出1
1.2 單片機的發(fā)展及現(xiàn)狀1
1.3 課題的系統(tǒng)構(gòu)成2
2 系統(tǒng)基本硬件4
2.1 凌陽16位單片機SPCE061A介紹4
2.1.1 SPCE061A的性能5
2.1.2 SPCE061A的內(nèi)部結(jié)構(gòu)和最小系統(tǒng)6
2.1.3 定時器和計數(shù)器8
2.1.4 輸入輸出接口11
2.1.5 A/D轉(zhuǎn)換器13
2.1.6 凌陽SPCE061A的指令系統(tǒng)15
2.2 溫度傳感器17
2.2.1熱電偶的測溫原理18
2.2.2 熱電偶傳感器的選型18
2.2.3 熱電偶的結(jié)構(gòu)形式19
2.2.4 熱電偶的冷端補償19
2.3 溫度變送器21
3 系統(tǒng)硬件設(shè)計24
3.1 電路方框圖其說明24
3.2 SPCE061A與計算機的接口24
3.3 SPCE61A與外部傳感器、變送器的接口25
3.3.1 被測溫度的輸入通道25
3.3.2 溫度傳感器和溫度變送器與SPCE061A的接口電路26
3.4 LED顯示器接口電路26
3.4.1 七段數(shù)碼管27
3.4.2 靜態(tài)顯示方式和動態(tài)顯示方式27
3.4.3 LED顯示器的接口電路28
3.4.4驅(qū)動芯片BIC781829
3.5聲光報警電路30
3.5.1 通道1~4的報警電路接口30
3.5.2 SPCE061A的DAC輸出通道與揚聲器的接口31
3.6 SPCE061A的電源模塊32
4 系統(tǒng)的軟件程序設(shè)計33
4.1 主程序33
4.2 FIQ中斷子程序35
4.3 采樣及A/D轉(zhuǎn)換子程序36
4.4數(shù)字濾波子程序38
4.5標度轉(zhuǎn)換子程序39
4.6報警子程序39
4.6.1 報警子程序Sgbj()40
4.6.2報警子程序Alarm()41
4.7 LED顯示子程序42
4.7.1 LED顯示子程序Display()42
4.7.2 LED顯示器的段選碼43
4.7.3 LED顯示子程序F_show()43
4.8 放音子程序44
4.9 編程工作的總結(jié)45
5 系統(tǒng)調(diào)試47
5.1編程工具’nSP IDE的簡介47
5.2 程序的調(diào)試51
6 總 結(jié)53
參考文獻54
附錄55
附錄一:SPCE061A引腳說明(PLCC84封裝形式)55
附錄二:源程序代碼57
附錄三:系統(tǒng)硬件電路圖67
致謝68
TA們正在看...
- 網(wǎng)絡(luò)視頻直播系統(tǒng)介紹.doc
- 網(wǎng)絡(luò)訂餐平臺食品安全責任.doc
- 網(wǎng)絡(luò)購物調(diào)查問卷報告-史上最好.doc
- 網(wǎng)絡(luò)通選課移動互聯(lián)網(wǎng)思維--李易課后習題答案.doc
- 網(wǎng)絡(luò)道德的現(xiàn)狀調(diào)查與分析.doc
- 網(wǎng)絡(luò)部網(wǎng)站運營4月份工作總結(jié)及工作計劃4月總結(jié).doc
- 網(wǎng)絡(luò)餐飲服務(wù)食品安全監(jiān)督管理辦法要點解讀.doc
- 網(wǎng)絡(luò)高清監(jiān)控系統(tǒng)中交換機選型.doc
- 網(wǎng)絡(luò)高清監(jiān)控系統(tǒng)建設(shè)方案.doc
- 網(wǎng)聯(lián)汽車技術(shù)的發(fā)展現(xiàn)狀及趨勢.doc