Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2009-07-22
SHANGHAI EASTSOFT MICROELECTRONICS
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide an interrupt system implementation method and device, which can clearly judge the type of interrupt request, execute the corresponding interrupt service program according to the type of interrupt request, overcome the shortcoming of relatively single interrupt processing method, and can better optimize The interrupt processing method makes it possible to make good use of the resources of the interrupt system in industrial control

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interruption system implementing method and device
  • Interruption system implementing method and device
  • Interruption system implementing method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an interrupt system realization method and a device thereof, wherein, the method comprises the steps as follows: an interrupt request is received, and the type of the interrupt request is judged; an interrupt vector table is referred to for obtaining the interrupt vector corresponding to the type of the interrupt request; and an interrupt service program corresponding to the interrupt vector is executed. The device comprises a receiving module, a reference module and an executing module. The interrupt system realization method and the device thereof realize the execution of the corresponding interrupt service program according to the type of the interrupt request by judging the type of the interrupt request, referring to the interrupt vector table, obtaining the interrupt vector corresponding to the type of the interrupt request and executing the interrupt service program corresponding to the interrupt vector, and overcomes the disadvantage that the interrupt processing manner is single, thus better optimizing the interrupt processing manner and ensuring that the resource of an interrupt system is brought into better play in the aspect of industrial control.

Description

technical field [0001] The invention relates to an interrupt system realization method and device, in particular to a microcontroller interrupt system realization method and device, belonging to the technical field of integrated circuit design. Background technique [0002] With the continuous improvement of deep submicron CMOS integrated circuit production technology, it is now possible to integrate complex microcontroller (MCU) cores on a chip, while leaving enough silicon area for implementing complex memory and peripheral logic. . Design methods and architectures that were used in the past for high-end 32-bit and 64-bit CPUs can now be effectively used in low-cost 8-bit microcontroller systems. The use of these powerful and cheap microcontrollers makes the integration of the system continuously improved, and also greatly enhances the capabilities of the microprocessor's data processing and process control. Interrupt systems play a more and more important role in the pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F15/78
Inventor 潘松陈光胜刘桂蓉
Owner SHANGHAI EASTSOFT MICROELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products