Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page60/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   56   57   58   59   60   61   62   63   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Hardware Interrupts


Hardware Interrupts are short code fragments that provide useful services that can be triggered by items of hardware. When a printer runs out of paper, it sends a signal to the CPU. The CPU interrupts normal processing and processes the interrupt. In this case code would run to display a "Paper Out" message on the screen. When this processing is complete, normal processing resumes.

This simulator has a timer that triggers INT 02 at regular time intervals that you can pre-set in the Configuration Tab. You must put an interrupt vector at address 02 that points to your interrupt code. Look at the example.



Download 1.18 Mb.

Share with your friends:
1   ...   56   57   58   59   60   61   62   63   ...   82




The database is protected by copyright ©ininet.org 2024
send message

    Main page