Windows Embedded CE 6.0中断机制介绍

开发
本文介绍Windows Embedd CE 6.0中断机制。Windows Embedd CE 6.0中断模型包括:设备发起一个硬件中断,内核(Kernel.DLL)响应该中断,中断服务例程快速处理该中断,以及驱动中的中断服务线程(IST)被通知处理该中断。

本文继续介绍Windows Embedded CE 6.0和Windows桌面系统内部一些知识。

Windows Embedded CE 6.0中断机制

下图为Windows Embedded CE 6.0中断模型:

(1).设备发起一个硬件中断。->

(2).内核(Kernel.DLL)响应该中断,并call对应的中断服务例程(ISR)。->

(3).中断服务例程快速处理该中断。->

(4).驱动中的中断服务线程(IST)被通知处理该中断,这里内核使用Event通知IST。

Windows Embedd CE 6.0中断机制 

这个过程中涉及到的ISR和IST都会处理中断,但有所不同,前者的中断级别更高,所做的工作也很简单,而后者做主要的处理工作。具体请看以下的介绍。

"Real-time applications use interrupts to respond to external events in a timely manner. To do this, Windows Embedded CE 6.0 breaks interrupt processing into two steps: an interrupt service routine (ISR) and an interrupt service thread (IST). The ISR runs immediately to identify and mask the interrupt, and perform any high priority tasks. The corresponding IST is a normal system thread (although typically of high priority) and can perform the bulk of the handling that is not time critical. This two stage model allows the operating system to maximize the amount of time the system is able to respond to other high priority interrupts.

The kernel is able to handle a total of 64 interrupts from external sources, some of which are predefined (e.g. system timer interrupt, real time clock etc). Devices that have more than 64 interrupt sources that need to be exposed (rare) must implement a mechanism to share interrupt identifiers. Typically this is done by multiplexing related interrupts together in the ISR, and demultiplexing them in the IST.”

关于Windows Embedded CE 6.0中断机制在此就介绍这么多,更详细的内容等我慢慢消化了再介绍。

【编辑推荐】

  1. Windows Embedded CE 6.0系统特性及架构一览
  2. 在Windows Embedded Standard中添加语音识别功能
  3. 创建可分发的Windows Embedded Standard组件
  4. Windows Embedded Standard互操作性浅析
  5. Windows Embedded Standard的U盘启动  
责任编辑:yangsai 来源: 博客园
相关推荐

2010-03-12 15:28:26

Windows Emb

2009-09-24 09:45:07

Windows Emb

2009-11-03 13:31:43

Windows Emb

2009-07-23 13:10:00

Windows Emb

2009-04-22 17:18:29

WindowsCEVistaXP

2010-04-07 13:01:09

Windows Emb

2010-01-12 15:46:51

Windows Emb

2011-08-01 16:52:42

Windows CE 嵌入式

2010-03-03 16:37:50

Windows Emb

2011-03-31 17:49:51

微软嵌入式WindowsEmbe

2010-03-17 14:21:47

Windows Emb

2010-03-10 12:54:20

Windows Emb

2009-07-03 13:12:59

Windows CE

2009-04-12 11:12:24

windowsCE

2009-11-02 17:36:01

Windows Emb

2010-01-13 14:18:52

Windows Emb

2009-11-10 16:40:46

WindowsEmbeddedWindows7

2010-03-31 16:36:35

Windows CE

2009-12-10 09:19:28

Windows 7嵌入式平台

2009-09-16 08:34:17

Windows Emb
点赞
收藏

51CTO技术栈公众号