Interrupt processing method and microcontroller

A technology of a microcontroller and a processing method, which is applied to multi-programming devices, program startup/switching, etc., can solve the problems of long time to respond to interrupts, low interrupt processing efficiency, slow instruction running speed, etc., and achieve fast running speed. , reduce the time to respond to interruptions and improve efficiency
CN102033779AActive Publication Date: 2011-04-27HISENSE VISUAL TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HISENSE VISUAL TECH CO LTD
Publication Date
2011-04-27

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses an interrupt processing method and a microcontroller. The interrupt processing method comprises the following steps of: when a responded interrupt program is provided, executing a long call instruction which comprises seven clock cycles; pushing a value of a current process pointer down to a stack to protect a breaking point; in the second clock cycle andthe fourth clock cycle of the long call instruction, transmitting a corresponding interrupt entry address to a program bus; and in the sixth clock cycle of the long call instruction, transmitting theinterrupt entry address to the program pointer from the program bus so as to execute the next instruction from the interrupt entry address after the interrupt program is executed. The interrupt processing method is applicable for the interrupt processing of the microcontroller.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of microcontrollers, in particular to an interrupt processing method and a microcontroller. Background technique

[0002] At present, computers all have real-time processing functions, relying on interrupt technology, computers can make timely processing of events that occur randomly in the outside world. When the CPU is processing something, an external event requires the CPU to process it quickly, such as a level change, a pulse edge occurrence, or timer count overflow, etc., so the CPU temporarily suspends the current work. Go to handle the event that occurred. After the CPU finishes processing the event, it returns to the place where it was originally suspended and continues the original work. Such a process is an interruption.

[0003] The traditional 8051 microcontroller uses 12 clock cycles as a machine cycle, a machine cycle consists of 6 states, each state consists of two clock cycles, the execut...

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