CN104111866A - 中断控制系统和方法 - Google Patents

中断控制系统和方法 Download PDF

Info

Publication number
CN104111866A
CN104111866A CN201310134998.XA CN201310134998A CN104111866A CN 104111866 A CN104111866 A CN 104111866A CN 201310134998 A CN201310134998 A CN 201310134998A CN 104111866 A CN104111866 A CN 104111866A
Authority
CN
China
Prior art keywords
interrupt
interface
source
processor
control system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310134998.XA
Other languages
English (en)
Inventor
喻明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201310134998.XA priority Critical patent/CN104111866A/zh
Priority to TW102114162A priority patent/TW201441936A/zh
Priority to US14/065,486 priority patent/US20140317324A1/en
Publication of CN104111866A publication Critical patent/CN104111866A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

一种中断控制系统,用来控制多个中断源的中断,所述中断控制系统包括一处理器,所述处理器包括一中断接口,这些中断源通过线与逻辑方式连接到所述中断接口,所述处理器还包括一并行接口和一解码器,每一中断源的中断标示位分别连接到所述并行接口的一引脚,所述处理器在所述中断接口接收到中端请求时读取所述并行接口上的编码,所述解码器解码所述并行接口上的编码而让所述处理器找到提出中断请求的中断源并执行对应的中断处理程序;本发明还包括一种加速中断处理的方法。

Description

中断控制系统和方法
技术领域
本发明涉及一种中断控制系统和方法,特别涉及一种加速中断处理的系统和方法。
背景技术
处理器响应中断、保护断点之后,就要进行中断源的识别,即寻找中断源,找到相应的中断服务程序入口,通常处理器通过程序来查询是哪一个中断源提出的中断请求,处理器通过一端口读取各个中断源的状态,例如先看中断源1是否提出请求,若是,转去执行中断源1的中断服务程序,否则再看中断源2是否提出请求,若是,转去执行中断源2的中断服务程序。否则继续查看后面的中断源。但是该种中断控制方法需要逐一查找中断源,从而使中断处理的时间过长。
发明内容
鉴于以上内容,有必要提供一种可加速中断处理的系统和方法。
一种中断控制系统,用来控制多个中断源的中断,所述中断控制系统包括一处理器,所述处理器包括一中断接口,这些中断源通过线与逻辑方式连接到所述中断接口,所述处理器还包括一并行接口和一解码器,每一中断源的中断标示位分别连接到所述并行接口的一引脚,所述处理器在所述中断接口接收到中端请求时读取所述并行接口上的编码,所述解码器解码所述并行接口上的编码而让所述处理器找到提出中断请求的中断源并执行对应的中断处理程序。
运用权利要求1所述的中断控制系统的控制方法,其包括以下步骤:
所述处理器的中断接口接受到中断请求后,所述处理器进入中断操作;
所述处理器从所述并行接口读取编码;
所述解码器对读取到的编码进行解码,所述处理器根据解码找到提出中断请求的中断源并执行对应的中断处理程序。
与现有技术相比,上述中断控制系统和方法可根据编码快速找到提出中断请求的中断源,从而加速了中断处理。
附图说明
图1是本发明中断控制系统一较佳实施例的一组成图。
图2是本发明中断控制方法一较佳实施例的一流程图。
主要元件符号说明
处理器 10
并行接口 11
中断接口 12
解码器 14
如下具体实施方式将结合上述附图进一步说明本发明。
具体实施方式
请参阅图1,本发明的一较佳实施例中,一中断控制系统用来控制多个中断源的中断操作,这些中断源连接到一处理器10,在一实施例中,这些中断源包括中断源1、中断源2、中断源3…中断源n,这些中断源可以是连接到系统的各种外部设备或各种内部设备,例如可以是电脑系统的键盘、鼠标、触控屏、语音输入装置、USB插接侦测电路等;这些中断源分别设有一中断标示位,该中断标示位一般为常置为“1”,当中断源发出一中断请求时,该中断位标示位被置为“0”。
该处理器10包括一并行接口11,这些中断源的中断标示位分别连接到该并行接口11的一引脚,例如中断源1的中断标示位连接到并行接口11的第一引脚,中断源2的中断标示位连接到并行接口11的第二引脚,中断源3的中断标示位连接到并行接口11的第三引脚,依次类推;则当不同的中断源产生中断时,并行接口11接收到的编码也不同,例如当中断源1发出中断请求时,并行接口11接收到得编码是011…;当中断源2发出中断请求时,并行接口11接收到得编码是101…,依次类推。因为每一中断源要分别连接到所述并行接口11的一引脚,所以中断源的数量不大于所述并行接口11的引脚的数量。
这些中断源的标示位还通过线与逻辑方式连接到该处理器10的一中断接口12,当这些中断源的任一中断源提出中断请求而让其对应的中断标示位从“1”变为“0”时,中断接口12接受到中断请求,该处理器10进入中断,并从并行接口11读取编码,该中央处理器10还包括一解码器14,该解码器14对该编码进行解码,从而让中央处理器10快速的找到中断源,例如,当解码器14对011…进行解码后,中央处理器10即能找到中断源为中断源1,从而执行对应中断源1的中断处理程序。
请参阅图2,其为中断控制方法一实施例的流程图,其包括以下步骤:
步骤201,处理器10的中断接口12接收到中断请求后,处理器10进入中断操作。
步骤202,处理器10从并行接口11读取编码。
步骤203,处理器10的解码器14对编码进行解码。
步骤204,处理器10根据解码找到中断源,将该中断源的中断标示位复位,并执行对应的中断处理程序。

Claims (7)

1.一种中断控制系统,用来控制多个中断源的中断,所述中断控制系统包括一处理器,所述处理器包括一中断接口,这些中断源通过线与逻辑方式连接到所述中断接口,其特征在于:所述处理器还包括一并行接口和一解码器,每一中断源的中断标示位分别连接到所述并行接口的一引脚,所述处理器在所述中断接口接收到中端请求时读取所述并行接口上的编码,所述解码器解码所述并行接口上的编码而让所述处理器找到提出中断请求的中断源并执行对应的中断处理程序。
2.如权利要求1所述的中断控制系统,其特征在于:不同的中断源提出中断请求时,所述并行接口接收到的编码不同。
3.如权利要求1所述的中断控制系统,其特征在于:所述中断源的数量不大于所述并行接口的引脚的数量。
4.如权利要求1所述的中断控制系统,其特征在于:每一中断源的中断标示位被常置为“1”,当所述中断源提出中端请求时,所述中断标示为被置为“0”。
5.如权利要求1所述的中断控制系统,其特征在于:这些中断源的中断标示位通过线与逻辑方式连接到所述中断接口。
6.运用权利要求1所述的中断控制系统的控制方法,其包括以下步骤:
所述处理器的中断接口接受到中断请求后,所述处理器进入中断操作;
所述处理器从所述并行接口读取编码;
所述解码器对读取到的编码进行解码,所述处理器根据解码找到提出中断请求的中断源并执行对应的中断处理程序。
7.如权利要求6所述的控制方法,其特征在于:所述处理器找到提出中断请求的中断源后将所述中断源的中断标示位复位。
CN201310134998.XA 2013-04-18 2013-04-18 中断控制系统和方法 Pending CN104111866A (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310134998.XA CN104111866A (zh) 2013-04-18 2013-04-18 中断控制系统和方法
TW102114162A TW201441936A (zh) 2013-04-18 2013-04-22 中斷控制系統與方法
US14/065,486 US20140317324A1 (en) 2013-04-18 2013-10-29 Interrupt control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310134998.XA CN104111866A (zh) 2013-04-18 2013-04-18 中断控制系统和方法

Publications (1)

Publication Number Publication Date
CN104111866A true CN104111866A (zh) 2014-10-22

Family

ID=51708665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310134998.XA Pending CN104111866A (zh) 2013-04-18 2013-04-18 中断控制系统和方法

Country Status (3)

Country Link
US (1) US20140317324A1 (zh)
CN (1) CN104111866A (zh)
TW (1) TW201441936A (zh)

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3828327A (en) * 1973-04-30 1974-08-06 Ibm Simplified storage protection and address translation under system mode control in a data processing system
US4106091A (en) * 1975-02-18 1978-08-08 Motorola, Inc. Interrupt status indication logic for polled interrupt digital system
US4404627A (en) * 1979-05-11 1983-09-13 Rca Corporation Interrupt signal generating means for data processor
US4420806A (en) * 1981-01-15 1983-12-13 Harris Corporation Interrupt coupling and monitoring system
JPH01295355A (ja) * 1988-05-24 1989-11-29 Fanuc Ltd マルチマスタバス用割込制御回路
US5261107A (en) * 1989-11-03 1993-11-09 International Business Machines Corp. Programable interrupt controller
JP2855298B2 (ja) * 1990-12-21 1999-02-10 インテル・コーポレーション 割込み要求の仲裁方法およびマルチプロセッサシステム
US5179704A (en) * 1991-03-13 1993-01-12 Ncr Corporation Method and apparatus for generating disk array interrupt signals
JPH05233318A (ja) * 1992-02-18 1993-09-10 Nec Corp マイクロプロセッサ
US5448743A (en) * 1992-07-21 1995-09-05 Advanced Micro Devices, Inc. General I/O port interrupt mechanism
US5566352A (en) * 1993-01-04 1996-10-15 Cirrus Logic, Inc. Register-read acknowledgment and prioritization for integration with a hardware-based interrupt acknowledgment mechanism
US5530875A (en) * 1993-04-29 1996-06-25 Fujitsu Limited Grouping of interrupt sources for efficiency on the fly
US5671424A (en) * 1994-02-02 1997-09-23 Advanced Micro Devices, Inc. Immediate system management interrupt source with associated reason register
US5913045A (en) * 1995-12-20 1999-06-15 Intel Corporation Programmable PCI interrupt routing mechanism
US5925115A (en) * 1997-03-10 1999-07-20 Vlsi Technology, Inc. Method and system for extending interrupt sources and implementing hardware based and software based prioritization of interrupts for an embedded processor
US6240483B1 (en) * 1997-11-14 2001-05-29 Agere Systems Guardian Corp. System for memory based interrupt queue in a memory of a multiprocessor system
US6449675B1 (en) * 1999-06-29 2002-09-10 Motorola, Inc. Multifield register having a selection field for selecting a source of an information field
US6205509B1 (en) * 1999-07-15 2001-03-20 3Com Corporation Method for improving interrupt response time
US6606677B1 (en) * 2000-03-07 2003-08-12 International Business Machines Corporation High speed interrupt controller
US6584532B1 (en) * 2000-05-17 2003-06-24 Arm Limited Branch searching to prioritize received interrupt signals
CN1428710A (zh) * 2001-12-28 2003-07-09 希旺科技股份有限公司 多功能电子周边卡
US7139857B2 (en) * 2003-11-12 2006-11-21 Standard Microsystems Corporation Method and apparatus for handling interrupts
US20050262282A1 (en) * 2004-05-20 2005-11-24 Xue-Jun Liu Interrupt sharing method for edge triggering

Also Published As

Publication number Publication date
TW201441936A (zh) 2014-11-01
US20140317324A1 (en) 2014-10-23

Similar Documents

Publication Publication Date Title
KR101746018B1 (ko) 비대칭 실행 유닛들의 효율적인 스케줄링을 위한 방법 및 장치
KR102201919B1 (ko) 랜덤 포레스트 모델의 훈련 방법, 전자장치 및 저장매체
US20190122662A1 (en) Speech data processing method and apparatus, device and storage medium
US20160378445A1 (en) Similarity determination apparatus, similarity determination method and similarity determination program
CN109558282A (zh) 一种pcie链路检测方法、系统及电子设备和存储介质
CN106664100B (zh) 用于进行有效的基于lz77的数据解压缩的技术
CN106610712B (zh) 基板管理控制器复位系统及方法
US20190018765A1 (en) Test case generation apparatus and computer readable medium
US20160239467A1 (en) Method and system for selecting encoding format for reading target document
CN102053900A (zh) 测试电子装置的usb设备的方法和系统
US20120331434A1 (en) Computing device and method for checking signal transmission lines
US20140310674A1 (en) System and method for checking signal transmission line
CN110704226B (zh) 数据校验方法、装置及存储介质
CN104753741A (zh) 一种网卡测试性能调节的方法及装置
CN104111866A (zh) 中断控制系统和方法
CN107077456B (zh) 用于存储数据的装置、方法和存储介质
CN106547759B (zh) 用于选择增量备份方式的方法和装置
CN110727639B (zh) 碎片数据读取方法、电子设备、系统及介质
US20140172369A1 (en) Computer-readable recording medium, abnormality cause estimating apparatus, and abnormality cause estimating method
US20140218066A1 (en) Voltage testing device and voltage testing method for cpu
CN111931161B (zh) 基于risc-v处理器的芯片验证方法、设备及存储介质
CN106873795A (zh) 一种文字输入法、装置及终端
US20150012904A1 (en) System and method for setting electrical specification of signal transmission line
US20140245243A1 (en) Computing device and method for generating component module files of circuit diagram
US20140215117A1 (en) Electronic device and method for controlling status of pci interfaces

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141022