| |

VerySource

 Forgot password?
 Register
Search
View: 973|Reply: 1

Ask for advice on the issue of interruption

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-18 11:00:01
| Show all posts |Read mode
In a MCU embedded development system, are the interrupts scanned at regular intervals, that is to say, they end at a timing
Do you automatically enter the interrupt?
Are soft and hard interrupts reflected in the difference between software and hardware?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-24 15:00:01
| Show all posts
1 "Is the interrupt scanned regularly?" You can think that the CPU will query the interrupt after executing an instruction. If there is an interrupt signal, the CPU will obtain the corresponding interrupt vector number, and then enter the interrupt handler, provided that your Interrupt enable is turned on;

2 Soft interrupts and hard interrupts are two ways for the CPU to enter interrupts. One is the hardware initiatively initiated, which is manifested in that the peripheral that wants to interrupt actively sends an interrupt signal to the CPU interrupt pin, and the CPU enters the interrupt after sensing the interrupt signal, and The soft interrupt is initiated by the program, and the CPU will also enter the interrupt after executing the soft interrupt instruction in the program. There is one difference: Generally speaking, the hardware interrupt is maskable, while the soft interrupt is non-maskable.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list