Processor Processing Peripheral devices

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.