基于FPGA的温度监控系统 - 图文 联系客服

发布时间 : 星期日 文章基于FPGA的温度监控系统 - 图文更新完毕开始阅读

摘要

本论文介绍了一个基于FPGA的数字温度计电路的设计与实现。该电路采用数字温度传感器DS18B20采集外界环境温度,同时结合该传感器的数据接口和特点,使用FPGA作为控制器,严格控制DS18B20 的时序 ,在单总线上实现读写功能,完成测量数字温度的功能。再将采集的二进制数转换为BCD码 ,并通过数码管显示。该系统软件设计通过 Verilog HDL 语言进行编译。这次设计相比于传统的数字温度计具有结构简单,抗干扰能力强,功耗小,可靠性高,反应时间短等优点。

关键词:数字温度计;FPGA ;Verilog HDL ;DS18B20

ABSTRACT

This paper expounds a design and implementation of a digital thermometer circuit based on FPGA. The circuit adopts the digital temperature sensor DS18B20 collecting the environment temperature, combining with the characteristics of the sensor data interface, using FPGA as the controller, strict control over the timing of DS18B20, read and write functions on 1-wire, complete the function of digital temperature measurement. Then measure the binary number into BCD code, and display it on the digital tube. The program design of the system is compiled by Verilog HDL language. Compared to the traditional digital thermometer, it has many advantages such as simpler structure, strong anti-interference ability, low consumption, high reliability, short reaction time.

Keywords:Digital thermometer, FPGA, Verilog HDL, DS18B20

山东科技大学学士学位论文 目录

目录

1绪论 ................................................................................................. 1

1.1课题研究意义 ............................................... 1 1.2课题相关技术的发展 ......................................... 2 1.3课题的主要研究内容 ......................................... 3 1.4论文结构安排 ............................................... 3

2 总体方案的论证 .......................................................................... 5

2.1 方案的选择 ................................................ 5 2.2 方案论证与确立 ............................................ 7 2.3 Quartus II介绍 ............................................ 7

3. 系统的硬件设计 ......................................................................... 10

3.1 系统的总体结构设计 ........................................ 10 3.2 数据处理模块 .............................................. 15 3.3数码管显示模块 ............................................ 22

4 系统总体模块设计 .................................................................... 24

4.1 Verilog HDL语言介绍 ...................................... 24 4.2 软件程序设计 .............................................. 25

5整体编译结果与分析 ................................................................... 30

5.1 整体编译 ................................................. 30 5.2 程序的下载调试 ............................................ 31

6 设计中遇到的问题 ...................................................................... 33

山东科技大学学士学位论文 目录

7结束语 ........................................................................................... 34 参考文献 .......................................................................................... 35 附录 .................................................................................................. 36

附录A系统总体电路图 .......................................... 37 附录B 系统总程序 ............................................. 37 附录 C 外文翻译 ............................................... 49