找回密码
 注册会员
更新自动建库工具PCB Footprint Expert 2024.04 Pro / Library Expert 破解版

[嵌入式/ARM] ARM GIC中断控制器原文详解

[复制链接]
admin 发表于 2013-3-25 09:22:15 | 显示全部楼层 |阅读模式

本文包含原理图、PCB、源代码、封装库、中英文PDF等资源

您需要 登录 才可以下载或查看,没有账号?注册会员

×
1 GIC : Generic Interrupt Controller
   Distributor
   –detecting, disabling, prioritizing, directing interrupts to CPU(s).
   CPU interfaces
   –asserting an interrupt indication to the CPU
   Support max to 1020 interrupts
   
    20121107050220168102408.jpg
   
   2 PPI,SPI and SGI
   Peripheral interrupt
   PPI : Private Peripheral Interrupt
   specific to a single processor
   SPI : Shared Peripheral Interrupt
   Distributor can route to any of a specified combination of processors
   Software-generated interrupt (SGI)
   This is an interrupt generated by software writing to a GICD_SGIR register in the GIC. The system uses SGIs for interprocessor communication
   
   ID0-ID15 are used for SGIs
   
   ID16-ID are used for PPIs
   ID32+ are used for SPIs
   
   3 Models for handling interrupts in MP core
   1-N model
   Only one processor handles this interrupt. The system must implement a mechanism to determine which processor handles an interrupt that is programmed to target more than one processor.
   N-N model
   All processors receive the interrupt independently. When a processor acknowledges the interrupt, the interrupt pending state is cleared only for that processor. The interrupt remains pending for the other processors.
   
   According to GIC document(p3-33)
   software generated interrupts (SGIs) using the GIC N-N model
   peripheral (hardware) interrupts PPI and SPI using the GIC 1-N model.
   
   
    20121107050220246222409.jpg
   
   4 GIC interrupt handling sequence
   1. The GIC determines the interrupts that are enabled.
   2. For each pending interrupt, the GIC determines the targeted processor or processors.
   3. For each CPU interface, the Distributor forwards the highest priority pending interrupt that targets that interface.
   4. Each CPU interface determines whether to signal an interrupt request to its processor, and if required, does so.
   5. The processor acknowledges the interrupt, and the GIC returns the interrupt ID and updates the interrupt state.
   6. After processing the interrupt, the processor signals End of Interrupt (EOI) to the GIC.
*滑块验证:
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

QQ|手机版|MCU资讯论坛 ( 京ICP备18035221号-2 )|网站地图

GMT+8, 2024-12-27 02:03 , Processed in 0.058163 second(s), 10 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表