智能熱水器設計.doc
智能熱水器設計,rreybrya目 錄摘 要vabstractvi緒論11 主要器件和編程語言簡介21.1本設計所用到的主要元器件21.2器件簡介21.2.1fpga簡介21.2.2單片機簡介31.2.3ds1302簡介31.2.4ds18b20簡介51.3編程語言簡介61.3.1vhdl簡介61.3.2c51語言簡介6...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/170324.gif)
內(nèi)容介紹
此文檔由會員 金陽 發(fā)布智能熱水器設計
rreybrya
目 錄
摘 要 V
ABSTRACT VI
緒論 1
1 主要器件和編程語言簡介 2
1.1本設計所用到的主要元器件 2
1.2器件簡介 2
1.2.1 FPGA簡介 2
1.2.2 單片機簡介 3
1.2.3 DS1302簡介 3
1.2.4 DS18B20簡介 5
1.3 編程語言簡介 6
1.3.1 VHDL簡介 6
1.3.2 C51語言簡介 6
2 系統(tǒng)方案選擇和論證 8
2.1設計要求 8
2.2各模塊方案論證和選擇 8
2.2.1控制器模塊方案的論證和選擇 8
2.2.2 水位控制模塊方案的論證和選 9
2.2.3 水溫控制模塊方案的論證和選擇 9
2.2.4 定時開關控制模塊方案的論證和選擇 10
2.2.5 時鐘模塊方案的論證和選擇 10
2.2.6 鍵盤模塊方案的論證和選擇 11
2.2.7 顯示模塊方案的論證和選擇 11
2.3硬件系統(tǒng)框圖和總體軟件系統(tǒng)流程圖 11
2.4硬系統(tǒng)總體電路圖 14
2.4.1 FPGA模塊電路圖 14
2.4.2單片機控制模塊電路圖 15
3 .硬件電路組裝調(diào)試 17
3.1各模塊的硬件組裝 17
3.1.1 FPGA模塊 17
3.1.2 單片機模塊 18
3.2組裝和改進系統(tǒng)硬件電路 19
3.3各硬件電路調(diào)試方法 20
3.3.1 FPGA調(diào)試方法 20
3.3.2 繼電器電路的調(diào)試方法 21
4 .軟件調(diào)試及仿真 22
4.1各模塊的軟件調(diào)試、仿真和實物測試 22
4.1.1 FPGA軟件調(diào)試、仿真和實物測試 22
4.1.2 DS1302軟件調(diào)試、仿真和實物測試 23
4.1.3 DS18B20軟件調(diào)試、仿真和實物測試 23
4.2整個系統(tǒng)軟件調(diào)試、仿真和實物測試 24
4.2.1主程序的調(diào)試、仿真和實物測試 24
4.2.2水位調(diào)節(jié)子程序的調(diào)試、仿真和實物測試 26
4.2.3水溫調(diào)節(jié)子程序的調(diào)試、仿真和實物測試 26
4.2.4定時開關子程序的調(diào)試、仿真和實物測試 28
4.2.5校時程序仿真 29
4.2.6按鍵功能提示界面的程序仿真 30
4.2.7沒有實現(xiàn)的第二定時功能提示界面的程序仿真 30
5 .總體設計電路的優(yōu)缺點總結及改進意見和展望 31
5.1優(yōu)點 31
5.2缺點 31
5.3改進意見和展望 31
結 論 32
參考文獻 33
附錄A:VHDL語言源程序 34
附錄B: C51語言程序主程序名及頭文件名 35
致 謝 36
摘 要
智能化的熱水器一般的用單片機作為控制器,能實現(xiàn)恒溫和水位的自動調(diào)節(jié)的功能,本設計是以FPGA和單片共同作為控制器件設的智能化熱水器,在減少了一些外圍器件的同時實現(xiàn)了恒溫和水位的自動調(diào)節(jié)控制,還能實施時間監(jiān)控,根據(jù)不同的月份,不同的日期,不同的時間而自動開啟和關斷熱水器的電源,從而使得熱水使用更加方便,設定后不需要人的干預,同時能節(jié)約電能。本設計編程語言使用VHDL 語言和C51,運行環(huán)境分別是MAX+plus II 10.0和Keil uVision3,用Proteus 7 Professional畫系統(tǒng)的電路圖并進行仿真調(diào)試,F(xiàn)PGA芯片使用Altera公司的EPF10K10TC144-4,單片機使用STC89C52RC.
關鍵詞: 智能、熱水器 、FPGA 、EDA 、VHDL、單片機89C51、 C51、恒溫控制、液位控制、時鐘控制、鍵盤控制、液晶顯示
Abstract
Water heaters are generally use MCU as the controller.This kind of water heaters could achieve to constant temperature and water level automaticlly, The design of intelligent water heater is based on FPGA and MCU control, reducing the number of peripheral devices while achieving the automatic adjustment of temperature and water level control, and also monitor the implementation of the time, according to a different month, different days, different times and automatic turned on and off the power of the intelligent water heater, making the use of water hearter more convenient, Settings without human intervention, saving energy at the same time.
The design of programming language uses VHDL language and C51, operating environment are MAX + plus II 10.0 and Keil uVision3, with Proteus 7 Professional painting system and the simulation circuit debug, FPGA chip use Altera's EPF10K10TC144-4, microcontroller use STC89C52RC.
Key words: Smart, water heaters, FPGA, EDA, VHDL, MCU 89C51, C51, temperature control, water level control, clock control, keyboard control, liquid crystal display