Interruption system implementing method and device
A system implementation, soft interrupt technology, applied in multi-programming devices, architecture with a single central processing unit, program startup/switching, etc. Overcome the single effect of interrupt handling
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] like figure 1 As shown, it is a flow chart of Embodiment 1 of the implementation method of the interrupt system of the present invention, which specifically includes the following steps:
[0022] Step 101, receiving an interrupt request, and judging the type of the interrupt request;
[0023] Step 102, query the interrupt vector table, and obtain the interrupt vector corresponding to the type of the interrupt request;
[0024] Step 103. Execute the interrupt service program corresponding to the interrupt vector.
[0025] Before step 102, this embodiment may further include: generating an interrupt vector table, and the interrupt vector table records the correspondence between interrupt request types and interrupt vectors.
[0026] In this embodiment, by judging the type of the interrupt request, querying the interrupt vector table, obtaining the interrupt vector corresponding to the type of the interrupt request, and executing the interrupt service program correspondi...
Embodiment 2
[0028] The interrupt requests in the present invention can be divided into internal interrupts, external interrupts and soft interrupts according to their types. Internal interrupt refers to the functional module interrupt in the central processing unit of the microcontroller; external interrupt refers to the functional module interrupt outside the central processing unit of the microcontroller; soft interrupt refers to the software interrupt that sets the internal register of the central processing unit without hardware The special trigger time of the circuit only needs to be interrupted through software control. Further, internal interrupts can include port level change interrupts, port edge trigger interrupts, and internal timer interrupts; external interrupts can include external timer interrupts, capture / comparison / pulse width modulation interrupts, communication port interrupts, and analog / digital conversion interrupts .
[0029] This embodiment takes the internal timer...
Embodiment 3
[0037] In actual situations, the interrupt module will receive several interrupt requests at the same time, such as receiving internal interrupt requests, external interrupt requests and soft interrupt requests at the same time, this embodiment sets the priority of the interrupt by software, and sets the priority of the soft interrupt to Highest.
[0038] like image 3 As shown, it is a flow chart of Embodiment 3 of the implementation method of the interrupt system of the present invention, which specifically includes the following steps:
[0039] Step 301, generating an interrupt vector table, the interrupt vector table records the correspondence between the type of interrupt request and the interrupt vector;
[0040] Step 302, receiving two or more interrupt requests, and judging the types of the two or more interrupt requests;
[0041] Step 303, judging whether the types of more than two interrupt requests include soft interrupts, if so, execute step 304; otherwise, execu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com