(完整word版)VHDL实验报告-自动打铃系统-1228401082曹刚.pdf

上传人:Q****o 文档编号:55048159 上传时间:2022-10-29 格式:PDF 页数:18 大小:628.45KB
返回 下载 相关 举报
(完整word版)VHDL实验报告-自动打铃系统-1228401082曹刚.pdf_第1页
第1页 / 共18页
(完整word版)VHDL实验报告-自动打铃系统-1228401082曹刚.pdf_第2页
第2页 / 共18页
点击查看更多>>
资源描述

《(完整word版)VHDL实验报告-自动打铃系统-1228401082曹刚.pdf》由会员分享,可在线阅读,更多相关《(完整word版)VHDL实验报告-自动打铃系统-1228401082曹刚.pdf(18页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、实验 13 自动打铃系统第 1 页 共 18 页第二次实验自动打铃系统(14)姓名:曹刚学号:1228401082 班级:12 电子信息工程精品资料-欢迎下载-欢迎下载 名师归纳-第 1 页,共 18 页 -实验 13 自动打铃系统第 2 页 共 18 页一实验目的1、综合运用EDA技术,完成自动打铃系统的设计与操作;2、进一步熟悉EDA技术的开发流程,掌握文件编辑、编译、仿真、下载验证等环节的实现方法和应用技巧;3、通过本实践环节,培养科学和严谨的工作作风。二实验要求1.用6个数码管实现时,分、秒的数字显示;2.能设置当前时间;3.能实现上、下课打铃及起床铃、熄灯铃功能;4.能实现整点报时功

2、能,并能控制启动和关闭;5.能实现调整打铃时间和间歇长短的功能;三实验设计说明根据设计要求,可以将自动打铃系统的划分为以下几个模块:1.状态机:系统有多种显示模式,设计中将每种模式当成一种状态,采用用状态机来进行模式切换,将其作为系统的中心控制模块;2.计时调时模块:用于完成基本的数字钟功能;3.打铃时间设定模块:系统中要求打铃时间可调,此部分功能相对独立,单独用一个模块实现;4.打铃长度设定模块:用以设定打铃时间的长短;5.显示控制模块:根据当前时间和打铃时间等信息决定当前显示的内容;6.打铃控制模块:用于控制铃声音乐的输出;7.分频模块、分位模块、七段数码管译码模块等;以上各模块可用下图表

3、示其间的联系。精品资料-欢迎下载-欢迎下载 名师归纳-第 2 页,共 18 页 -文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文

4、档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6

5、文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S

6、6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3

7、S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G

8、3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5

9、G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A5G3S6文档编码:CG5L10S10Q7A9 HF7B4O1A9V4 ZY10X6A

10、5G3S6实验 13 自动打铃系统第 3 页 共 18 页四实验原理用层次化设计的方法以VHDL 语言编程实现以下功能:【1】具有“时”、“分”、“秒”计时功能;时为24 进制,分和秒都为60 进制。【2】具有消抖功能:手工按下键盘到是否这个过程大概50ms 左右,在按下开始到弹簧片稳,定接触这段时间为5-10ms,从释放到弹片完全分开也是5-10ms,在达到稳定接触和完全分开的微观过程中,电平是时高时低的,因此如果在首次检测到键盘按下时延时 10ms 再检测就不会检测到抖动的毛刺电平了。64Hz 的信号周期为15.6ms,正适合做消抖信号。【3】具有校时和清零功能,能够用 4Hz 脉冲对“小

11、时”和“分”进行调整,并可进行秒清零;【4】具有整点报时功能。在59 分 51 秒、53 秒、55 秒、57 秒发出低音512Hz 信号,在 59分 59秒发出一次高音1024Hz 信号,音响持续 1秒钟,在 1024Hz 音响结束时刻为整点。【5】具有一键设定闹铃及正常计时与闹铃时间的显示转换。闹时时间为一分钟。【6】具有学校的上下课铃,熄灯铃的功能,并且可以控制打铃时间的长短。总体的设计框图如下按键状态机计时调时模块打铃时间设定模块打铃长度设定模块显示控制及打铃控制模块七段数码管译码电路七段数码管铃声音乐控制模块闪烁指示信号模块启动信号与按键调节信号等当前时间打铃时间铃声长度打铃指示信号等

12、精品资料-欢迎下载-欢迎下载 名师归纳-第 3 页,共 18 页 -文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2

13、O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8

14、L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:

15、CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 H

16、C2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 Z

17、O8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编

18、码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3实验 13 自动打铃系统第 4 页 共 18 页图 自动打铃系统总体设计框图五实验模块1.时钟模块设计:时钟模块是学校打铃器最基本的模块,主要实现基本计时、调时、调分功能,包括秒计数模块、分计数模

19、块、时计数模块。秒计数模块:如图所示为秒计数模块符号图。输入端口clr 是秒计数模块的清零信号,也是整个数字中的使能信号,低电平有效;clk 是秒脉冲输入端口,外接分频模块频率为1Hz 的时钟信号;输出端口cq03.0 是秒时钟的低位,cq13.0 是高位;co 端口是进位输出端口,当秒计数到 59 时输出高电平,其它时候输出低电平。模块图如图。六十进制带进位计数器,可清零,当q0 计满 9后 q1 增加 1,当q0 满9且q1 记满 5,q1、q0 同时归零,co 输出为高电平。q1 为十位 q0 为个位。clkclrcocq03.0cq13.0secondinst分计数模块:如图所示为分计

20、数模块符号图。输入端口clr1 是分计数模块的清零信号,也是整个数字中的使能信号,低电平有效;clk1 是秒脉冲输入端口端口;cq23.0 是分计时的低位,cq33.0是分计时的高位;cout 端口是进位输出端口,接时计数的clk1 作为时钟输入,当秒计数到 59 时输出高电平,其它时候输出低电平。精品资料-欢迎下载-欢迎下载 名师归纳-第 4 页,共 18 页 -文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L

21、4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:C

22、V5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC

23、2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO

24、8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码

25、:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3

26、HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10

27、ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3实验 13 自动打铃系统第 5 页 共 18 页clk1clr1coutcq23.0cq33.0minuteinst1时技术模块:如图所示为时计数模块符号图。输入端口clr 是时计数模块的清零信号,也是整个数字中的使能信号,低电平有效;clk 是秒脉冲输入端口输出端口;q03.0是分计时的低位,q13.0 是分计时的高位。此为 24 进制无进位计数器,当计数信号计到23 后再检测到计数信号时会自动归零。带清零,clk 输入为分秒进位相与的结果。q1 为十位,q0 为个位。clk3rst3mc

28、q43.0cq53.0hourinst62.分频模块设计:晶体振荡器是构成数字时钟的核心,振荡器的稳定度及频率的精度决定了数字钟计时的准确程度,它保证了时钟的走时准确及稳定。石英晶体的选频特性非常好,只有某一频率点的信号可以通过它,其它频率段的信号均会被它所衰减,而且振荡信号的频率与振荡电路中的 R、C 元件的数值无关7。模块图如图所示。由四个分频器构成,输入信号 in_clk为1024Hz脉冲信号。把输入的8192Hz信号分频为四个脉冲信号,即1Hz的秒脉冲,4Hz的校时、校分脉冲,64Hz的消抖脉冲,以及512Hz和1024Hz的蜂鸣器低音输入。in_clkclk_1clk_4clk_64

29、clk_512clk_1024divinst3.消抖模块设计:由于大部分按键式机械触点,在触点闭合和断开时都会产生抖动,为避免抖动引起的误动作造成系统的不稳定,就要求消除按键的抖动,确保按键每按一次只做一次响应。在本设计初期完成后,下载程序测试时,拨动按键或者按下按键时显示出现异常,这就需要加入按键消抖模块。模块的实现方法是先判断是否有按键按下,如有按键按下则延时一段时间,待抖动过去之后再读行线状态,如果仍有低电平行线,则确定有按键按下,然后产生一个有按键按下的信号。该模块有一个时钟输入端口,输入时钟信号是分频出来的64Hz 的时钟信号;对sa校时信号、sb 校分信号、sc 秒清零信号、sd

30、闹时设置信号进行防抖动处理。是由四个两级 d 触发器构成的,分别对输入的sa、sb、sc、sd 信号的相邻两个上升沿进行比较以确定按键的按下,从而达到消抖的目的。模块图如下:精品资料-欢迎下载-欢迎下载 名师归纳-第 5 页,共 18 页 -文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X

31、3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S1

32、0 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3

33、文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E

34、9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2

35、S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1

36、Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3实验 13 自动打铃系

37、统第 6 页 共 18 页clk_64sasbscmk2hjmjsclrsdomlk2jxdinst124.闹钟模块设计:模块如图所示。一键设定闹铃时间,内部由四个d 触发器构成。当确定sd 键按下时,将当前时间的小时和分的个位十位分别存入四个d 触发器内,作为闹时时间。ml_o3.0、mh_o3.0、hl_o3.0、hh_o3.0分别为闹钟时间的分低位、分高位、时低位和时高位。sdhh3.0hl3.0mh3.0ml3.0hh_o3.0hl_o3.0mh_o3.0ml_o3.0nzinst35.调时模块设计:如图所示为调时模块符号图。本设计的调时模块类似于二选一数据选择器,输入端口alarm

38、是调时模块的调时开关,当为高电平是输出a 的数据,当为低电平时输出b 的数据;a 端接上一个计时模块的进位输出;b 端接分频器的输出时钟脉冲;y 为模块的输出,作为计时模块的输入时钟。由此可知当alarm 为低电平时可进行调时、调分。alarmabyx21inst96.整点报时和闹钟模块设计:模块图如图所示。在59 分 51 秒、53 秒、55 秒、57 秒给扬声器赋以低音512Hz信号,在 59 分 59 秒给扬声器赋以高音1024Hz信号,音响持续1 秒钟,在 1024Hz 音响结束时刻为整点。当系统时间与闹铃时间相同时给扬声器赋以高音1024Hz 信号。闹时时间为一分钟。min13.0m

39、in03.0sec13.0sec03.0hh3.0hl3.0mh3.0ml3.0hou03.0hou13.0in_512in_1024qv oiceinst8精品资料-欢迎下载-欢迎下载 名师归纳-第 6 页,共 18 页 -文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N

40、4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K

41、7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5

42、G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O

43、2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L

44、4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:C

45、V5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3实验 13 自动打铃系统第 7 页 共

46、 18 页7.打铃模块设计:如表所示为学校作息时间。学校作息时间上课下课时间共包括18 个时间点,将此写入程序中,当时钟时间与这些时间相同时,输出高电平,与时钟信号相与,作为报警模块的输入。表 2-1 学校作息时间春季作息时间上课下课上午08:00 08:40 08:50 09:30 09:40 10:20 10:30 11:10 11:10 12:00 下午14:00 14:40 14:50 15:30 15:40 16:20 16:30 17:10 如图所示为打铃模块设计框图。模块包括作息选择和时间比较部分,其设计思路为:将时钟的时高位、时低位、分高位、分低位分别于表2.1 中的打铃时间数

47、据进行比较,若相等,则 Q_Y 输出高电平,否则输出低电平。Q_HA3.0Q_MA3.0Q_HB3.0Q_MB3.0Q_YCOMP_TIMEinst77.显示模块设计:对于本自动打铃系统的设计,必不可少的就是显示模块的设计,因为根据设计要求,时钟的计时显示、闹钟的时间设定、蜂鸣器报警时长的设定,都需要数码管来显示,实际应用的时候,用实验箱上的数码管显示是最直观的表现。六实验程序及仿真1.时钟模块设计:(1)秒计数模块library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logi

48、c_arith.all;entity second IS port(clk,clr:in std_logic;作息时段精品资料-欢迎下载-欢迎下载 名师归纳-第 7 页,共 18 页 -文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档

49、编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X

50、3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S10 ZO8L4K7P1Y3文档编码:CV5G9P5E9X3 HC2O2N4X2S1

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁