Interrupt processing method and microcontroller
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 2 Figure 3
Abstract
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...