1、 毕毕 业业 设设 计计 专专 业:业:应用电子技术教育应用电子技术教育 班级学号:班级学号: 学生姓名:学生姓名: 指导教师:指导教师: xx 副教授副教授 二二 0 一二一二 年年 六六 月月 I 摘摘 要要 本文针对现代智能家居的实际需求, 设计了一种基于现场可编程门阵列 (FPGA) 的豆浆机控制系统。 采用 FPGA 设计, 设计者只需用 HDL 语言完成系统功能的描述, 借助 EDA 工具就可得到设计结果,将编译后的代码下载到目标芯片就可在硬件上实 现。该系统能实现豆浆制作功能,果汁制作功能和自动清洗功能。 系统由上位机和下位机两部分组成。上位机采用 VB 程序设计操作界面。下位机
2、 采用 Quartus软件设计,使用硬件描述语言编程,由 EP1C3144C8N 芯片执行豆浆 机相关操作。两者之间的通信采用异步通信方式。 文章详细介绍了 RS-232 的三线制通信原理,VB 中 MSComm控件的使用,上位 机操作界面,下位机原理及使用和液晶模块的原理及使用。设计的系统运行稳定,性 能优良,在现代智能家居中,具有很好的应用前景。 关键词:关键词:MSComm控件;豆浆机;硬件描述语言;液晶显示器 1602 II ABSTRACT In this paper, to meet the actual needs of the modern smart home, a fiel
3、d programmable gate array (FPGA) based soymilk control system is designed. The system can achieve the function of soybean milk production, juice production function and automatic cleaning function. The system consists of two parts of the upper and lower machine. The upper part uses VB programming us
4、er interface, the lower part uses the Quartus II software design, a hardware description language programming, and execution Soymilk EP1C3144C8N chip operation. The asynchronous communication mode is adopted between the upper and lower machine. The article gives detail RS-232 three-wire communication theory and VB MSComm, the user interface of host computer, the introduction about machine principle and the use of LCD modules. The system is running stable, excellent performan