1 send a signal to the processor before operating the peripheral device
2 When the processor receives a termination signal, it presses the current task data into the stack
3 processor based on signal to take the corresponding location for data processing
4 after processing is complete, take the data from the stack and proceed with the previous operation
The following is the Hidden Language of computer Hardware and software original:
Peripheral devices sometimes need to be noticed by the microprocessor. For example, when you press the key on the keyboard, if the microprocessor can
It's usually helpful to know about it right away. This is done by a mechanism called interrupts (i n T e r u p t), which is connected to
8 0 8 0 I N t input, the signal generated by the peripheral.
However, when 8 0 8 0 is reset, it cannot respond to interrupts. The program must be executed by executing e I (Enable interrupts)
Instruction to allow interrupts by executing the D-I (Disable interrupts) instruction to prohibit interrupts.
8 0 8 0 The i-N T-e output signal indicates an interrupt is allowed. When the peripheral needs to interrupt the microprocessor's current operation, it puts 8 0 8 0
The I-N t input is set to 1. 8 0 8 0 responds to it by taking an instruction out of memory, but the control signal indicates an interrupt
Happen.
R e s t a r t instruction, which is similar to the C a l instruction, and also requires the value of the current program counter to be pressed onto the stack.
But the r e s t a r t instruction is then transferred to a specific location: RST 0 is transferred to address 0000h, RST 1 is transferred to address
0 0 0 8 h wait until RST 7 is transferred to address 0 0 3 8 H. Code snippets located in these addresses to handle interrupts
Processor Processing Peripheral devices