基于Verilog的8051微控制器中断系统的设计
发布时间:2018-01-23 18:32
本文关键词: 微控制器 中断系统 中断源 中断优先级 出处:《华中科技大学》2012年硕士论文 论文类型:学位论文
【摘要】:8051微控制器是国内应用较多的8位单片机,建立8051微控制器可综合的Verilog模型有利于嵌入式系统和各种片上系统的实际应用。在微控制器的设计中,控制信号的设计是最复杂的,而在控制信号中,中断系统的设计又是最为复杂的。8051微控制器内部共有5个中断源:外部中断0、定时器/计数器0、外部中断1、定时器/计数器1、串行口中断。8051微控制器内部的2个中断优先级限制了中断控制系统只能满足2个优先级的中断嵌套,而随着8051微控制器功能的扩展原有的中断控制系统已越来越不能满足实际应用。 本课题采用Verilog HDL设计的中断控制系统实现了8051微控制器的中断控制,不仅能够完成不同优先级别中断响应控制,同时可以完成同优先级别的中选响应控制,从而实现不同中断响应的无缝衔接,拓展了8051微控制器实际应用。同时优化了中断控制系统的中断响应流程,减少了中断延迟时间,对8051微控制器的实时应用和控制精度提高具有重要意义。系统同时提供了调整修改8051内部5个中断源优先中断级别的功能,方便实际应用中根据实际情况来处理中断。本文详细讨论了中断控制电路、中断响应、中断嵌套,完成了定时器控制模块、外部中断控制模块、串行口中断控制模块的Verilog编码设计。 完成原理分析及系统相关模块设计之后,,对中断系统相关模块及系统进行了功能仿真。通过使用Mentor公司的ModelSim仿真工具,确保了仿真的准确性。仿真的结果证实了设计思想的正确性,符合本课题原始构想要求。
[Abstract]:8051 microcontroller is an 8-bit microcontroller which is widely used in China. The integrated Verilog model of 8051 microcontroller is beneficial to the practical application of embedded system and all kinds of on-chip systems. In the design of microcontroller, the design of control signal is the most complicated. In the control signal, the interrupt system design is the most complex. 8051 microcontroller has five interrupt sources: external interrupt 0, timer / counter 0, external interrupt 1. Timer / counter 1, two interrupt priorities within the serial interrupt .8051 microcontroller limit the interrupt nesting in which the interrupt control system can only satisfy two priorities. With the expansion of 8051 microcontroller function, the original interrupt control system can not meet the actual application more and more. In this paper, the interrupt control system designed by Verilog HDL is used to realize the interrupt control of 8051 microcontroller, which can not only complete the interrupt response control of different priority levels. At the same time, it can complete the same priority level of the selected response control, so as to achieve seamless connection of different interrupt response, expand the 8051 microcontroller practical application, and optimize the interrupt response process of the interrupt control system. The interrupt delay time is reduced, which is of great significance to the real-time application of 8051 microcontroller and the improvement of control precision. The system also provides the function of adjusting and modifying the priority interrupt level of the five interrupt sources within 8051. The interrupt control circuit, interrupt response, interrupt nesting, timer control module and external interrupt control module are discussed in detail. Verilog coding design of serial port interrupt control module. After completing the principle analysis and system related module design, the function simulation of interrupt system related module and system is carried out. The ModelSim simulation tool of Mentor company is used. The simulation results verify the correctness of the design idea and meet the requirements of the original design.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1
【参考文献】
相关期刊论文 前5条
1 俞颖,周磊,闵昊;采用异步电路的低功耗微控制器的VLSI设计与实现[J];半导体学报;2001年10期
2 龚炳铮;发展嵌入式计算机及其产业的思考[J];电子技术应用;2000年10期
3 龚雪皓,郑学仁,刘百勇;专用集成电路设计中的芯核和设计复用技术[J];微电子学;2000年02期
4 于云超;董帅;;MCS-51系列单片机中断系统介绍[J];民营科技;2011年05期
5 刘捷臣,王效平;微处理器和微控制器的发展现状与展望——迎接21世纪信息产业的挑战[J];微处理机;2001年01期
相关硕士学位论文 前1条
1 席华伟;基于Verilog语言的DMA控制器的设计与仿真[D];西安电子科技大学;2007年
本文编号:1457955
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1457955.html