论文部分内容阅读
在设计微型机的接口时,其软件的编制除了用查讯方法之外,往往采用中断方式。然而,中断方式的程序设计是与所采用的硬件电路密切相关的,对于Z_(80)CPU来说,除了要懂得Z_(80)CPU的中断处理的原理之外,往往还要了解与Z_(80)CPU相接口的接口控制器、外围硬件线路。只有在对所使用的微型机系统结构、可编程接口等有充分了解的情况下,才能编制好程序。下面就Z_(80)CPU中断模式2有关程序设计问题作一些讨论。众所周知,Z_(80)CPU中断模式有二类四种:非屏蔽中断,具有最高中断优先权,而另一
Microcomputer in the design of the interface, the preparation of its software in addition to using the inquiry method, the often used interrupt. However, the programming of the interrupt mode is closely related to the hardware circuit used. For the Z_ (80) CPU, in addition to the principle of interrupt processing of the Z_ (80) CPU, it is often necessary to understand the relationship with the Z_ ( 80) CPU interface interface controller, peripheral hardware lines. Only in the use of the microcomputer system architecture, programmable interface, etc. have a full understanding of the circumstances, to prepare a good program. The following Z_ (80) CPU interrupt mode 2 on the programming issues for some discussion. As we all know, Z_ (80) CPU interrupt mode has two kinds of four kinds: non-maskable interrupt, with the highest interrupt priority, and the other