首页 | 本学科首页   官方微博 | 高级检索  
     

有限状态机在中断控制器设计中的应用
引用本文:王中,爨莹. 有限状态机在中断控制器设计中的应用[J]. 电脑开发与应用, 2007, 20(9): 10-11,23
作者姓名:王中  爨莹
作者单位:西安石油大学,西安,710065;西安石油大学,西安,710065;西安电子科技大学,西安,710060
基金项目:陕西省自然科学基金基础研究计划
摘    要:80386EX的中断控制器82C59A不论设置为边缘触发方式还是电平触发方式,均要求维持中断输入信号的高电平至第一个INTA#的下降沿结束,否则将产生误中断输出。由于系统内部及外部中断源中断方式不同,不能完全满足对电平持续时间的要求。为避免产生误中断,应用Mealy型有限状态机基本原理,提出通过在CPU和中断控制器两者之间加入Mealy型有限状态机,将中断输入信号和时序信号结合起来,输出满足中断控制器对高电平时序要求的中断信号,从而从根本上解决因时序引起的误中断输出问题。使用CPLD实现了这个设计,通过模拟仿真及实际应用,进一步论证了方案的合理性和可行性。实践证明这种设计方案可以很好的解决因时序产生的中断误输出问题,提高了中断响应的效率,在高速运算及精密控制方面有明显的优势。

关 键 词:有限状态机  中断控制器  中断时序  复杂可编程逻辑器件
文章编号:1003-5850(2007)09-0010-02
收稿时间:2007-01-17
修稿时间:2007-01-172007-07-16

Application of Finite-state Machine to Interrupt Controller Design
Wang Zhong et al. Application of Finite-state Machine to Interrupt Controller Design[J]. Computer Development & Applications, 2007, 20(9): 10-11,23
Authors:Wang Zhong et al
Affiliation:Wang Zhong et al
Abstract:For both edge and level-triggered interrupts,a high level must be maintained on the IR line until after the falling edge of the first INTA# pulse.A spurious interrupt request is generated if this stipulation is not met.On account of the different interrupt way between inside and outside of the system,it is incapable of adequately fulfill the need.In order to avoid the spurious interrupt,this thesis apply with the rationale of Mealy model finite-state machine that adding a finite-state machine between CPU and the interrupt controller,the high level could achieve the acknowledge cycle requirement of the interrupt controller,and solve radically the problem of spurious interrupt output on the basis of acknowledge cycle.The paper particularly demonstrates the rationality and the feasibility of the project by simulation.The practice testifies this kind of design can be good to resolve the spurious interrupt problem,enhanced the interrupt response efficiency,has the obvious advantage in the high-speed operation and the precise control.
Keywords:finite-state machine  interrupt controller  interrupt acknowledge cycle  CPLD
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号